couchbase 3.5.0-x86_64-linux-musl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +202 -0
  3. data/README.md +154 -0
  4. data/ext/extconf.rb +0 -0
  5. data/lib/active_support/cache/couchbase_store.rb +339 -0
  6. data/lib/couchbase/3.1/libcouchbase.so +0 -0
  7. data/lib/couchbase/3.2/libcouchbase.so +0 -0
  8. data/lib/couchbase/3.3/libcouchbase.so +0 -0
  9. data/lib/couchbase/analytics_options.rb +107 -0
  10. data/lib/couchbase/authenticator.rb +64 -0
  11. data/lib/couchbase/binary_collection.rb +128 -0
  12. data/lib/couchbase/binary_collection_options.rb +24 -0
  13. data/lib/couchbase/bucket.rb +144 -0
  14. data/lib/couchbase/cluster.rb +460 -0
  15. data/lib/couchbase/cluster_registry.rb +49 -0
  16. data/lib/couchbase/collection.rb +705 -0
  17. data/lib/couchbase/collection_options.rb +399 -0
  18. data/lib/couchbase/config_profiles.rb +55 -0
  19. data/lib/couchbase/configuration.rb +56 -0
  20. data/lib/couchbase/datastructures/couchbase_list.rb +160 -0
  21. data/lib/couchbase/datastructures/couchbase_map.rb +194 -0
  22. data/lib/couchbase/datastructures/couchbase_queue.rb +134 -0
  23. data/lib/couchbase/datastructures/couchbase_set.rb +128 -0
  24. data/lib/couchbase/datastructures.rb +24 -0
  25. data/lib/couchbase/diagnostics.rb +181 -0
  26. data/lib/couchbase/errors.rb +376 -0
  27. data/lib/couchbase/json_transcoder.rb +39 -0
  28. data/lib/couchbase/key_value_scan.rb +117 -0
  29. data/lib/couchbase/libcouchbase.rb +6 -0
  30. data/lib/couchbase/logger.rb +85 -0
  31. data/lib/couchbase/management/analytics_index_manager.rb +1127 -0
  32. data/lib/couchbase/management/bucket_manager.rb +443 -0
  33. data/lib/couchbase/management/collection_manager.rb +470 -0
  34. data/lib/couchbase/management/collection_query_index_manager.rb +222 -0
  35. data/lib/couchbase/management/query_index_manager.rb +617 -0
  36. data/lib/couchbase/management/scope_search_index_manager.rb +198 -0
  37. data/lib/couchbase/management/search_index_manager.rb +424 -0
  38. data/lib/couchbase/management/user_manager.rb +468 -0
  39. data/lib/couchbase/management/view_index_manager.rb +237 -0
  40. data/lib/couchbase/management.rb +29 -0
  41. data/lib/couchbase/mutation_state.rb +63 -0
  42. data/lib/couchbase/options.rb +2837 -0
  43. data/lib/couchbase/protostellar/binary_collection.rb +55 -0
  44. data/lib/couchbase/protostellar/bucket.rb +51 -0
  45. data/lib/couchbase/protostellar/client.rb +99 -0
  46. data/lib/couchbase/protostellar/cluster.rb +163 -0
  47. data/lib/couchbase/protostellar/collection.rb +152 -0
  48. data/lib/couchbase/protostellar/connect_options.rb +63 -0
  49. data/lib/couchbase/protostellar/error_handling.rb +203 -0
  50. data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_pb.rb +61 -0
  51. data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_services_pb.rb +35 -0
  52. data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_pb.rb +57 -0
  53. data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_services_pb.rb +36 -0
  54. data/lib/couchbase/protostellar/generated/admin/query/v1/query_pb.rb +61 -0
  55. data/lib/couchbase/protostellar/generated/admin/query/v1/query_services_pb.rb +37 -0
  56. data/lib/couchbase/protostellar/generated/admin/search/v1/search_pb.rb +72 -0
  57. data/lib/couchbase/protostellar/generated/admin/search/v1/search_services_pb.rb +44 -0
  58. data/lib/couchbase/protostellar/generated/analytics/v1/analytics_pb.rb +52 -0
  59. data/lib/couchbase/protostellar/generated/analytics/v1/analytics_services_pb.rb +30 -0
  60. data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_pb.rb +70 -0
  61. data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_services_pb.rb +36 -0
  62. data/lib/couchbase/protostellar/generated/kv/v1/kv_pb.rb +97 -0
  63. data/lib/couchbase/protostellar/generated/kv/v1/kv_services_pb.rb +46 -0
  64. data/lib/couchbase/protostellar/generated/query/v1/query_pb.rb +57 -0
  65. data/lib/couchbase/protostellar/generated/query/v1/query_services_pb.rb +30 -0
  66. data/lib/couchbase/protostellar/generated/routing/v1/routing_pb.rb +52 -0
  67. data/lib/couchbase/protostellar/generated/routing/v1/routing_services_pb.rb +30 -0
  68. data/lib/couchbase/protostellar/generated/search/v1/search_pb.rb +99 -0
  69. data/lib/couchbase/protostellar/generated/search/v1/search_services_pb.rb +30 -0
  70. data/lib/couchbase/protostellar/generated/transactions/v1/transactions_pb.rb +57 -0
  71. data/lib/couchbase/protostellar/generated/transactions/v1/transactions_services_pb.rb +36 -0
  72. data/lib/couchbase/protostellar/generated/view/v1/view_pb.rb +51 -0
  73. data/lib/couchbase/protostellar/generated/view/v1/view_services_pb.rb +30 -0
  74. data/lib/couchbase/protostellar/generated.rb +9 -0
  75. data/lib/couchbase/protostellar/management/bucket_manager.rb +67 -0
  76. data/lib/couchbase/protostellar/management/collection_manager.rb +94 -0
  77. data/lib/couchbase/protostellar/management/collection_query_index_manager.rb +124 -0
  78. data/lib/couchbase/protostellar/management/query_index_manager.rb +112 -0
  79. data/lib/couchbase/protostellar/management.rb +24 -0
  80. data/lib/couchbase/protostellar/request.rb +78 -0
  81. data/lib/couchbase/protostellar/request_behaviour.rb +42 -0
  82. data/lib/couchbase/protostellar/request_generator/admin/bucket.rb +124 -0
  83. data/lib/couchbase/protostellar/request_generator/admin/collection.rb +94 -0
  84. data/lib/couchbase/protostellar/request_generator/admin/query.rb +130 -0
  85. data/lib/couchbase/protostellar/request_generator/admin.rb +24 -0
  86. data/lib/couchbase/protostellar/request_generator/kv.rb +474 -0
  87. data/lib/couchbase/protostellar/request_generator/query.rb +133 -0
  88. data/lib/couchbase/protostellar/request_generator/search.rb +387 -0
  89. data/lib/couchbase/protostellar/request_generator.rb +26 -0
  90. data/lib/couchbase/protostellar/response_converter/admin/bucket.rb +55 -0
  91. data/lib/couchbase/protostellar/response_converter/admin/collection.rb +42 -0
  92. data/lib/couchbase/protostellar/response_converter/admin/query.rb +59 -0
  93. data/lib/couchbase/protostellar/response_converter/admin.rb +24 -0
  94. data/lib/couchbase/protostellar/response_converter/kv.rb +151 -0
  95. data/lib/couchbase/protostellar/response_converter/query.rb +84 -0
  96. data/lib/couchbase/protostellar/response_converter/search.rb +136 -0
  97. data/lib/couchbase/protostellar/response_converter.rb +26 -0
  98. data/lib/couchbase/protostellar/retry/action.rb +38 -0
  99. data/lib/couchbase/protostellar/retry/orchestrator.rb +60 -0
  100. data/lib/couchbase/protostellar/retry/reason.rb +67 -0
  101. data/lib/couchbase/protostellar/retry/strategies/best_effort.rb +49 -0
  102. data/lib/couchbase/protostellar/retry/strategies.rb +26 -0
  103. data/lib/couchbase/protostellar/retry.rb +28 -0
  104. data/lib/couchbase/protostellar/scope.rb +57 -0
  105. data/lib/couchbase/protostellar/timeout_defaults.rb +30 -0
  106. data/lib/couchbase/protostellar/timeouts.rb +83 -0
  107. data/lib/couchbase/protostellar.rb +29 -0
  108. data/lib/couchbase/query_options.rb +120 -0
  109. data/lib/couchbase/railtie.rb +45 -0
  110. data/lib/couchbase/raw_binary_transcoder.rb +37 -0
  111. data/lib/couchbase/raw_json_transcoder.rb +38 -0
  112. data/lib/couchbase/raw_string_transcoder.rb +40 -0
  113. data/lib/couchbase/scope.rb +256 -0
  114. data/lib/couchbase/search_options.rb +1622 -0
  115. data/lib/couchbase/subdoc.rb +290 -0
  116. data/lib/couchbase/transcoder_flags.rb +62 -0
  117. data/lib/couchbase/utils/generic_logger_adapter.rb +38 -0
  118. data/lib/couchbase/utils/stdlib_logger_adapter.rb +65 -0
  119. data/lib/couchbase/utils/time.rb +69 -0
  120. data/lib/couchbase/utils.rb +21 -0
  121. data/lib/couchbase/version.rb +23 -0
  122. data/lib/couchbase/view_options.rb +65 -0
  123. data/lib/couchbase.rb +28 -0
  124. data/lib/rails/generators/couchbase/config/config_generator.rb +27 -0
  125. metadata +190 -0
@@ -0,0 +1,203 @@
1
+ # Copyright 2023. Couchbase, Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # frozen_string_literal: true
16
+
17
+ require "couchbase/errors"
18
+ require "google/rpc/error_details_pb"
19
+ require "google/rpc/code_pb"
20
+
21
+ require_relative "request_behaviour"
22
+ require_relative "retry/orchestrator"
23
+ require_relative "retry/reason"
24
+
25
+ module Couchbase
26
+ module Protostellar
27
+ # @api private
28
+ class ErrorHandling
29
+ TYPE_URL_PRECONDITION_FAILURE = "type.googleapis.com/google.rpc.PreconditionFailure"
30
+ TYPE_URL_RESOURCE_INFO = "type.googleapis.com/google.rpc.ResourceInfo"
31
+ TYPE_URL_ERROR_INFO = "type.googleapis.com/google.rpc.ErrorInfo"
32
+ TYPE_URL_BAD_REQUEST = "type.googleapis.com/google.rpc.BadRequest"
33
+
34
+ def self.convert_rpc_status(rpc_status, request)
35
+ handle_rpc_status(rpc_status, request, set_context: false).error
36
+ end
37
+
38
+ def self.handle_grpc_error(grpc_error, request, set_context: true)
39
+ request.context = {} if request.context.nil? && set_context
40
+
41
+ rpc_status = grpc_error.to_rpc_status
42
+ if rpc_status.nil?
43
+ # Binary RPC status not provided, create an RPC status with the code and message from the error
44
+ rpc_status = Google::Rpc::Status.new(code: grpc_error.code, message: grpc_error.details)
45
+ end
46
+
47
+ handle_rpc_status(rpc_status, request, set_context: set_context) unless rpc_status.nil?
48
+ end
49
+
50
+ def self.populate_context(rpc_status, detail_block, request)
51
+ request.context[:server] = rpc_status.message
52
+
53
+ unless detail_block[:precondition_failure].nil?
54
+ request.context[:precondition_violation] = detail_block[:precondition_failure].violations[0].type
55
+ end
56
+
57
+ unless detail_block[:resource_info].nil?
58
+ request.context[:resource_type] = detail_block[:resource_info].resource_type
59
+ unless detail_block[:resource_info].resource_name.empty?
60
+ request.context[:resource_name] =
61
+ detail_block[:resource_info].resource_name
62
+ end
63
+ end
64
+
65
+ return if detail_block[:error_info].nil?
66
+
67
+ request.context[:reason] = detail_block[:error_info].reason
68
+ end
69
+
70
+ def self.handle_rpc_status(rpc_status, request, set_context: true)
71
+ detail_block = {}
72
+ message = rpc_status.message
73
+
74
+ # Decode the detail block
75
+ rpc_status.details&.each do |d|
76
+ type_url = d.type_url
77
+
78
+ if type_url == TYPE_URL_PRECONDITION_FAILURE
79
+ precondition_failure = Google::Rpc::PreconditionFailure.decode(d.value)
80
+ detail_block[:precondition_failure] = precondition_failure
81
+ end
82
+
83
+ if type_url == TYPE_URL_RESOURCE_INFO
84
+ resource_info = Google::Rpc::ResourceInfo.decode(d.value)
85
+ detail_block[:resource_info] = resource_info
86
+ end
87
+
88
+ if type_url == TYPE_URL_ERROR_INFO
89
+ error_info = Google::Rpc::ErrorInfo.decode(d.value)
90
+ detail_block[:error_info] = error_info
91
+ end
92
+
93
+ if type_url == TYPE_URL_BAD_REQUEST
94
+ bad_request = Google::Rpc::BadRequest.decode(d.value)
95
+ detail_block[:bad_request] = bad_request
96
+ end
97
+ end
98
+
99
+ populate_context(rpc_status, detail_block, request) if set_context
100
+
101
+ behaviour =
102
+ case rpc_status.code
103
+ when Google::Rpc::Code::NOT_FOUND
104
+ case detail_block[:resource_info].resource_type
105
+ when "document"
106
+ RequestBehaviour.fail(Couchbase::Error::DocumentNotFound.new(message, request.error_context))
107
+ when "queryindex", "searchindex"
108
+ RequestBehaviour.fail(Couchbase::Error::IndexNotFound.new(message, request.error_context))
109
+ when "bucket"
110
+ RequestBehaviour.fail(Couchbase::Error::BucketNotFound.new(message, request.error_context))
111
+ when "scope"
112
+ RequestBehaviour.fail(Couchbase::Error::ScopeNotFound.new(message, request.error_context))
113
+ when "collection"
114
+ RequestBehaviour.fail(Couchbase::Error::CollectionNotFound.new(message, request.error_context))
115
+ when "path"
116
+ RequestBehaviour.fail(Couchbase::Error::PathNotFound.new(message, request.error_context))
117
+ end
118
+
119
+ when Google::Rpc::Code::ALREADY_EXISTS
120
+ case detail_block[:resource_info].resource_type
121
+ when "document"
122
+ RequestBehaviour.fail(Couchbase::Error::DocumentExists.new(message, request.error_context))
123
+ when "queryindex", "searchindex"
124
+ RequestBehaviour.fail(Couchbase::Error::IndexExists.new(message, request.error_context))
125
+ when "bucket"
126
+ RequestBehaviour.fail(Couchbase::Error::BucketExists.new(message, request.error_context))
127
+ when "scope"
128
+ RequestBehaviour.fail(Couchbase::Error::ScopeExists.new(message, request.error_context))
129
+ when "collection"
130
+ RequestBehaviour.fail(Couchbase::Error::CollectionExists.new(message, request.error_context))
131
+ when "path"
132
+ RequestBehaviour.fail(Couchbase::Error::PathExists.new(message, request.error_context))
133
+ end
134
+
135
+ when Google::Rpc::Code::INVALID_ARGUMENT
136
+ RequestBehaviour.fail(Couchbase::Error::InvalidArgument.new(message, request.error_context))
137
+
138
+ when Google::Rpc::Code::ABORTED
139
+ case detail_block[:error_info].reason
140
+ when "CAS_MISMATCH"
141
+ RequestBehaviour.fail(Couchbase::Error::CasMismatch.new(message, request.error_context))
142
+ end
143
+
144
+ when Google::Rpc::Code::FAILED_PRECONDITION
145
+ case detail_block[:precondition_failure].violations[0].type
146
+ when "LOCKED"
147
+ Retry::Orchestrator.maybe_retry(request, Retry::Reason::KV_LOCKED)
148
+ when "DOC_TOO_DEEP"
149
+ RequestBehaviour.fail(Couchbase::Error::PathTooDeep.new(message, request.error_context))
150
+ when "DOC_NOT_JSON"
151
+ RequestBehaviour.fail(Couchbase::Error::DocumentNotJson.new(message, request.error_context))
152
+ when "PATH_MISMATCH"
153
+ RequestBehaviour.fail(Couchbase::Error::PathMismatch.new(message, request.error_context))
154
+ when "WOULD_INVALIDATE_JSON"
155
+ RequestBehaviour.fail(Couchbase::Error::ValueInvalid.new(message, request.error_context))
156
+ when "PATH_VALUE_OUT_OF_RANGE"
157
+ RequestBehaviour.fail(Couchbase::Error::NumberTooBig.new(message, request.error_context))
158
+ when "VALUE_TOO_LARGE"
159
+ RequestBehaviour.fail(Couchbase::Error::ValueTooLarge.new(message, request.error_context))
160
+ end
161
+
162
+ when Google::Rpc::Code::UNIMPLEMENTED
163
+ RequestBehaviour.fail(Couchbase::Error::FeatureNotAvailable.new(message, request.error_context))
164
+
165
+ when Google::Rpc::Code::UNAUTHENTICATED
166
+ RequestBehaviour.fail(Couchbase::Error::AuthenticationFailure.new(message, request.error_context))
167
+
168
+ when Google::Rpc::Code::PERMISSION_DENIED
169
+ if detail_block[:resource_info].resource_type == "user"
170
+ RequestBehaviour.fail(Couchbase::Error::AuthenticationFailure.new(message, request.error_context))
171
+ else
172
+ RequestBehaviour.fail(Couchbase::Error::PermissionDenied.new(message, request.error_context))
173
+ end
174
+
175
+ when Google::Rpc::Code::CANCELLED
176
+ RequestBehaviour.fail(Couchbase::Error::RequestCanceled.new(message, request.error_context))
177
+
178
+ when Google::Rpc::Code::DEADLINE_EXCEEDED
179
+ if request.idempotent
180
+ RequestBehaviour.fail(Couchbase::Error::UnambiguousTimeout.new(message, request.error_context))
181
+ else
182
+ RequestBehaviour.fail(Couchbase::Error::AmbiguousTimeout.new(message, request.error_context))
183
+ end
184
+
185
+ when Google::Rpc::Code::INTERNAL
186
+ RequestBehaviour.fail(Couchbase::Error::InternalServerFailure.new(message, request.error_context))
187
+
188
+ when Google::Rpc::Code::UNAVAILABLE
189
+ Retry::Orchestrator.maybe_retry(request, Retry::Reason::SOCKET_NOT_AVAILABLE)
190
+
191
+ when Google::Rpc::Code::OK
192
+ RequestBehaviour.success
193
+ end
194
+
195
+ if behaviour.nil?
196
+ RequestBehaviour.fail(Couchbase::Error::CouchbaseError.new(message, request.error_context))
197
+ else
198
+ behaviour
199
+ end
200
+ end
201
+ end
202
+ end
203
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/bucket/v1/bucket.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'couchbase/protostellar/generated/kv/v1/kv_pb'
8
+
9
+
10
+ descriptor_data = "\n&couchbase/admin/bucket/v1/bucket.proto\x12\x19\x63ouchbase.admin.bucket.v1\x1a\x18\x63ouchbase/kv/v1/kv.proto\"\x14\n\x12ListBucketsRequest\"\xcc\x05\n\x13ListBucketsResponse\x12\x46\n\x07\x62uckets\x18\x01 \x03(\x0b\x32\x35.couchbase.admin.bucket.v1.ListBucketsResponse.Bucket\x1a\xec\x04\n\x06\x42ucket\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x15\n\rflush_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cram_quota_mb\x18\x03 \x01(\x04\x12\x14\n\x0cnum_replicas\x18\x04 \x01(\r\x12\x17\n\x0freplica_indexes\x18\x05 \x01(\x08\x12:\n\x0b\x62ucket_type\x18\x06 \x01(\x0e\x32%.couchbase.admin.bucket.v1.BucketType\x12>\n\reviction_mode\x18\x07 \x01(\x0e\x32\'.couchbase.admin.bucket.v1.EvictionMode\x12\x17\n\x0fmax_expiry_secs\x18\x08 \x01(\r\x12\x44\n\x10\x63ompression_mode\x18\t \x01(\x0e\x32*.couchbase.admin.bucket.v1.CompressionMode\x12G\n\x18minimum_durability_level\x18\n \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x00\x88\x01\x01\x12G\n\x0fstorage_backend\x18\x0b \x01(\x0e\x32).couchbase.admin.bucket.v1.StorageBackendH\x01\x88\x01\x01\x12S\n\x18\x63onflict_resolution_type\x18\x0c \x01(\x0e\x32\x31.couchbase.admin.bucket.v1.ConflictResolutionTypeB\x1b\n\x19_minimum_durability_levelB\x12\n\x10_storage_backend\"\xc1\x06\n\x13\x43reateBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12:\n\x0b\x62ucket_type\x18\x02 \x01(\x0e\x32%.couchbase.admin.bucket.v1.BucketType\x12\x19\n\x0cram_quota_mb\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x19\n\x0cnum_replicas\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rflush_enabled\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1c\n\x0freplica_indexes\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x43\n\reviction_mode\x18\x07 \x01(\x0e\x32\'.couchbase.admin.bucket.v1.EvictionModeH\x04\x88\x01\x01\x12\x1c\n\x0fmax_expiry_secs\x18\x08 \x01(\rH\x05\x88\x01\x01\x12I\n\x10\x63ompression_mode\x18\t \x01(\x0e\x32*.couchbase.admin.bucket.v1.CompressionModeH\x06\x88\x01\x01\x12G\n\x18minimum_durability_level\x18\n \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x07\x88\x01\x01\x12G\n\x0fstorage_backend\x18\x0b \x01(\x0e\x32).couchbase.admin.bucket.v1.StorageBackendH\x08\x88\x01\x01\x12X\n\x18\x63onflict_resolution_type\x18\x0c \x01(\x0e\x32\x31.couchbase.admin.bucket.v1.ConflictResolutionTypeH\t\x88\x01\x01\x42\x0f\n\r_ram_quota_mbB\x0f\n\r_num_replicasB\x10\n\x0e_flush_enabledB\x12\n\x10_replica_indexesB\x10\n\x0e_eviction_modeB\x12\n\x10_max_expiry_secsB\x13\n\x11_compression_modeB\x1b\n\x19_minimum_durability_levelB\x12\n\x10_storage_backendB\x1b\n\x19_conflict_resolution_type\"+\n\x14\x43reateBucketResponse\x12\x13\n\x0b\x62ucket_uuid\x18\x01 \x01(\t\"\xff\x03\n\x13UpdateBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x19\n\x0cram_quota_mb\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x19\n\x0cnum_replicas\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rflush_enabled\x18\x04 \x01(\x08H\x02\x88\x01\x01\x12\x43\n\reviction_mode\x18\x05 \x01(\x0e\x32\'.couchbase.admin.bucket.v1.EvictionModeH\x03\x88\x01\x01\x12\x1c\n\x0fmax_expiry_secs\x18\x06 \x01(\rH\x04\x88\x01\x01\x12I\n\x10\x63ompression_mode\x18\x07 \x01(\x0e\x32*.couchbase.admin.bucket.v1.CompressionModeH\x05\x88\x01\x01\x12G\n\x18minimum_durability_level\x18\x08 \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x06\x88\x01\x01\x42\x0f\n\r_ram_quota_mbB\x0f\n\r_num_replicasB\x10\n\x0e_flush_enabledB\x10\n\x0e_eviction_modeB\x12\n\x10_max_expiry_secsB\x13\n\x11_compression_modeB\x1b\n\x19_minimum_durability_level\"\x16\n\x14UpdateBucketResponse\"*\n\x13\x44\x65leteBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteBucketResponse*B\n\nBucketType\x12\x19\n\x15\x42UCKET_TYPE_COUCHBASE\x10\x00\x12\x19\n\x15\x42UCKET_TYPE_EPHEMERAL\x10\x01*\x81\x01\n\x0c\x45victionMode\x12\x16\n\x12\x45VICTION_MODE_FULL\x10\x00\x12#\n\x1f\x45VICTION_MODE_NOT_RECENTLY_USED\x10\x01\x12\x1c\n\x18\x45VICTION_MODE_VALUE_ONLY\x10\x02\x12\x16\n\x12\x45VICTION_MODE_NONE\x10\x03*f\n\x0f\x43ompressionMode\x12\x18\n\x14\x43OMPRESSION_MODE_OFF\x10\x00\x12\x1c\n\x18\x43OMPRESSION_MODE_PASSIVE\x10\x01\x12\x1b\n\x17\x43OMPRESSION_MODE_ACTIVE\x10\x02*K\n\x0eStorageBackend\x12\x1e\n\x1aSTORAGE_BACKEND_COUCHSTORE\x10\x00\x12\x19\n\x15STORAGE_BACKEND_MAGMA\x10\x01*\x93\x01\n\x16\x43onflictResolutionType\x12&\n\"CONFLICT_RESOLUTION_TYPE_TIMESTAMP\x10\x00\x12,\n(CONFLICT_RESOLUTION_TYPE_SEQUENCE_NUMBER\x10\x01\x12#\n\x1f\x43ONFLICT_RESOLUTION_TYPE_CUSTOM\x10\x02\x32\xdd\x03\n\x12\x42ucketAdminService\x12n\n\x0bListBuckets\x12-.couchbase.admin.bucket.v1.ListBucketsRequest\x1a..couchbase.admin.bucket.v1.ListBucketsResponse\"\x00\x12q\n\x0c\x43reateBucket\x12..couchbase.admin.bucket.v1.CreateBucketRequest\x1a/.couchbase.admin.bucket.v1.CreateBucketResponse\"\x00\x12q\n\x0cUpdateBucket\x12..couchbase.admin.bucket.v1.UpdateBucketRequest\x1a/.couchbase.admin.bucket.v1.UpdateBucketResponse\"\x00\x12q\n\x0c\x44\x65leteBucket\x12..couchbase.admin.bucket.v1.DeleteBucketRequest\x1a/.couchbase.admin.bucket.v1.DeleteBucketResponse\"\x00\x42\x97\x02\n1com.couchbase.client.protostellar.admin.bucket.v1P\x01ZLgithub.com/couchbase/goprotostellar/genproto/admin_bucket_v1;admin_bucket_v1\xaa\x02&Couchbase.Protostellar.Admin.Bucket.V1\xca\x02\x30\x43ouchbase\\Protostellar\\Generated\\Admin\\Bucket\\V1\xea\x02\x35\x43ouchbase::Protostellar::Generated::Admin::Bucket::V1b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Couchbase
37
+ module Protostellar
38
+ module Generated
39
+ module Admin
40
+ module Bucket
41
+ module V1
42
+ ListBucketsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ListBucketsRequest").msgclass
43
+ ListBucketsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ListBucketsResponse").msgclass
44
+ ListBucketsResponse::Bucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ListBucketsResponse.Bucket").msgclass
45
+ CreateBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.CreateBucketRequest").msgclass
46
+ CreateBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.CreateBucketResponse").msgclass
47
+ UpdateBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.UpdateBucketRequest").msgclass
48
+ UpdateBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.UpdateBucketResponse").msgclass
49
+ DeleteBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.DeleteBucketRequest").msgclass
50
+ DeleteBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.DeleteBucketResponse").msgclass
51
+ BucketType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.BucketType").enummodule
52
+ EvictionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.EvictionMode").enummodule
53
+ CompressionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.CompressionMode").enummodule
54
+ StorageBackend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.StorageBackend").enummodule
55
+ ConflictResolutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ConflictResolutionType").enummodule
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,35 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: couchbase/admin/bucket/v1/bucket.proto for package 'Couchbase.Protostellar.Generated.Admin.Bucket.V1'
3
+
4
+ require 'grpc'
5
+ require 'couchbase/protostellar/generated/admin/bucket/v1/bucket_pb'
6
+
7
+ module Couchbase
8
+ module Protostellar
9
+ module Generated
10
+ module Admin
11
+ module Bucket
12
+ module V1
13
+ module BucketAdminService
14
+ class Service
15
+
16
+ include ::GRPC::GenericService
17
+
18
+ self.marshal_class_method = :encode
19
+ self.unmarshal_class_method = :decode
20
+ self.service_name = 'couchbase.admin.bucket.v1.BucketAdminService'
21
+
22
+ rpc :ListBuckets, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::ListBucketsRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::ListBucketsResponse
23
+ rpc :CreateBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::CreateBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::CreateBucketResponse
24
+ rpc :UpdateBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::UpdateBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::UpdateBucketResponse
25
+ rpc :DeleteBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::DeleteBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::DeleteBucketResponse
26
+ end
27
+
28
+ Stub = Service.rpc_stub_class
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/collection/v1/collection.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n.couchbase/admin/collection/v1/collection.proto\x12\x1d\x63ouchbase.admin.collection.v1\"-\n\x16ListCollectionsRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\"\xa4\x02\n\x17ListCollectionsResponse\x12L\n\x06scopes\x18\x01 \x03(\x0b\x32<.couchbase.admin.collection.v1.ListCollectionsResponse.Scope\x1aL\n\nCollection\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0fmax_expiry_secs\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x12\n\x10_max_expiry_secs\x1am\n\x05Scope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12V\n\x0b\x63ollections\x18\x02 \x03(\x0b\x32\x41.couchbase.admin.collection.v1.ListCollectionsResponse.Collection\"=\n\x12\x43reateScopeRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\"\x15\n\x13\x43reateScopeResponse\"=\n\x12\x44\x65leteScopeRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\"\x15\n\x13\x44\x65leteScopeResponse\"\x8d\x01\n\x17\x43reateCollectionRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x1c\n\x0fmax_expiry_secs\x18\x04 \x01(\rH\x00\x88\x01\x01\x42\x12\n\x10_max_expiry_secs\"\x1a\n\x18\x43reateCollectionResponse\"[\n\x17\x44\x65leteCollectionRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"\x1a\n\x18\x44\x65leteCollectionResponse2\x9d\x05\n\x16\x43ollectionAdminService\x12\x82\x01\n\x0fListCollections\x12\x35.couchbase.admin.collection.v1.ListCollectionsRequest\x1a\x36.couchbase.admin.collection.v1.ListCollectionsResponse\"\x00\x12v\n\x0b\x43reateScope\x12\x31.couchbase.admin.collection.v1.CreateScopeRequest\x1a\x32.couchbase.admin.collection.v1.CreateScopeResponse\"\x00\x12v\n\x0b\x44\x65leteScope\x12\x31.couchbase.admin.collection.v1.DeleteScopeRequest\x1a\x32.couchbase.admin.collection.v1.DeleteScopeResponse\"\x00\x12\x85\x01\n\x10\x43reateCollection\x12\x36.couchbase.admin.collection.v1.CreateCollectionRequest\x1a\x37.couchbase.admin.collection.v1.CreateCollectionResponse\"\x00\x12\x85\x01\n\x10\x44\x65leteCollection\x12\x36.couchbase.admin.collection.v1.DeleteCollectionRequest\x1a\x37.couchbase.admin.collection.v1.DeleteCollectionResponse\"\x00\x42\xaf\x02\n5com.couchbase.client.protostellar.admin.collection.v1P\x01ZTgithub.com/couchbase/goprotostellar/genproto/admin_collection_v1;admin_collection_v1\xaa\x02*Couchbase.Protostellar.Admin.Collection.V1\xca\x02\x34\x43ouchbase\\Protostellar\\Generated\\Admin\\Collection\\V1\xea\x02\x39\x43ouchbase::Protostellar::Generated::Admin::Collection::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Couchbase
35
+ module Protostellar
36
+ module Generated
37
+ module Admin
38
+ module Collection
39
+ module V1
40
+ ListCollectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsRequest").msgclass
41
+ ListCollectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsResponse").msgclass
42
+ ListCollectionsResponse::Collection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsResponse.Collection").msgclass
43
+ ListCollectionsResponse::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsResponse.Scope").msgclass
44
+ CreateScopeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateScopeRequest").msgclass
45
+ CreateScopeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateScopeResponse").msgclass
46
+ DeleteScopeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteScopeRequest").msgclass
47
+ DeleteScopeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteScopeResponse").msgclass
48
+ CreateCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateCollectionRequest").msgclass
49
+ CreateCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateCollectionResponse").msgclass
50
+ DeleteCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteCollectionRequest").msgclass
51
+ DeleteCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteCollectionResponse").msgclass
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,36 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: couchbase/admin/collection/v1/collection.proto for package 'Couchbase.Protostellar.Generated.Admin.Collection.V1'
3
+
4
+ require 'grpc'
5
+ require 'couchbase/protostellar/generated/admin/collection/v1/collection_pb'
6
+
7
+ module Couchbase
8
+ module Protostellar
9
+ module Generated
10
+ module Admin
11
+ module Collection
12
+ module V1
13
+ module CollectionAdminService
14
+ class Service
15
+
16
+ include ::GRPC::GenericService
17
+
18
+ self.marshal_class_method = :encode
19
+ self.unmarshal_class_method = :decode
20
+ self.service_name = 'couchbase.admin.collection.v1.CollectionAdminService'
21
+
22
+ rpc :ListCollections, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::ListCollectionsRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::ListCollectionsResponse
23
+ rpc :CreateScope, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateScopeRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateScopeResponse
24
+ rpc :DeleteScope, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteScopeRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteScopeResponse
25
+ rpc :CreateCollection, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateCollectionRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateCollectionResponse
26
+ rpc :DeleteCollection, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteCollectionRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteCollectionResponse
27
+ end
28
+
29
+ Stub = Service.rpc_stub_class
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/query/v1/query.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n$couchbase/admin/query/v1/query.proto\x12\x18\x63ouchbase.admin.query.v1\"\x9a\x01\n\x14GetAllIndexesRequest\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_nameB\x12\n\x10_collection_name\"\x91\x03\n\x15GetAllIndexesResponse\x12\x46\n\x07indexes\x18\x01 \x03(\x0b\x32\x35.couchbase.admin.query.v1.GetAllIndexesResponse.Index\x1a\xaf\x02\n\x05Index\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x12\n\nis_primary\x18\x05 \x01(\x08\x12\x31\n\x04type\x18\x06 \x01(\x0e\x32#.couchbase.admin.query.v1.IndexType\x12\x33\n\x05state\x18\x07 \x01(\x0e\x32$.couchbase.admin.query.v1.IndexState\x12\x0e\n\x06\x66ields\x18\x08 \x03(\t\x12\x16\n\tcondition\x18\t \x01(\tH\x00\x88\x01\x01\x12\x16\n\tpartition\x18\n \x01(\tH\x01\x88\x01\x01\x42\x0c\n\n_conditionB\x0c\n\n_partition\"\xaa\x02\n\x19\x43reatePrimaryIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04name\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x19\n\x0cnum_replicas\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12\x15\n\x08\x64\x65\x66\x65rred\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1d\n\x10ignore_if_exists\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x07\n\x05_nameB\x0f\n\r_num_replicasB\x0b\n\t_deferredB\x13\n\x11_ignore_if_exists\"\x1c\n\x1a\x43reatePrimaryIndexResponse\"\xa5\x02\n\x12\x43reateIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x19\n\x0cnum_replicas\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x0e\n\x06\x66ields\x18\x06 \x03(\t\x12\x15\n\x08\x64\x65\x66\x65rred\x18\x07 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10ignore_if_exists\x18\x08 \x01(\x08H\x04\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x0f\n\r_num_replicasB\x0b\n\t_deferredB\x13\n\x11_ignore_if_exists\"\x15\n\x13\x43reateIndexResponse\"\xda\x01\n\x17\x44ropPrimaryIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04name\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_if_missing\x18\x05 \x01(\x08H\x03\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x07\n\x05_nameB\x14\n\x12_ignore_if_missing\"\x1a\n\x18\x44ropPrimaryIndexResponse\"\xc5\x01\n\x10\x44ropIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x1e\n\x11ignore_if_missing\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x14\n\x12_ignore_if_missing\"\x13\n\x11\x44ropIndexResponse\"\x8c\x01\n\x1b\x42uildDeferredIndexesRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_name\"\xf4\x01\n\x1c\x42uildDeferredIndexesResponse\x12M\n\x07indexes\x18\x01 \x03(\x0b\x32<.couchbase.admin.query.v1.BuildDeferredIndexesResponse.Index\x1a\x84\x01\n\x05Index\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x04 \x01(\tB\r\n\x0b_scope_nameB\x12\n\x10_collection_name*4\n\tIndexType\x12\x13\n\x0fINDEX_TYPE_VIEW\x10\x00\x12\x12\n\x0eINDEX_TYPE_GSI\x10\x01*\xbf\x01\n\nIndexState\x12\x18\n\x14INDEX_STATE_DEFERRED\x10\x00\x12\x18\n\x14INDEX_STATE_BUILDING\x10\x01\x12\x17\n\x13INDEX_STATE_PENDING\x10\x02\x12\x16\n\x12INDEX_STATE_ONLINE\x10\x03\x12\x17\n\x13INDEX_STATE_OFFLINE\x10\x04\x12\x18\n\x14INDEX_STATE_ABRIDGED\x10\x05\x12\x19\n\x15INDEX_STATE_SCHEDULED\x10\x06\x32\xe8\x05\n\x11QueryAdminService\x12r\n\rGetAllIndexes\x12..couchbase.admin.query.v1.GetAllIndexesRequest\x1a/.couchbase.admin.query.v1.GetAllIndexesResponse\"\x00\x12\x81\x01\n\x12\x43reatePrimaryIndex\x12\x33.couchbase.admin.query.v1.CreatePrimaryIndexRequest\x1a\x34.couchbase.admin.query.v1.CreatePrimaryIndexResponse\"\x00\x12l\n\x0b\x43reateIndex\x12,.couchbase.admin.query.v1.CreateIndexRequest\x1a-.couchbase.admin.query.v1.CreateIndexResponse\"\x00\x12{\n\x10\x44ropPrimaryIndex\x12\x31.couchbase.admin.query.v1.DropPrimaryIndexRequest\x1a\x32.couchbase.admin.query.v1.DropPrimaryIndexResponse\"\x00\x12\x66\n\tDropIndex\x12*.couchbase.admin.query.v1.DropIndexRequest\x1a+.couchbase.admin.query.v1.DropIndexResponse\"\x00\x12\x87\x01\n\x14\x42uildDeferredIndexes\x12\x35.couchbase.admin.query.v1.BuildDeferredIndexesRequest\x1a\x36.couchbase.admin.query.v1.BuildDeferredIndexesResponse\"\x00\x42\x91\x02\n0com.couchbase.client.protostellar.admin.query.v1P\x01ZJgithub.com/couchbase/goprotostellar/genproto/admin_query_v1;admin_query_v1\xaa\x02%Couchbase.Protostellar.Admin.Query.V1\xca\x02/Couchbase\\Protostellar\\Generated\\Admin\\Query\\V1\xea\x02\x34\x43ouchbase::Protostellar::Generated::Admin::Query::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Couchbase
35
+ module Protostellar
36
+ module Generated
37
+ module Admin
38
+ module Query
39
+ module V1
40
+ GetAllIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.GetAllIndexesRequest").msgclass
41
+ GetAllIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.GetAllIndexesResponse").msgclass
42
+ GetAllIndexesResponse::Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.GetAllIndexesResponse.Index").msgclass
43
+ CreatePrimaryIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreatePrimaryIndexRequest").msgclass
44
+ CreatePrimaryIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreatePrimaryIndexResponse").msgclass
45
+ CreateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreateIndexRequest").msgclass
46
+ CreateIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreateIndexResponse").msgclass
47
+ DropPrimaryIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropPrimaryIndexRequest").msgclass
48
+ DropPrimaryIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropPrimaryIndexResponse").msgclass
49
+ DropIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropIndexRequest").msgclass
50
+ DropIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropIndexResponse").msgclass
51
+ BuildDeferredIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.BuildDeferredIndexesRequest").msgclass
52
+ BuildDeferredIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.BuildDeferredIndexesResponse").msgclass
53
+ BuildDeferredIndexesResponse::Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.BuildDeferredIndexesResponse.Index").msgclass
54
+ IndexType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.IndexType").enummodule
55
+ IndexState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.IndexState").enummodule
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,37 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: couchbase/admin/query/v1/query.proto for package 'Couchbase.Protostellar.Generated.Admin.Query.V1'
3
+
4
+ require 'grpc'
5
+ require 'couchbase/protostellar/generated/admin/query/v1/query_pb'
6
+
7
+ module Couchbase
8
+ module Protostellar
9
+ module Generated
10
+ module Admin
11
+ module Query
12
+ module V1
13
+ module QueryAdminService
14
+ class Service
15
+
16
+ include ::GRPC::GenericService
17
+
18
+ self.marshal_class_method = :encode
19
+ self.unmarshal_class_method = :decode
20
+ self.service_name = 'couchbase.admin.query.v1.QueryAdminService'
21
+
22
+ rpc :GetAllIndexes, ::Couchbase::Protostellar::Generated::Admin::Query::V1::GetAllIndexesRequest, ::Couchbase::Protostellar::Generated::Admin::Query::V1::GetAllIndexesResponse
23
+ rpc :CreatePrimaryIndex, ::Couchbase::Protostellar::Generated::Admin::Query::V1::CreatePrimaryIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Query::V1::CreatePrimaryIndexResponse
24
+ rpc :CreateIndex, ::Couchbase::Protostellar::Generated::Admin::Query::V1::CreateIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Query::V1::CreateIndexResponse
25
+ rpc :DropPrimaryIndex, ::Couchbase::Protostellar::Generated::Admin::Query::V1::DropPrimaryIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Query::V1::DropPrimaryIndexResponse
26
+ rpc :DropIndex, ::Couchbase::Protostellar::Generated::Admin::Query::V1::DropIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Query::V1::DropIndexResponse
27
+ rpc :BuildDeferredIndexes, ::Couchbase::Protostellar::Generated::Admin::Query::V1::BuildDeferredIndexesRequest, ::Couchbase::Protostellar::Generated::Admin::Query::V1::BuildDeferredIndexesResponse
28
+ end
29
+
30
+ Stub = Service.rpc_stub_class
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,72 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/search/v1/search.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n&couchbase/admin/search/v1/search.proto\x12\x19\x63ouchbase.admin.search.v1\"\x96\x04\n\x05Index\x12\x0c\n\x04name\x18\x01 \x01(\t\x12<\n\x06params\x18\x02 \x03(\x0b\x32,.couchbase.admin.search.v1.Index.ParamsEntry\x12\x45\n\x0bplan_params\x18\x03 \x03(\x0b\x32\x30.couchbase.admin.search.v1.Index.PlanParamsEntry\x12\x18\n\x0bsource_name\x18\x04 \x01(\tH\x00\x88\x01\x01\x12I\n\rsource_params\x18\x05 \x03(\x0b\x32\x32.couchbase.admin.search.v1.Index.SourceParamsEntry\x12\x18\n\x0bsource_type\x18\x06 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bsource_uuid\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x0c\n\x04type\x18\x08 \x01(\t\x12\x0c\n\x04uuid\x18\t \x01(\t\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a\x31\n\x0fPlanParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a\x33\n\x11SourceParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x42\x0e\n\x0c_source_nameB\x0e\n\x0c_source_typeB\x0e\n\x0c_source_uuid\"\xc0\x05\n\x12\x43reateIndexRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12I\n\x06params\x18\x02 \x03(\x0b\x32\x39.couchbase.admin.search.v1.CreateIndexRequest.ParamsEntry\x12R\n\x0bplan_params\x18\x03 \x03(\x0b\x32=.couchbase.admin.search.v1.CreateIndexRequest.PlanParamsEntry\x12\x1c\n\x0fprev_index_uuid\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0bsource_name\x18\x05 \x01(\tH\x01\x88\x01\x01\x12V\n\rsource_params\x18\x06 \x03(\x0b\x32?.couchbase.admin.search.v1.CreateIndexRequest.SourceParamsEntry\x12\x18\n\x0bsource_type\x18\x07 \x01(\tH\x02\x88\x01\x01\x12\x18\n\x0bsource_uuid\x18\x08 \x01(\tH\x03\x88\x01\x01\x12\x0c\n\x04type\x18\t \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\n \x01(\tH\x04\x88\x01\x01\x12\x17\n\nscope_name\x18\x0b \x01(\tH\x05\x88\x01\x01\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a\x31\n\x0fPlanParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a\x33\n\x11SourceParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x42\x12\n\x10_prev_index_uuidB\x0e\n\x0c_source_nameB\x0e\n\x0c_source_typeB\x0e\n\x0c_source_uuidB\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x15\n\x13\x43reateIndexResponse\"\x97\x01\n\x12UpdateIndexRequest\x12/\n\x05index\x18\x01 \x01(\x0b\x32 .couchbase.admin.search.v1.Index\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x15\n\x13UpdateIndexResponse\"q\n\x0fGetIndexRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"C\n\x10GetIndexResponse\x12/\n\x05index\x18\x01 \x01(\x0b\x32 .couchbase.admin.search.v1.Index\"f\n\x12ListIndexesRequest\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"H\n\x13ListIndexesResponse\x12\x31\n\x07indexes\x18\x01 \x03(\x0b\x32 .couchbase.admin.search.v1.Index\"t\n\x12\x44\x65leteIndexRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x15\n\x13\x44\x65leteIndexResponse\"\x85\x01\n\x16\x41nalyzeDocumentRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03\x64oc\x18\x02 \x01(\x0c\x12\x18\n\x0b\x62ucket_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\";\n\x17\x41nalyzeDocumentResponse\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x10\n\x08\x61nalyzed\x18\x02 \x01(\x0c\"\x81\x01\n\x1fGetIndexedDocumentsCountRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x04 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"1\n GetIndexedDocumentsCountResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x04\"y\n\x17PauseIndexIngestRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x1a\n\x18PauseIndexIngestResponse\"z\n\x18ResumeIndexIngestRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x1b\n\x19ResumeIndexIngestResponse\"{\n\x19\x41llowIndexQueryingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x1c\n\x1a\x41llowIndexQueryingResponse\"~\n\x1c\x44isallowIndexQueryingRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x1f\n\x1d\x44isallowIndexQueryingResponse\"x\n\x16\x46reezeIndexPlanRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x19\n\x17\x46reezeIndexPlanResponse\"z\n\x18UnfreezeIndexPlanRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x0b\x62ucket_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_name\"\x1b\n\x19UnfreezeIndexPlanResponse2\xe5\x0c\n\x12SearchAdminService\x12\x65\n\x08GetIndex\x12*.couchbase.admin.search.v1.GetIndexRequest\x1a+.couchbase.admin.search.v1.GetIndexResponse\"\x00\x12n\n\x0bListIndexes\x12-.couchbase.admin.search.v1.ListIndexesRequest\x1a..couchbase.admin.search.v1.ListIndexesResponse\"\x00\x12n\n\x0b\x43reateIndex\x12-.couchbase.admin.search.v1.CreateIndexRequest\x1a..couchbase.admin.search.v1.CreateIndexResponse\"\x00\x12n\n\x0bUpdateIndex\x12-.couchbase.admin.search.v1.UpdateIndexRequest\x1a..couchbase.admin.search.v1.UpdateIndexResponse\"\x00\x12n\n\x0b\x44\x65leteIndex\x12-.couchbase.admin.search.v1.DeleteIndexRequest\x1a..couchbase.admin.search.v1.DeleteIndexResponse\"\x00\x12z\n\x0f\x41nalyzeDocument\x12\x31.couchbase.admin.search.v1.AnalyzeDocumentRequest\x1a\x32.couchbase.admin.search.v1.AnalyzeDocumentResponse\"\x00\x12\x95\x01\n\x18GetIndexedDocumentsCount\x12:.couchbase.admin.search.v1.GetIndexedDocumentsCountRequest\x1a;.couchbase.admin.search.v1.GetIndexedDocumentsCountResponse\"\x00\x12}\n\x10PauseIndexIngest\x12\x32.couchbase.admin.search.v1.PauseIndexIngestRequest\x1a\x33.couchbase.admin.search.v1.PauseIndexIngestResponse\"\x00\x12\x80\x01\n\x11ResumeIndexIngest\x12\x33.couchbase.admin.search.v1.ResumeIndexIngestRequest\x1a\x34.couchbase.admin.search.v1.ResumeIndexIngestResponse\"\x00\x12\x83\x01\n\x12\x41llowIndexQuerying\x12\x34.couchbase.admin.search.v1.AllowIndexQueryingRequest\x1a\x35.couchbase.admin.search.v1.AllowIndexQueryingResponse\"\x00\x12\x8c\x01\n\x15\x44isallowIndexQuerying\x12\x37.couchbase.admin.search.v1.DisallowIndexQueryingRequest\x1a\x38.couchbase.admin.search.v1.DisallowIndexQueryingResponse\"\x00\x12z\n\x0f\x46reezeIndexPlan\x12\x31.couchbase.admin.search.v1.FreezeIndexPlanRequest\x1a\x32.couchbase.admin.search.v1.FreezeIndexPlanResponse\"\x00\x12\x80\x01\n\x11UnfreezeIndexPlan\x12\x33.couchbase.admin.search.v1.UnfreezeIndexPlanRequest\x1a\x34.couchbase.admin.search.v1.UnfreezeIndexPlanResponse\"\x00\x42\x97\x02\n1com.couchbase.client.protostellar.admin.search.v1P\x01ZLgithub.com/couchbase/goprotostellar/genproto/admin_search_v1;admin_search_v1\xaa\x02&Couchbase.Protostellar.Admin.Search.V1\xca\x02\x30\x43ouchbase\\Protostellar\\Generated\\Admin\\Search\\V1\xea\x02\x35\x43ouchbase::Protostellar::Generated::Admin::Search::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Couchbase
35
+ module Protostellar
36
+ module Generated
37
+ module Admin
38
+ module Search
39
+ module V1
40
+ Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.Index").msgclass
41
+ CreateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.CreateIndexRequest").msgclass
42
+ CreateIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.CreateIndexResponse").msgclass
43
+ UpdateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.UpdateIndexRequest").msgclass
44
+ UpdateIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.UpdateIndexResponse").msgclass
45
+ GetIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.GetIndexRequest").msgclass
46
+ GetIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.GetIndexResponse").msgclass
47
+ ListIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.ListIndexesRequest").msgclass
48
+ ListIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.ListIndexesResponse").msgclass
49
+ DeleteIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.DeleteIndexRequest").msgclass
50
+ DeleteIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.DeleteIndexResponse").msgclass
51
+ AnalyzeDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.AnalyzeDocumentRequest").msgclass
52
+ AnalyzeDocumentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.AnalyzeDocumentResponse").msgclass
53
+ GetIndexedDocumentsCountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.GetIndexedDocumentsCountRequest").msgclass
54
+ GetIndexedDocumentsCountResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.GetIndexedDocumentsCountResponse").msgclass
55
+ PauseIndexIngestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.PauseIndexIngestRequest").msgclass
56
+ PauseIndexIngestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.PauseIndexIngestResponse").msgclass
57
+ ResumeIndexIngestRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.ResumeIndexIngestRequest").msgclass
58
+ ResumeIndexIngestResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.ResumeIndexIngestResponse").msgclass
59
+ AllowIndexQueryingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.AllowIndexQueryingRequest").msgclass
60
+ AllowIndexQueryingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.AllowIndexQueryingResponse").msgclass
61
+ DisallowIndexQueryingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.DisallowIndexQueryingRequest").msgclass
62
+ DisallowIndexQueryingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.DisallowIndexQueryingResponse").msgclass
63
+ FreezeIndexPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.FreezeIndexPlanRequest").msgclass
64
+ FreezeIndexPlanResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.FreezeIndexPlanResponse").msgclass
65
+ UnfreezeIndexPlanRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.UnfreezeIndexPlanRequest").msgclass
66
+ UnfreezeIndexPlanResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.search.v1.UnfreezeIndexPlanResponse").msgclass
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end