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.
- checksums.yaml +7 -0
- data/LICENSE.txt +202 -0
- data/README.md +154 -0
- data/ext/extconf.rb +0 -0
- data/lib/active_support/cache/couchbase_store.rb +339 -0
- data/lib/couchbase/3.1/libcouchbase.so +0 -0
- data/lib/couchbase/3.2/libcouchbase.so +0 -0
- data/lib/couchbase/3.3/libcouchbase.so +0 -0
- data/lib/couchbase/analytics_options.rb +107 -0
- data/lib/couchbase/authenticator.rb +64 -0
- data/lib/couchbase/binary_collection.rb +128 -0
- data/lib/couchbase/binary_collection_options.rb +24 -0
- data/lib/couchbase/bucket.rb +144 -0
- data/lib/couchbase/cluster.rb +460 -0
- data/lib/couchbase/cluster_registry.rb +49 -0
- data/lib/couchbase/collection.rb +705 -0
- data/lib/couchbase/collection_options.rb +399 -0
- data/lib/couchbase/config_profiles.rb +55 -0
- data/lib/couchbase/configuration.rb +56 -0
- data/lib/couchbase/datastructures/couchbase_list.rb +160 -0
- data/lib/couchbase/datastructures/couchbase_map.rb +194 -0
- data/lib/couchbase/datastructures/couchbase_queue.rb +134 -0
- data/lib/couchbase/datastructures/couchbase_set.rb +128 -0
- data/lib/couchbase/datastructures.rb +24 -0
- data/lib/couchbase/diagnostics.rb +181 -0
- data/lib/couchbase/errors.rb +376 -0
- data/lib/couchbase/json_transcoder.rb +39 -0
- data/lib/couchbase/key_value_scan.rb +117 -0
- data/lib/couchbase/libcouchbase.rb +6 -0
- data/lib/couchbase/logger.rb +85 -0
- data/lib/couchbase/management/analytics_index_manager.rb +1127 -0
- data/lib/couchbase/management/bucket_manager.rb +443 -0
- data/lib/couchbase/management/collection_manager.rb +470 -0
- data/lib/couchbase/management/collection_query_index_manager.rb +222 -0
- data/lib/couchbase/management/query_index_manager.rb +617 -0
- data/lib/couchbase/management/scope_search_index_manager.rb +198 -0
- data/lib/couchbase/management/search_index_manager.rb +424 -0
- data/lib/couchbase/management/user_manager.rb +468 -0
- data/lib/couchbase/management/view_index_manager.rb +237 -0
- data/lib/couchbase/management.rb +29 -0
- data/lib/couchbase/mutation_state.rb +63 -0
- data/lib/couchbase/options.rb +2837 -0
- data/lib/couchbase/protostellar/binary_collection.rb +55 -0
- data/lib/couchbase/protostellar/bucket.rb +51 -0
- data/lib/couchbase/protostellar/client.rb +99 -0
- data/lib/couchbase/protostellar/cluster.rb +163 -0
- data/lib/couchbase/protostellar/collection.rb +152 -0
- data/lib/couchbase/protostellar/connect_options.rb +63 -0
- data/lib/couchbase/protostellar/error_handling.rb +203 -0
- data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_pb.rb +61 -0
- data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_services_pb.rb +35 -0
- data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_pb.rb +57 -0
- data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_services_pb.rb +36 -0
- data/lib/couchbase/protostellar/generated/admin/query/v1/query_pb.rb +61 -0
- data/lib/couchbase/protostellar/generated/admin/query/v1/query_services_pb.rb +37 -0
- data/lib/couchbase/protostellar/generated/admin/search/v1/search_pb.rb +72 -0
- data/lib/couchbase/protostellar/generated/admin/search/v1/search_services_pb.rb +44 -0
- data/lib/couchbase/protostellar/generated/analytics/v1/analytics_pb.rb +52 -0
- data/lib/couchbase/protostellar/generated/analytics/v1/analytics_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_pb.rb +70 -0
- data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_services_pb.rb +36 -0
- data/lib/couchbase/protostellar/generated/kv/v1/kv_pb.rb +97 -0
- data/lib/couchbase/protostellar/generated/kv/v1/kv_services_pb.rb +46 -0
- data/lib/couchbase/protostellar/generated/query/v1/query_pb.rb +57 -0
- data/lib/couchbase/protostellar/generated/query/v1/query_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/routing/v1/routing_pb.rb +52 -0
- data/lib/couchbase/protostellar/generated/routing/v1/routing_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/search/v1/search_pb.rb +99 -0
- data/lib/couchbase/protostellar/generated/search/v1/search_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated/transactions/v1/transactions_pb.rb +57 -0
- data/lib/couchbase/protostellar/generated/transactions/v1/transactions_services_pb.rb +36 -0
- data/lib/couchbase/protostellar/generated/view/v1/view_pb.rb +51 -0
- data/lib/couchbase/protostellar/generated/view/v1/view_services_pb.rb +30 -0
- data/lib/couchbase/protostellar/generated.rb +9 -0
- data/lib/couchbase/protostellar/management/bucket_manager.rb +67 -0
- data/lib/couchbase/protostellar/management/collection_manager.rb +94 -0
- data/lib/couchbase/protostellar/management/collection_query_index_manager.rb +124 -0
- data/lib/couchbase/protostellar/management/query_index_manager.rb +112 -0
- data/lib/couchbase/protostellar/management.rb +24 -0
- data/lib/couchbase/protostellar/request.rb +78 -0
- data/lib/couchbase/protostellar/request_behaviour.rb +42 -0
- data/lib/couchbase/protostellar/request_generator/admin/bucket.rb +124 -0
- data/lib/couchbase/protostellar/request_generator/admin/collection.rb +94 -0
- data/lib/couchbase/protostellar/request_generator/admin/query.rb +130 -0
- data/lib/couchbase/protostellar/request_generator/admin.rb +24 -0
- data/lib/couchbase/protostellar/request_generator/kv.rb +474 -0
- data/lib/couchbase/protostellar/request_generator/query.rb +133 -0
- data/lib/couchbase/protostellar/request_generator/search.rb +387 -0
- data/lib/couchbase/protostellar/request_generator.rb +26 -0
- data/lib/couchbase/protostellar/response_converter/admin/bucket.rb +55 -0
- data/lib/couchbase/protostellar/response_converter/admin/collection.rb +42 -0
- data/lib/couchbase/protostellar/response_converter/admin/query.rb +59 -0
- data/lib/couchbase/protostellar/response_converter/admin.rb +24 -0
- data/lib/couchbase/protostellar/response_converter/kv.rb +151 -0
- data/lib/couchbase/protostellar/response_converter/query.rb +84 -0
- data/lib/couchbase/protostellar/response_converter/search.rb +136 -0
- data/lib/couchbase/protostellar/response_converter.rb +26 -0
- data/lib/couchbase/protostellar/retry/action.rb +38 -0
- data/lib/couchbase/protostellar/retry/orchestrator.rb +60 -0
- data/lib/couchbase/protostellar/retry/reason.rb +67 -0
- data/lib/couchbase/protostellar/retry/strategies/best_effort.rb +49 -0
- data/lib/couchbase/protostellar/retry/strategies.rb +26 -0
- data/lib/couchbase/protostellar/retry.rb +28 -0
- data/lib/couchbase/protostellar/scope.rb +57 -0
- data/lib/couchbase/protostellar/timeout_defaults.rb +30 -0
- data/lib/couchbase/protostellar/timeouts.rb +83 -0
- data/lib/couchbase/protostellar.rb +29 -0
- data/lib/couchbase/query_options.rb +120 -0
- data/lib/couchbase/railtie.rb +45 -0
- data/lib/couchbase/raw_binary_transcoder.rb +37 -0
- data/lib/couchbase/raw_json_transcoder.rb +38 -0
- data/lib/couchbase/raw_string_transcoder.rb +40 -0
- data/lib/couchbase/scope.rb +256 -0
- data/lib/couchbase/search_options.rb +1622 -0
- data/lib/couchbase/subdoc.rb +290 -0
- data/lib/couchbase/transcoder_flags.rb +62 -0
- data/lib/couchbase/utils/generic_logger_adapter.rb +38 -0
- data/lib/couchbase/utils/stdlib_logger_adapter.rb +65 -0
- data/lib/couchbase/utils/time.rb +69 -0
- data/lib/couchbase/utils.rb +21 -0
- data/lib/couchbase/version.rb +23 -0
- data/lib/couchbase/view_options.rb +65 -0
- data/lib/couchbase.rb +28 -0
- data/lib/rails/generators/couchbase/config/config_generator.rb +27 -0
- metadata +190 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: couchbase/admin/search/v1/search.proto for package 'Couchbase.Protostellar.Generated.Admin.Search.V1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'couchbase/protostellar/generated/admin/search/v1/search_pb'
|
6
|
+
|
7
|
+
module Couchbase
|
8
|
+
module Protostellar
|
9
|
+
module Generated
|
10
|
+
module Admin
|
11
|
+
module Search
|
12
|
+
module V1
|
13
|
+
module SearchAdminService
|
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.search.v1.SearchAdminService'
|
21
|
+
|
22
|
+
rpc :GetIndex, ::Couchbase::Protostellar::Generated::Admin::Search::V1::GetIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::GetIndexResponse
|
23
|
+
rpc :ListIndexes, ::Couchbase::Protostellar::Generated::Admin::Search::V1::ListIndexesRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::ListIndexesResponse
|
24
|
+
rpc :CreateIndex, ::Couchbase::Protostellar::Generated::Admin::Search::V1::CreateIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::CreateIndexResponse
|
25
|
+
rpc :UpdateIndex, ::Couchbase::Protostellar::Generated::Admin::Search::V1::UpdateIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::UpdateIndexResponse
|
26
|
+
rpc :DeleteIndex, ::Couchbase::Protostellar::Generated::Admin::Search::V1::DeleteIndexRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::DeleteIndexResponse
|
27
|
+
rpc :AnalyzeDocument, ::Couchbase::Protostellar::Generated::Admin::Search::V1::AnalyzeDocumentRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::AnalyzeDocumentResponse
|
28
|
+
rpc :GetIndexedDocumentsCount, ::Couchbase::Protostellar::Generated::Admin::Search::V1::GetIndexedDocumentsCountRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::GetIndexedDocumentsCountResponse
|
29
|
+
rpc :PauseIndexIngest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::PauseIndexIngestRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::PauseIndexIngestResponse
|
30
|
+
rpc :ResumeIndexIngest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::ResumeIndexIngestRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::ResumeIndexIngestResponse
|
31
|
+
rpc :AllowIndexQuerying, ::Couchbase::Protostellar::Generated::Admin::Search::V1::AllowIndexQueryingRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::AllowIndexQueryingResponse
|
32
|
+
rpc :DisallowIndexQuerying, ::Couchbase::Protostellar::Generated::Admin::Search::V1::DisallowIndexQueryingRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::DisallowIndexQueryingResponse
|
33
|
+
rpc :FreezeIndexPlan, ::Couchbase::Protostellar::Generated::Admin::Search::V1::FreezeIndexPlanRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::FreezeIndexPlanResponse
|
34
|
+
rpc :UnfreezeIndexPlan, ::Couchbase::Protostellar::Generated::Admin::Search::V1::UnfreezeIndexPlanRequest, ::Couchbase::Protostellar::Generated::Admin::Search::V1::UnfreezeIndexPlanResponse
|
35
|
+
end
|
36
|
+
|
37
|
+
Stub = Service.rpc_stub_class
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: couchbase/analytics/v1/analytics.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n&couchbase/analytics/v1/analytics.proto\x12\x16\x63ouchbase.analytics.v1\x1a\x1egoogle/protobuf/duration.proto\"\xfc\x04\n\x15\x41nalyticsQueryRequest\x12\x18\n\x0b\x62ucket_name\x18\x08 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\t \x01(\tH\x01\x88\x01\x01\x12\x11\n\tstatement\x18\x01 \x01(\t\x12\x16\n\tread_only\x18\x02 \x01(\x08H\x02\x88\x01\x01\x12\x1e\n\x11\x63lient_context_id\x18\x03 \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08priority\x18\x04 \x01(\x08H\x04\x88\x01\x01\x12\\\n\x10scan_consistency\x18\x05 \x01(\x0e\x32=.couchbase.analytics.v1.AnalyticsQueryRequest.ScanConsistencyH\x05\x88\x01\x01\x12\x1d\n\x15positional_parameters\x18\x06 \x03(\x0c\x12\\\n\x10named_parameters\x18\x07 \x03(\x0b\x32\x42.couchbase.analytics.v1.AnalyticsQueryRequest.NamedParametersEntry\x1a\x36\n\x14NamedParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"V\n\x0fScanConsistency\x12 \n\x1cSCAN_CONSISTENCY_NOT_BOUNDED\x10\x00\x12!\n\x1dSCAN_CONSISTENCY_REQUEST_PLUS\x10\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_nameB\x0c\n\n_read_onlyB\x14\n\x12_client_context_idB\x0b\n\t_priorityB\x13\n\x11_scan_consistency\"\xb8\x05\n\x16\x41nalyticsQueryResponse\x12\x0c\n\x04rows\x18\x01 \x03(\x0c\x12O\n\tmeta_data\x18\x02 \x01(\x0b\x32\x37.couchbase.analytics.v1.AnalyticsQueryResponse.MetaDataH\x00\x88\x01\x01\x1a\x8b\x02\n\x07Metrics\x12/\n\x0c\x65lapsed_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\x0e\x65xecution_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x14\n\x0cresult_count\x18\x03 \x01(\x04\x12\x13\n\x0bresult_size\x18\x04 \x01(\x04\x12\x16\n\x0emutation_count\x18\x05 \x01(\x04\x12\x12\n\nsort_count\x18\x06 \x01(\x04\x12\x13\n\x0b\x65rror_count\x18\x07 \x01(\x04\x12\x15\n\rwarning_count\x18\x08 \x01(\x04\x12\x19\n\x11processed_objects\x18\t \x01(\x04\x1a\xa2\x02\n\x08MetaData\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x19\n\x11\x63lient_context_id\x18\x02 \x01(\t\x12G\n\x07metrics\x18\x03 \x01(\x0b\x32\x36.couchbase.analytics.v1.AnalyticsQueryResponse.Metrics\x12\x11\n\tsignature\x18\x04 \x01(\x0c\x12Q\n\x08warnings\x18\x05 \x03(\x0b\x32?.couchbase.analytics.v1.AnalyticsQueryResponse.MetaData.Warning\x12\x0e\n\x06status\x18\x06 \x01(\t\x1a(\n\x07Warning\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\tB\x0c\n\n_meta_data2\x87\x01\n\x10\x41nalyticsService\x12s\n\x0e\x41nalyticsQuery\x12-.couchbase.analytics.v1.AnalyticsQueryRequest\x1a..couchbase.analytics.v1.AnalyticsQueryResponse\"\x00\x30\x01\x42\x84\x02\n.com.couchbase.client.protostellar.analytics.v1P\x01ZFgithub.com/couchbase/goprotostellar/genproto/analytics_v1;analytics_v1\xaa\x02#Couchbase.Protostellar.Analytics.V1\xca\x02-Couchbase\\Protostellar\\Generated\\Analytics\\V1\xea\x02\x31\x43ouchbase::Protostellar::Generated::Analytics::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
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Couchbase
|
38
|
+
module Protostellar
|
39
|
+
module Generated
|
40
|
+
module Analytics
|
41
|
+
module V1
|
42
|
+
AnalyticsQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.analytics.v1.AnalyticsQueryRequest").msgclass
|
43
|
+
AnalyticsQueryRequest::ScanConsistency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.analytics.v1.AnalyticsQueryRequest.ScanConsistency").enummodule
|
44
|
+
AnalyticsQueryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.analytics.v1.AnalyticsQueryResponse").msgclass
|
45
|
+
AnalyticsQueryResponse::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.analytics.v1.AnalyticsQueryResponse.Metrics").msgclass
|
46
|
+
AnalyticsQueryResponse::MetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.analytics.v1.AnalyticsQueryResponse.MetaData").msgclass
|
47
|
+
AnalyticsQueryResponse::MetaData::Warning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.analytics.v1.AnalyticsQueryResponse.MetaData.Warning").msgclass
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: couchbase/analytics/v1/analytics.proto for package 'Couchbase.Protostellar.Generated.Analytics.V1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'couchbase/protostellar/generated/analytics/v1/analytics_pb'
|
6
|
+
|
7
|
+
module Couchbase
|
8
|
+
module Protostellar
|
9
|
+
module Generated
|
10
|
+
module Analytics
|
11
|
+
module V1
|
12
|
+
module AnalyticsService
|
13
|
+
class Service
|
14
|
+
|
15
|
+
include ::GRPC::GenericService
|
16
|
+
|
17
|
+
self.marshal_class_method = :encode
|
18
|
+
self.unmarshal_class_method = :decode
|
19
|
+
self.service_name = 'couchbase.analytics.v1.AnalyticsService'
|
20
|
+
|
21
|
+
rpc :AnalyticsQuery, ::Couchbase::Protostellar::Generated::Analytics::V1::AnalyticsQueryRequest, stream(::Couchbase::Protostellar::Generated::Analytics::V1::AnalyticsQueryResponse)
|
22
|
+
end
|
23
|
+
|
24
|
+
Stub = Service.rpc_stub_class
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: couchbase/internal/hooks/v1/hooks.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/any_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\'couchbase/internal/hooks/v1/hooks.proto\x12\x1b\x63ouchbase.internal.hooks.v1\x1a\x19google/protobuf/any.proto\"\'\n\x19\x43reateHooksContextRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x1c\n\x1a\x43reateHooksContextResponse\"(\n\x1a\x44\x65stroyHooksContextRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x1d\n\x1b\x44\x65stroyHooksContextResponse\"[\n\x08ValueRef\x12\x17\n\rrequest_field\x18\x01 \x01(\tH\x00\x12\x17\n\rcounter_value\x18\x02 \x01(\tH\x00\x12\x14\n\njson_value\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05value\"\xb7\x01\n\rHookCondition\x12\x33\n\x04left\x18\x01 \x01(\x0b\x32%.couchbase.internal.hooks.v1.ValueRef\x12;\n\x02op\x18\x02 \x01(\x0e\x32/.couchbase.internal.hooks.v1.ComparisonOperator\x12\x34\n\x05right\x18\x03 \x01(\x0b\x32%.couchbase.internal.hooks.v1.ValueRef\"\xf2\x07\n\nHookAction\x12\x38\n\x02if\x18\x01 \x01(\x0b\x32*.couchbase.internal.hooks.v1.HookAction.IfH\x00\x12\x42\n\x07\x63ounter\x18\x02 \x01(\x0b\x32/.couchbase.internal.hooks.v1.HookAction.CounterH\x00\x12P\n\x0fwait_on_barrier\x18\x03 \x01(\x0b\x32\x35.couchbase.internal.hooks.v1.HookAction.WaitOnBarrierH\x00\x12O\n\x0esignal_barrier\x18\x04 \x01(\x0b\x32\x35.couchbase.internal.hooks.v1.HookAction.SignalBarrierH\x00\x12Q\n\x0freturn_response\x18\x05 \x01(\x0b\x32\x36.couchbase.internal.hooks.v1.HookAction.ReturnResponseH\x00\x12K\n\x0creturn_error\x18\x06 \x01(\x0b\x32\x33.couchbase.internal.hooks.v1.HookAction.ReturnErrorH\x00\x12\x42\n\x07\x65xecute\x18\x07 \x01(\x0b\x32/.couchbase.internal.hooks.v1.HookAction.ExecuteH\x00\x1a\xb1\x01\n\x02If\x12\x38\n\x04\x63ond\x18\x01 \x03(\x0b\x32*.couchbase.internal.hooks.v1.HookCondition\x12\x36\n\x05match\x18\x02 \x03(\x0b\x32\'.couchbase.internal.hooks.v1.HookAction\x12\x39\n\x08no_match\x18\x03 \x03(\x0b\x32\'.couchbase.internal.hooks.v1.HookAction\x1a,\n\x07\x43ounter\x12\x12\n\ncounter_id\x18\x01 \x01(\t\x12\r\n\x05\x64\x65lta\x18\x02 \x01(\x03\x1a#\n\rWaitOnBarrier\x12\x12\n\nbarrier_id\x18\x01 \x01(\t\x1a\x37\n\rSignalBarrier\x12\x12\n\nbarrier_id\x18\x01 \x01(\t\x12\x12\n\nsignal_all\x18\x02 \x01(\x08\x1a\x35\n\x0eReturnResponse\x12#\n\x05value\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\x1aS\n\x0bReturnError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.Any\x1a\t\n\x07\x45xecuteB\x08\n\x06\x61\x63tion\"z\n\x04Hook\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x15\n\rtarget_method\x18\x03 \x01(\t\x12\x38\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\'.couchbase.internal.hooks.v1.HookAction\"]\n\x0f\x41\x64\x64HooksRequest\x12\x18\n\x10hooks_context_id\x18\x01 \x01(\t\x12\x30\n\x05hooks\x18\x02 \x03(\x0b\x32!.couchbase.internal.hooks.v1.Hook\"\x12\n\x10\x41\x64\x64HooksResponse\"C\n\x13WatchBarrierRequest\x12\x18\n\x10hooks_context_id\x18\x01 \x01(\t\x12\x12\n\nbarrier_id\x18\x02 \x01(\t\"\'\n\x14WatchBarrierResponse\x12\x0f\n\x07wait_id\x18\x02 \x01(\t\"f\n\x14SignalBarrierRequest\x12\x18\n\x10hooks_context_id\x18\x01 \x01(\t\x12\x12\n\nbarrier_id\x18\x02 \x01(\t\x12\x14\n\x07wait_id\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\n\n\x08_wait_id\"\x17\n\x15SignalBarrierResponse*\xfa\x01\n\x12\x43omparisonOperator\x12\x1d\n\x19\x43OMPARISON_OPERATOR_EQUAL\x10\x00\x12!\n\x1d\x43OMPARISON_OPERATOR_NOT_EQUAL\x10\x01\x12$\n COMPARISON_OPERATOR_GREATER_THAN\x10\x02\x12-\n)COMPARISON_OPERATOR_GREATER_THAN_OR_EQUAL\x10\x03\x12!\n\x1d\x43OMPARISON_OPERATOR_LESS_THAN\x10\x04\x12*\n&COMPARISON_OPERATOR_LESS_THAN_OR_EQUAL\x10\x05\x32\x83\x05\n\x0cHooksService\x12\x87\x01\n\x12\x43reateHooksContext\x12\x36.couchbase.internal.hooks.v1.CreateHooksContextRequest\x1a\x37.couchbase.internal.hooks.v1.CreateHooksContextResponse\"\x00\x12\x8a\x01\n\x13\x44\x65stroyHooksContext\x12\x37.couchbase.internal.hooks.v1.DestroyHooksContextRequest\x1a\x38.couchbase.internal.hooks.v1.DestroyHooksContextResponse\"\x00\x12i\n\x08\x41\x64\x64Hooks\x12,.couchbase.internal.hooks.v1.AddHooksRequest\x1a-.couchbase.internal.hooks.v1.AddHooksResponse\"\x00\x12w\n\x0cWatchBarrier\x12\x30.couchbase.internal.hooks.v1.WatchBarrierRequest\x1a\x31.couchbase.internal.hooks.v1.WatchBarrierResponse\"\x00\x30\x01\x12x\n\rSignalBarrier\x12\x31.couchbase.internal.hooks.v1.SignalBarrierRequest\x1a\x32.couchbase.internal.hooks.v1.SignalBarrierResponse\"\x00\x42\xa3\x02\n3com.couchbase.client.protostellar.internal.hooks.v1P\x01ZPgithub.com/couchbase/goprotostellar/genproto/internal_hooks_v1;internal_hooks_v1\xaa\x02(Couchbase.Protostellar.Internal.Hooks.V1\xca\x02\x32\x43ouchbase\\Protostellar\\Generated\\Internal\\Hooks\\V1\xea\x02\x37\x43ouchbase::Protostellar::Generated::Internal::Hooks::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
|
+
["google.protobuf.Any", "google/protobuf/any.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Couchbase
|
38
|
+
module Protostellar
|
39
|
+
module Generated
|
40
|
+
module Internal
|
41
|
+
module Hooks
|
42
|
+
module V1
|
43
|
+
CreateHooksContextRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.CreateHooksContextRequest").msgclass
|
44
|
+
CreateHooksContextResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.CreateHooksContextResponse").msgclass
|
45
|
+
DestroyHooksContextRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.DestroyHooksContextRequest").msgclass
|
46
|
+
DestroyHooksContextResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.DestroyHooksContextResponse").msgclass
|
47
|
+
ValueRef = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.ValueRef").msgclass
|
48
|
+
HookCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookCondition").msgclass
|
49
|
+
HookAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction").msgclass
|
50
|
+
HookAction::If = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.If").msgclass
|
51
|
+
HookAction::Counter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.Counter").msgclass
|
52
|
+
HookAction::WaitOnBarrier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.WaitOnBarrier").msgclass
|
53
|
+
HookAction::SignalBarrier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.SignalBarrier").msgclass
|
54
|
+
HookAction::ReturnResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.ReturnResponse").msgclass
|
55
|
+
HookAction::ReturnError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.ReturnError").msgclass
|
56
|
+
HookAction::Execute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.HookAction.Execute").msgclass
|
57
|
+
Hook = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.Hook").msgclass
|
58
|
+
AddHooksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.AddHooksRequest").msgclass
|
59
|
+
AddHooksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.AddHooksResponse").msgclass
|
60
|
+
WatchBarrierRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.WatchBarrierRequest").msgclass
|
61
|
+
WatchBarrierResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.WatchBarrierResponse").msgclass
|
62
|
+
SignalBarrierRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.SignalBarrierRequest").msgclass
|
63
|
+
SignalBarrierResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.SignalBarrierResponse").msgclass
|
64
|
+
ComparisonOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.internal.hooks.v1.ComparisonOperator").enummodule
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: couchbase/internal/hooks/v1/hooks.proto for package 'Couchbase.Protostellar.Generated.Internal.Hooks.V1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'couchbase/protostellar/generated/internal/hooks/v1/hooks_pb'
|
6
|
+
|
7
|
+
module Couchbase
|
8
|
+
module Protostellar
|
9
|
+
module Generated
|
10
|
+
module Internal
|
11
|
+
module Hooks
|
12
|
+
module V1
|
13
|
+
module HooksService
|
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.internal.hooks.v1.HooksService'
|
21
|
+
|
22
|
+
rpc :CreateHooksContext, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::CreateHooksContextRequest, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::CreateHooksContextResponse
|
23
|
+
rpc :DestroyHooksContext, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::DestroyHooksContextRequest, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::DestroyHooksContextResponse
|
24
|
+
rpc :AddHooks, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::AddHooksRequest, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::AddHooksResponse
|
25
|
+
rpc :WatchBarrier, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::WatchBarrierRequest, stream(::Couchbase::Protostellar::Generated::Internal::Hooks::V1::WatchBarrierResponse)
|
26
|
+
rpc :SignalBarrier, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::SignalBarrierRequest, ::Couchbase::Protostellar::Generated::Internal::Hooks::V1::SignalBarrierResponse
|
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,97 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: couchbase/kv/v1/kv.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/rpc/status_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x18\x63ouchbase/kv/v1/kv.proto\x12\x0f\x63ouchbase.kv.v1\x1a\x17google/rpc/status.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"E\n\x14LegacyDurabilitySpec\x12\x16\n\x0enum_replicated\x18\x01 \x01(\r\x12\x15\n\rnum_persisted\x18\x02 \x01(\r\"^\n\rMutationToken\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nvbucket_id\x18\x02 \x01(\r\x12\x14\n\x0cvbucket_uuid\x18\x03 \x01(\x04\x12\x0e\n\x06seq_no\x18\x04 \x01(\x04\"\xbb\x01\n\nGetRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x0f\n\x07project\x18\x05 \x03(\t\x12=\n\x0b\x63ompression\x18\x06 \x01(\x0e\x32#.couchbase.kv.v1.CompressionEnabledH\x00\x88\x01\x01\x42\x0e\n\x0c_compression\"\xb2\x01\n\x0bGetResponse\x12\x1e\n\x14\x63ontent_uncompressed\x18\x01 \x01(\x0cH\x00\x12\x1c\n\x12\x63ontent_compressed\x18\x07 \x01(\x0cH\x00\x12\x15\n\rcontent_flags\x18\x06 \x01(\r\x12\x0b\n\x03\x63\x61s\x18\x03 \x01(\x04\x12*\n\x06\x65xpiry\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x63ontentJ\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06\"\x86\x02\n\x12GetAndTouchRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x31\n\x0b\x65xpiry_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x15\n\x0b\x65xpiry_secs\x18\x06 \x01(\rH\x00\x12=\n\x0b\x63ompression\x18\x07 \x01(\x0e\x32#.couchbase.kv.v1.CompressionEnabledH\x01\x88\x01\x01\x42\x08\n\x06\x65xpiryB\x0e\n\x0c_compression\"\xba\x01\n\x13GetAndTouchResponse\x12\x1e\n\x14\x63ontent_uncompressed\x18\x01 \x01(\x0cH\x00\x12\x1c\n\x12\x63ontent_compressed\x18\x07 \x01(\x0cH\x00\x12\x15\n\rcontent_flags\x18\x06 \x01(\r\x12\x0b\n\x03\x63\x61s\x18\x03 \x01(\x04\x12*\n\x06\x65xpiry\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x63ontentJ\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06\"\xc4\x01\n\x11GetAndLockRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x11\n\tlock_time\x18\x05 \x01(\r\x12=\n\x0b\x63ompression\x18\x06 \x01(\x0e\x32#.couchbase.kv.v1.CompressionEnabledH\x00\x88\x01\x01\x42\x0e\n\x0c_compression\"\xb9\x01\n\x12GetAndLockResponse\x12\x1e\n\x14\x63ontent_uncompressed\x18\x01 \x01(\x0cH\x00\x12\x1c\n\x12\x63ontent_compressed\x18\x07 \x01(\x0cH\x00\x12\x15\n\rcontent_flags\x18\x06 \x01(\r\x12\x0b\n\x03\x63\x61s\x18\x03 \x01(\x04\x12*\n\x06\x65xpiry\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\t\n\x07\x63ontentJ\x04\x08\x02\x10\x03J\x04\x08\x05\x10\x06\"k\n\rUnlockRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x0b\n\x03\x63\x61s\x18\x05 \x01(\x04\"\x10\n\x0eUnlockResponse\"\xb1\x01\n\x0cTouchRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x31\n\x0b\x65xpiry_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x15\n\x0b\x65xpiry_secs\x18\x06 \x01(\rH\x00\x42\x08\n\x06\x65xpiry\"T\n\rTouchResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"^\n\rExistsRequest\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\x0b\n\x03key\x18\x04 \x01(\t\"-\n\x0e\x45xistsResponse\x12\x0e\n\x06result\x18\x01 \x01(\x08\x12\x0b\n\x03\x63\x61s\x18\x02 \x01(\x04\"\xee\x02\n\rInsertRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x1e\n\x14\x63ontent_uncompressed\x18\x05 \x01(\x0cH\x00\x12\x1c\n\x12\x63ontent_compressed\x18\x0c \x01(\x0cH\x00\x12\x15\n\rcontent_flags\x18\x0b \x01(\r\x12\x31\n\x0b\x65xpiry_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x15\n\x0b\x65xpiry_secs\x18\n \x01(\rH\x01\x12?\n\x10\x64urability_level\x18\t \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x02\x88\x01\x01\x42\t\n\x07\x63ontentB\x08\n\x06\x65xpiryB\x13\n\x11_durability_levelJ\x04\x08\x06\x10\x07\"U\n\x0eInsertResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xb8\x03\n\rUpsertRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x1e\n\x14\x63ontent_uncompressed\x18\x05 \x01(\x0cH\x00\x12\x1c\n\x12\x63ontent_compressed\x18\r \x01(\x0cH\x00\x12\x15\n\rcontent_flags\x18\x0b \x01(\r\x12\x31\n\x0b\x65xpiry_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x15\n\x0b\x65xpiry_secs\x18\n \x01(\rH\x01\x12(\n\x1bpreserve_expiry_on_existing\x18\x0c \x01(\x08H\x02\x88\x01\x01\x12?\n\x10\x64urability_level\x18\t \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x03\x88\x01\x01\x42\t\n\x07\x63ontentB\x08\n\x06\x65xpiryB\x1e\n\x1c_preserve_expiry_on_existingB\x13\n\x11_durability_levelJ\x04\x08\x06\x10\x07\"U\n\x0eUpsertResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\x89\x03\n\x0eReplaceRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x1e\n\x14\x63ontent_uncompressed\x18\x05 \x01(\x0cH\x00\x12\x1c\n\x12\x63ontent_compressed\x18\r \x01(\x0cH\x00\x12\x15\n\rcontent_flags\x18\x0c \x01(\r\x12\x10\n\x03\x63\x61s\x18\x07 \x01(\x04H\x02\x88\x01\x01\x12\x31\n\x0b\x65xpiry_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x12\x15\n\x0b\x65xpiry_secs\x18\x0b \x01(\rH\x01\x12?\n\x10\x64urability_level\x18\n \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x03\x88\x01\x01\x42\t\n\x07\x63ontentB\x08\n\x06\x65xpiryB\x06\n\x04_casB\x13\n\x11_durability_levelJ\x04\x08\x06\x10\x07\"V\n\x0fReplaceResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xce\x01\n\rRemoveRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x10\n\x03\x63\x61s\x18\x05 \x01(\x04H\x00\x88\x01\x01\x12?\n\x10\x64urability_level\x18\x07 \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x01\x88\x01\x01\x42\x06\n\x04_casB\x13\n\x11_durability_level\"U\n\x0eRemoveResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xbc\x02\n\x10IncrementRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\r\n\x05\x64\x65lta\x18\x05 \x01(\x04\x12\x31\n\x0b\x65xpiry_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x15\n\x0b\x65xpiry_secs\x18\n \x01(\rH\x00\x12\x14\n\x07initial\x18\x07 \x01(\x03H\x01\x88\x01\x01\x12?\n\x10\x64urability_level\x18\t \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x02\x88\x01\x01\x42\x08\n\x06\x65xpiryB\n\n\x08_initialB\x13\n\x11_durability_level\"i\n\x11IncrementResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x03\x12\x36\n\x0emutation_token\x18\x03 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xbc\x02\n\x10\x44\x65\x63rementRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\r\n\x05\x64\x65lta\x18\x05 \x01(\x04\x12\x31\n\x0b\x65xpiry_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x15\n\x0b\x65xpiry_secs\x18\n \x01(\rH\x00\x12\x14\n\x07initial\x18\x07 \x01(\x03H\x01\x88\x01\x01\x12?\n\x10\x64urability_level\x18\t \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x02\x88\x01\x01\x42\x08\n\x06\x65xpiryB\n\n\x08_initialB\x13\n\x11_durability_level\"i\n\x11\x44\x65\x63rementResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x03\x12\x36\n\x0emutation_token\x18\x03 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xdf\x01\n\rAppendRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x05 \x01(\x0c\x12\x10\n\x03\x63\x61s\x18\x06 \x01(\x04H\x00\x88\x01\x01\x12?\n\x10\x64urability_level\x18\x08 \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x01\x88\x01\x01\x42\x06\n\x04_casB\x13\n\x11_durability_level\"U\n\x0e\x41ppendResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xe0\x01\n\x0ePrependRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x05 \x01(\x0c\x12\x10\n\x03\x63\x61s\x18\x06 \x01(\x04H\x00\x88\x01\x01\x12?\n\x10\x64urability_level\x18\x08 \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x01\x88\x01\x01\x42\x06\n\x04_casB\x13\n\x11_durability_level\"V\n\x0fPrependResponse\x12\x0b\n\x03\x63\x61s\x18\x01 \x01(\x04\x12\x36\n\x0emutation_token\x18\x02 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\"\xad\x04\n\x0fLookupInRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x34\n\x05specs\x18\x05 \x03(\x0b\x32%.couchbase.kv.v1.LookupInRequest.Spec\x12:\n\x05\x66lags\x18\x06 \x01(\x0b\x32&.couchbase.kv.v1.LookupInRequest.FlagsH\x00\x88\x01\x01\x1a\x95\x02\n\x04Spec\x12\x42\n\toperation\x18\x01 \x01(\x0e\x32/.couchbase.kv.v1.LookupInRequest.Spec.Operation\x12\x0c\n\x04path\x18\x02 \x01(\t\x12?\n\x05\x66lags\x18\x03 \x01(\x0b\x32+.couchbase.kv.v1.LookupInRequest.Spec.FlagsH\x00\x88\x01\x01\x1a%\n\x05\x46lags\x12\x12\n\x05xattr\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x08\n\x06_xattr\"I\n\tOperation\x12\x11\n\rOPERATION_GET\x10\x00\x12\x14\n\x10OPERATION_EXISTS\x10\x01\x12\x13\n\x0fOPERATION_COUNT\x10\x02\x42\x08\n\x06_flags\x1a\x37\n\x05\x46lags\x12\x1b\n\x0e\x61\x63\x63\x65ss_deleted\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x11\n\x0f_access_deletedB\x08\n\x06_flags\"\x93\x01\n\x10LookupInResponse\x12\x35\n\x05specs\x18\x01 \x03(\x0b\x32&.couchbase.kv.v1.LookupInResponse.Spec\x12\x0b\n\x03\x63\x61s\x18\x02 \x01(\x04\x1a;\n\x04Spec\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\"\x97\t\n\x0fMutateInRequest\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\x0b\n\x03key\x18\x04 \x01(\t\x12\x34\n\x05specs\x18\x05 \x03(\x0b\x32%.couchbase.kv.v1.MutateInRequest.Spec\x12K\n\x0estore_semantic\x18\x06 \x01(\x0e\x32..couchbase.kv.v1.MutateInRequest.StoreSemanticH\x01\x88\x01\x01\x12?\n\x10\x64urability_level\x18\x08 \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x02\x88\x01\x01\x12\x10\n\x03\x63\x61s\x18\t \x01(\x04H\x03\x88\x01\x01\x12:\n\x05\x66lags\x18\n \x01(\x0b\x32&.couchbase.kv.v1.MutateInRequest.FlagsH\x04\x88\x01\x01\x12\x31\n\x0b\x65xpiry_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x15\n\x0b\x65xpiry_secs\x18\x0c \x01(\rH\x00\x1a\xf8\x03\n\x04Spec\x12\x42\n\toperation\x18\x01 \x01(\x0e\x32/.couchbase.kv.v1.MutateInRequest.Spec.Operation\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12?\n\x05\x66lags\x18\x04 \x01(\x0b\x32+.couchbase.kv.v1.MutateInRequest.Spec.FlagsH\x00\x88\x01\x01\x1aO\n\x05\x46lags\x12\x18\n\x0b\x63reate_path\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x12\n\x05xattr\x18\x02 \x01(\x08H\x01\x88\x01\x01\x42\x0e\n\x0c_create_pathB\x08\n\x06_xattr\"\xf0\x01\n\tOperation\x12\x14\n\x10OPERATION_INSERT\x10\x00\x12\x14\n\x10OPERATION_UPSERT\x10\x01\x12\x15\n\x11OPERATION_REPLACE\x10\x02\x12\x14\n\x10OPERATION_REMOVE\x10\x03\x12\x1a\n\x16OPERATION_ARRAY_APPEND\x10\x04\x12\x1b\n\x17OPERATION_ARRAY_PREPEND\x10\x05\x12\x1a\n\x16OPERATION_ARRAY_INSERT\x10\x06\x12\x1e\n\x1aOPERATION_ARRAY_ADD_UNIQUE\x10\x07\x12\x15\n\x11OPERATION_COUNTER\x10\x08\x42\x08\n\x06_flags\x1a\x37\n\x05\x46lags\x12\x1b\n\x0e\x61\x63\x63\x65ss_deleted\x18\x01 \x01(\x08H\x00\x88\x01\x01\x42\x11\n\x0f_access_deleted\"a\n\rStoreSemantic\x12\x1a\n\x16STORE_SEMANTIC_REPLACE\x10\x00\x12\x19\n\x15STORE_SEMANTIC_UPSERT\x10\x01\x12\x19\n\x15STORE_SEMANTIC_INSERT\x10\x02\x42\x08\n\x06\x65xpiryB\x11\n\x0f_store_semanticB\x13\n\x11_durability_levelB\x06\n\x04_casB\x08\n\x06_flags\"\xb8\x01\n\x10MutateInResponse\x12\x35\n\x05specs\x18\x01 \x03(\x0b\x32&.couchbase.kv.v1.MutateInResponse.Spec\x12\x0b\n\x03\x63\x61s\x18\x02 \x01(\x04\x12\x36\n\x0emutation_token\x18\x03 \x01(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\x1a(\n\x04Spec\x12\x14\n\x07\x63ontent\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\n\n\x08_content\"f\n\x15GetAllReplicasRequest\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\x0b\n\x03key\x18\x04 \x01(\t\"a\n\x16GetAllReplicasResponse\x12\x12\n\nis_replica\x18\x01 \x01(\x08\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\x12\x15\n\rcontent_flags\x18\x03 \x01(\r\x12\x0b\n\x03\x63\x61s\x18\x04 \x01(\x04*\x8f\x01\n\x0f\x44urabilityLevel\x12\x1d\n\x19\x44URABILITY_LEVEL_MAJORITY\x10\x00\x12\x33\n/DURABILITY_LEVEL_MAJORITY_AND_PERSIST_TO_ACTIVE\x10\x01\x12(\n$DURABILITY_LEVEL_PERSIST_TO_MAJORITY\x10\x02*V\n\x12\x43ompressionEnabled\x12 \n\x1c\x43OMPRESSION_ENABLED_OPTIONAL\x10\x00\x12\x1e\n\x1a\x43OMPRESSION_ENABLED_ALWAYS\x10\x01\x32\xf5\n\n\tKvService\x12\x42\n\x03Get\x12\x1b.couchbase.kv.v1.GetRequest\x1a\x1c.couchbase.kv.v1.GetResponse\"\x00\x12Z\n\x0bGetAndTouch\x12#.couchbase.kv.v1.GetAndTouchRequest\x1a$.couchbase.kv.v1.GetAndTouchResponse\"\x00\x12W\n\nGetAndLock\x12\".couchbase.kv.v1.GetAndLockRequest\x1a#.couchbase.kv.v1.GetAndLockResponse\"\x00\x12K\n\x06Unlock\x12\x1e.couchbase.kv.v1.UnlockRequest\x1a\x1f.couchbase.kv.v1.UnlockResponse\"\x00\x12H\n\x05Touch\x12\x1d.couchbase.kv.v1.TouchRequest\x1a\x1e.couchbase.kv.v1.TouchResponse\"\x00\x12K\n\x06\x45xists\x12\x1e.couchbase.kv.v1.ExistsRequest\x1a\x1f.couchbase.kv.v1.ExistsResponse\"\x00\x12K\n\x06Insert\x12\x1e.couchbase.kv.v1.InsertRequest\x1a\x1f.couchbase.kv.v1.InsertResponse\"\x00\x12K\n\x06Upsert\x12\x1e.couchbase.kv.v1.UpsertRequest\x1a\x1f.couchbase.kv.v1.UpsertResponse\"\x00\x12N\n\x07Replace\x12\x1f.couchbase.kv.v1.ReplaceRequest\x1a .couchbase.kv.v1.ReplaceResponse\"\x00\x12K\n\x06Remove\x12\x1e.couchbase.kv.v1.RemoveRequest\x1a\x1f.couchbase.kv.v1.RemoveResponse\"\x00\x12T\n\tIncrement\x12!.couchbase.kv.v1.IncrementRequest\x1a\".couchbase.kv.v1.IncrementResponse\"\x00\x12T\n\tDecrement\x12!.couchbase.kv.v1.DecrementRequest\x1a\".couchbase.kv.v1.DecrementResponse\"\x00\x12K\n\x06\x41ppend\x12\x1e.couchbase.kv.v1.AppendRequest\x1a\x1f.couchbase.kv.v1.AppendResponse\"\x00\x12N\n\x07Prepend\x12\x1f.couchbase.kv.v1.PrependRequest\x1a .couchbase.kv.v1.PrependResponse\"\x00\x12Q\n\x08LookupIn\x12 .couchbase.kv.v1.LookupInRequest\x1a!.couchbase.kv.v1.LookupInResponse\"\x00\x12Q\n\x08MutateIn\x12 .couchbase.kv.v1.MutateInRequest\x1a!.couchbase.kv.v1.MutateInResponse\"\x00\x12\x65\n\x0eGetAllReplicas\x12&.couchbase.kv.v1.GetAllReplicasRequest\x1a\'.couchbase.kv.v1.GetAllReplicasResponse\"\x00\x30\x01\x42\xda\x01\n\'com.couchbase.client.protostellar.kv.v1P\x01Z8github.com/couchbase/goprotostellar/genproto/kv_v1;kv_v1\xaa\x02\x1c\x43ouchbase.Protostellar.KV.V1\xca\x02&Couchbase\\Protostellar\\Generated\\KV\\V1\xea\x02*Couchbase::Protostellar::Generated::KV::V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
27
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
37
|
+
end
|
38
|
+
|
39
|
+
module Couchbase
|
40
|
+
module Protostellar
|
41
|
+
module Generated
|
42
|
+
module KV
|
43
|
+
module V1
|
44
|
+
LegacyDurabilitySpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LegacyDurabilitySpec").msgclass
|
45
|
+
MutationToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutationToken").msgclass
|
46
|
+
GetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetRequest").msgclass
|
47
|
+
GetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetResponse").msgclass
|
48
|
+
GetAndTouchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetAndTouchRequest").msgclass
|
49
|
+
GetAndTouchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetAndTouchResponse").msgclass
|
50
|
+
GetAndLockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetAndLockRequest").msgclass
|
51
|
+
GetAndLockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetAndLockResponse").msgclass
|
52
|
+
UnlockRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.UnlockRequest").msgclass
|
53
|
+
UnlockResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.UnlockResponse").msgclass
|
54
|
+
TouchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.TouchRequest").msgclass
|
55
|
+
TouchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.TouchResponse").msgclass
|
56
|
+
ExistsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.ExistsRequest").msgclass
|
57
|
+
ExistsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.ExistsResponse").msgclass
|
58
|
+
InsertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.InsertRequest").msgclass
|
59
|
+
InsertResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.InsertResponse").msgclass
|
60
|
+
UpsertRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.UpsertRequest").msgclass
|
61
|
+
UpsertResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.UpsertResponse").msgclass
|
62
|
+
ReplaceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.ReplaceRequest").msgclass
|
63
|
+
ReplaceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.ReplaceResponse").msgclass
|
64
|
+
RemoveRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.RemoveRequest").msgclass
|
65
|
+
RemoveResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.RemoveResponse").msgclass
|
66
|
+
IncrementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.IncrementRequest").msgclass
|
67
|
+
IncrementResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.IncrementResponse").msgclass
|
68
|
+
DecrementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.DecrementRequest").msgclass
|
69
|
+
DecrementResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.DecrementResponse").msgclass
|
70
|
+
AppendRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.AppendRequest").msgclass
|
71
|
+
AppendResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.AppendResponse").msgclass
|
72
|
+
PrependRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.PrependRequest").msgclass
|
73
|
+
PrependResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.PrependResponse").msgclass
|
74
|
+
LookupInRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInRequest").msgclass
|
75
|
+
LookupInRequest::Spec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInRequest.Spec").msgclass
|
76
|
+
LookupInRequest::Spec::Flags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInRequest.Spec.Flags").msgclass
|
77
|
+
LookupInRequest::Spec::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInRequest.Spec.Operation").enummodule
|
78
|
+
LookupInRequest::Flags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInRequest.Flags").msgclass
|
79
|
+
LookupInResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInResponse").msgclass
|
80
|
+
LookupInResponse::Spec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.LookupInResponse.Spec").msgclass
|
81
|
+
MutateInRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInRequest").msgclass
|
82
|
+
MutateInRequest::Spec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInRequest.Spec").msgclass
|
83
|
+
MutateInRequest::Spec::Flags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInRequest.Spec.Flags").msgclass
|
84
|
+
MutateInRequest::Spec::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInRequest.Spec.Operation").enummodule
|
85
|
+
MutateInRequest::Flags = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInRequest.Flags").msgclass
|
86
|
+
MutateInRequest::StoreSemantic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInRequest.StoreSemantic").enummodule
|
87
|
+
MutateInResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInResponse").msgclass
|
88
|
+
MutateInResponse::Spec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.MutateInResponse.Spec").msgclass
|
89
|
+
GetAllReplicasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetAllReplicasRequest").msgclass
|
90
|
+
GetAllReplicasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.GetAllReplicasResponse").msgclass
|
91
|
+
DurabilityLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.DurabilityLevel").enummodule
|
92
|
+
CompressionEnabled = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.kv.v1.CompressionEnabled").enummodule
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: couchbase/kv/v1/kv.proto for package 'Couchbase.Protostellar.Generated.KV.V1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'couchbase/protostellar/generated/kv/v1/kv_pb'
|
6
|
+
|
7
|
+
module Couchbase
|
8
|
+
module Protostellar
|
9
|
+
module Generated
|
10
|
+
module KV
|
11
|
+
module V1
|
12
|
+
module KvService
|
13
|
+
class Service
|
14
|
+
|
15
|
+
include ::GRPC::GenericService
|
16
|
+
|
17
|
+
self.marshal_class_method = :encode
|
18
|
+
self.unmarshal_class_method = :decode
|
19
|
+
self.service_name = 'couchbase.kv.v1.KvService'
|
20
|
+
|
21
|
+
rpc :Get, ::Couchbase::Protostellar::Generated::KV::V1::GetRequest, ::Couchbase::Protostellar::Generated::KV::V1::GetResponse
|
22
|
+
rpc :GetAndTouch, ::Couchbase::Protostellar::Generated::KV::V1::GetAndTouchRequest, ::Couchbase::Protostellar::Generated::KV::V1::GetAndTouchResponse
|
23
|
+
rpc :GetAndLock, ::Couchbase::Protostellar::Generated::KV::V1::GetAndLockRequest, ::Couchbase::Protostellar::Generated::KV::V1::GetAndLockResponse
|
24
|
+
rpc :Unlock, ::Couchbase::Protostellar::Generated::KV::V1::UnlockRequest, ::Couchbase::Protostellar::Generated::KV::V1::UnlockResponse
|
25
|
+
rpc :Touch, ::Couchbase::Protostellar::Generated::KV::V1::TouchRequest, ::Couchbase::Protostellar::Generated::KV::V1::TouchResponse
|
26
|
+
rpc :Exists, ::Couchbase::Protostellar::Generated::KV::V1::ExistsRequest, ::Couchbase::Protostellar::Generated::KV::V1::ExistsResponse
|
27
|
+
rpc :Insert, ::Couchbase::Protostellar::Generated::KV::V1::InsertRequest, ::Couchbase::Protostellar::Generated::KV::V1::InsertResponse
|
28
|
+
rpc :Upsert, ::Couchbase::Protostellar::Generated::KV::V1::UpsertRequest, ::Couchbase::Protostellar::Generated::KV::V1::UpsertResponse
|
29
|
+
rpc :Replace, ::Couchbase::Protostellar::Generated::KV::V1::ReplaceRequest, ::Couchbase::Protostellar::Generated::KV::V1::ReplaceResponse
|
30
|
+
rpc :Remove, ::Couchbase::Protostellar::Generated::KV::V1::RemoveRequest, ::Couchbase::Protostellar::Generated::KV::V1::RemoveResponse
|
31
|
+
rpc :Increment, ::Couchbase::Protostellar::Generated::KV::V1::IncrementRequest, ::Couchbase::Protostellar::Generated::KV::V1::IncrementResponse
|
32
|
+
rpc :Decrement, ::Couchbase::Protostellar::Generated::KV::V1::DecrementRequest, ::Couchbase::Protostellar::Generated::KV::V1::DecrementResponse
|
33
|
+
rpc :Append, ::Couchbase::Protostellar::Generated::KV::V1::AppendRequest, ::Couchbase::Protostellar::Generated::KV::V1::AppendResponse
|
34
|
+
rpc :Prepend, ::Couchbase::Protostellar::Generated::KV::V1::PrependRequest, ::Couchbase::Protostellar::Generated::KV::V1::PrependResponse
|
35
|
+
rpc :LookupIn, ::Couchbase::Protostellar::Generated::KV::V1::LookupInRequest, ::Couchbase::Protostellar::Generated::KV::V1::LookupInResponse
|
36
|
+
rpc :MutateIn, ::Couchbase::Protostellar::Generated::KV::V1::MutateInRequest, ::Couchbase::Protostellar::Generated::KV::V1::MutateInResponse
|
37
|
+
rpc :GetAllReplicas, ::Couchbase::Protostellar::Generated::KV::V1::GetAllReplicasRequest, stream(::Couchbase::Protostellar::Generated::KV::V1::GetAllReplicasResponse)
|
38
|
+
end
|
39
|
+
|
40
|
+
Stub = Service.rpc_stub_class
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: couchbase/query/v1/query.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/duration_pb'
|
8
|
+
require 'couchbase/protostellar/generated/kv/v1/kv_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x1e\x63ouchbase/query/v1/query.proto\x12\x12\x63ouchbase.query.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x18\x63ouchbase/kv/v1/kv.proto\"\xb5\n\n\x0cQueryRequest\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\x11\n\tstatement\x18\x03 \x01(\t\x12\x16\n\tread_only\x18\x04 \x01(\x08H\x02\x88\x01\x01\x12\x15\n\x08prepared\x18\x05 \x01(\x08H\x03\x88\x01\x01\x12K\n\x0etuning_options\x18\x06 \x01(\x0b\x32..couchbase.query.v1.QueryRequest.TuningOptionsH\x04\x88\x01\x01\x12\x1e\n\x11\x63lient_context_id\x18\x07 \x01(\tH\x05\x88\x01\x01\x12O\n\x10scan_consistency\x18\x08 \x01(\x0e\x32\x30.couchbase.query.v1.QueryRequest.ScanConsistencyH\x06\x88\x01\x01\x12\x1d\n\x15positional_parameters\x18\t \x03(\x0c\x12O\n\x10named_parameters\x18\n \x03(\x0b\x32\x35.couchbase.query.v1.QueryRequest.NamedParametersEntry\x12\x17\n\nflex_index\x18\x0b \x01(\x08H\x07\x88\x01\x01\x12\x1c\n\x0fpreserve_expiry\x18\x0c \x01(\x08H\x08\x88\x01\x01\x12\x37\n\x0f\x63onsistent_with\x18\r \x03(\x0b\x32\x1e.couchbase.kv.v1.MutationToken\x12G\n\x0cprofile_mode\x18\x0e \x01(\x0e\x32,.couchbase.query.v1.QueryRequest.ProfileModeH\t\x88\x01\x01\x1a\xb4\x02\n\rTuningOptions\x12\x1c\n\x0fmax_parallelism\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x1b\n\x0epipeline_batch\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x19\n\x0cpipeline_cap\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\x31\n\tscan_wait\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationH\x03\x88\x01\x01\x12\x15\n\x08scan_cap\x18\x05 \x01(\rH\x04\x88\x01\x01\x12\x1c\n\x0f\x64isable_metrics\x18\x06 \x01(\x08H\x05\x88\x01\x01\x42\x12\n\x10_max_parallelismB\x11\n\x0f_pipeline_batchB\x0f\n\r_pipeline_capB\x0c\n\n_scan_waitB\x0b\n\t_scan_capB\x12\n\x10_disable_metrics\x1a\x36\n\x14NamedParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"V\n\x0fScanConsistency\x12 \n\x1cSCAN_CONSISTENCY_NOT_BOUNDED\x10\x00\x12!\n\x1dSCAN_CONSISTENCY_REQUEST_PLUS\x10\x01\"V\n\x0bProfileMode\x12\x14\n\x10PROFILE_MODE_OFF\x10\x00\x12\x17\n\x13PROFILE_MODE_PHASES\x10\x01\x12\x18\n\x14PROFILE_MODE_TIMINGS\x10\x02\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_nameB\x0c\n\n_read_onlyB\x0b\n\t_preparedB\x11\n\x0f_tuning_optionsB\x14\n\x12_client_context_idB\x13\n\x11_scan_consistencyB\r\n\x0b_flex_indexB\x12\n\x10_preserve_expiryB\x0f\n\r_profile_mode\"\xad\x07\n\rQueryResponse\x12\x0c\n\x04rows\x18\x01 \x03(\x0c\x12\x42\n\tmeta_data\x18\x02 \x01(\x0b\x32*.couchbase.query.v1.QueryResponse.MetaDataH\x00\x88\x01\x01\x1a\xbb\x06\n\x08MetaData\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x19\n\x11\x63lient_context_id\x18\x02 \x01(\t\x12H\n\x07metrics\x18\x03 \x01(\x0b\x32\x32.couchbase.query.v1.QueryResponse.MetaData.MetricsH\x00\x88\x01\x01\x12\x41\n\x06status\x18\x04 \x01(\x0e\x32\x31.couchbase.query.v1.QueryResponse.MetaData.Status\x12\x44\n\x08warnings\x18\x05 \x03(\x0b\x32\x32.couchbase.query.v1.QueryResponse.MetaData.Warning\x12\x14\n\x07profile\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12\x11\n\tsignature\x18\x07 \x01(\x0c\x1a(\n\x07Warning\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x1a\xf0\x01\n\x07Metrics\x12/\n\x0c\x65lapsed_time\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\x0e\x65xecution_time\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x14\n\x0cresult_count\x18\x03 \x01(\x04\x12\x13\n\x0bresult_size\x18\x04 \x01(\x04\x12\x16\n\x0emutation_count\x18\x05 \x01(\x04\x12\x12\n\nsort_count\x18\x06 \x01(\x04\x12\x13\n\x0b\x65rror_count\x18\x07 \x01(\x04\x12\x15\n\rwarning_count\x18\x08 \x01(\x04\"\xce\x01\n\x06Status\x12\x12\n\x0eSTATUS_RUNNING\x10\x00\x12\x12\n\x0eSTATUS_SUCCESS\x10\x01\x12\x11\n\rSTATUS_ERRORS\x10\x02\x12\x14\n\x10STATUS_COMPLETED\x10\x03\x12\x12\n\x0eSTATUS_STOPPED\x10\x04\x12\x12\n\x0eSTATUS_TIMEOUT\x10\x05\x12\x11\n\rSTATUS_CLOSED\x10\x06\x12\x10\n\x0cSTATUS_FATAL\x10\x07\x12\x12\n\x0eSTATUS_ABORTED\x10\x08\x12\x12\n\x0eSTATUS_UNKNOWN\x10\tB\n\n\x08_metricsB\n\n\x08_profileB\x0c\n\n_meta_data2`\n\x0cQueryService\x12P\n\x05Query\x12 .couchbase.query.v1.QueryRequest\x1a!.couchbase.query.v1.QueryResponse\"\x00\x30\x01\x42\xec\x01\n*com.couchbase.client.protostellar.query.v1P\x01Z>github.com/couchbase/goprotostellar/genproto/query_v1;query_v1\xaa\x02\x1f\x43ouchbase.Protostellar.Query.V1\xca\x02)Couchbase\\Protostellar\\Generated\\Query\\V1\xea\x02-Couchbase::Protostellar::Generated::Query::V1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["couchbase.kv.v1.MutationToken", "couchbase/kv/v1/kv.proto"],
|
27
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
37
|
+
end
|
38
|
+
|
39
|
+
module Couchbase
|
40
|
+
module Protostellar
|
41
|
+
module Generated
|
42
|
+
module Query
|
43
|
+
module V1
|
44
|
+
QueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryRequest").msgclass
|
45
|
+
QueryRequest::TuningOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryRequest.TuningOptions").msgclass
|
46
|
+
QueryRequest::ScanConsistency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryRequest.ScanConsistency").enummodule
|
47
|
+
QueryRequest::ProfileMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryRequest.ProfileMode").enummodule
|
48
|
+
QueryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryResponse").msgclass
|
49
|
+
QueryResponse::MetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryResponse.MetaData").msgclass
|
50
|
+
QueryResponse::MetaData::Warning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryResponse.MetaData.Warning").msgclass
|
51
|
+
QueryResponse::MetaData::Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryResponse.MetaData.Metrics").msgclass
|
52
|
+
QueryResponse::MetaData::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.query.v1.QueryResponse.MetaData.Status").enummodule
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: couchbase/query/v1/query.proto for package 'Couchbase.Protostellar.Generated.Query.V1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'couchbase/protostellar/generated/query/v1/query_pb'
|
6
|
+
|
7
|
+
module Couchbase
|
8
|
+
module Protostellar
|
9
|
+
module Generated
|
10
|
+
module Query
|
11
|
+
module V1
|
12
|
+
module QueryService
|
13
|
+
class Service
|
14
|
+
|
15
|
+
include ::GRPC::GenericService
|
16
|
+
|
17
|
+
self.marshal_class_method = :encode
|
18
|
+
self.unmarshal_class_method = :decode
|
19
|
+
self.service_name = 'couchbase.query.v1.QueryService'
|
20
|
+
|
21
|
+
rpc :Query, ::Couchbase::Protostellar::Generated::Query::V1::QueryRequest, stream(::Couchbase::Protostellar::Generated::Query::V1::QueryResponse)
|
22
|
+
end
|
23
|
+
|
24
|
+
Stub = Service.rpc_stub_class
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: couchbase/routing/v1/routing.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n\"couchbase/routing/v1/routing.proto\x12\x14\x63ouchbase.routing.v1\"D\n\x0fRoutingEndpoint\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0cserver_group\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\"[\n\x13\x44\x61taRoutingEndpoint\x12\x14\n\x0c\x65ndpoint_idx\x18\x01 \x01(\r\x12\x16\n\x0elocal_vbuckets\x18\x02 \x03(\r\x12\x16\n\x0egroup_vbuckets\x18\x03 \x03(\r\"p\n\x1aVbucketDataRoutingStrategy\x12<\n\tendpoints\x18\x01 \x03(\x0b\x32).couchbase.routing.v1.DataRoutingEndpoint\x12\x14\n\x0cnum_vbuckets\x18\x03 \x01(\r\",\n\x14QueryRoutingEndpoint\x12\x14\n\x0c\x65ndpoint_idx\x18\x01 \x01(\r\"M\n\x0cQueryRouting\x12=\n\tendpoints\x18\x01 \x03(\x0b\x32*.couchbase.routing.v1.QueryRoutingEndpoint\",\n\x14ViewsRoutingEndpoint\x12\x14\n\x0c\x65ndpoint_idx\x18\x01 \x01(\r\"M\n\x0cViewsRouting\x12=\n\tendpoints\x18\x01 \x03(\x0b\x32*.couchbase.routing.v1.ViewsRoutingEndpoint\"?\n\x13WatchRoutingRequest\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_bucket_name\"\xe8\x02\n\x14WatchRoutingResponse\x12\x10\n\x08revision\x18\x01 \x03(\x04\x12\x38\n\tendpoints\x18\x02 \x03(\x0b\x32%.couchbase.routing.v1.RoutingEndpoint\x12P\n\x14vbucket_data_routing\x18\x03 \x01(\x0b\x32\x30.couchbase.routing.v1.VbucketDataRoutingStrategyH\x00\x12>\n\rquery_routing\x18\x04 \x01(\x0b\x32\".couchbase.routing.v1.QueryRoutingH\x01\x88\x01\x01\x12>\n\rviews_routing\x18\x05 \x01(\x0b\x32\".couchbase.routing.v1.ViewsRoutingH\x02\x88\x01\x01\x42\x0e\n\x0c\x64\x61ta_routingB\x10\n\x0e_query_routingB\x10\n\x0e_views_routing2{\n\x0eRoutingService\x12i\n\x0cWatchRouting\x12).couchbase.routing.v1.WatchRoutingRequest\x1a*.couchbase.routing.v1.WatchRoutingResponse\"\x00\x30\x01\x42\xf8\x01\n,com.couchbase.client.protostellar.routing.v1P\x01ZBgithub.com/couchbase/goprotostellar/genproto/routing_v1;routing_v1\xaa\x02!Couchbase.Protostellar.Routing.V1\xca\x02+Couchbase\\Protostellar\\Generated\\Routing\\V1\xea\x02/Couchbase::Protostellar::Generated::Routing::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 Routing
|
38
|
+
module V1
|
39
|
+
RoutingEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.RoutingEndpoint").msgclass
|
40
|
+
DataRoutingEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.DataRoutingEndpoint").msgclass
|
41
|
+
VbucketDataRoutingStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.VbucketDataRoutingStrategy").msgclass
|
42
|
+
QueryRoutingEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.QueryRoutingEndpoint").msgclass
|
43
|
+
QueryRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.QueryRouting").msgclass
|
44
|
+
ViewsRoutingEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.ViewsRoutingEndpoint").msgclass
|
45
|
+
ViewsRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.ViewsRouting").msgclass
|
46
|
+
WatchRoutingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.WatchRoutingRequest").msgclass
|
47
|
+
WatchRoutingResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.routing.v1.WatchRoutingResponse").msgclass
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: couchbase/routing/v1/routing.proto for package 'Couchbase.Protostellar.Generated.Routing.V1'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'couchbase/protostellar/generated/routing/v1/routing_pb'
|
6
|
+
|
7
|
+
module Couchbase
|
8
|
+
module Protostellar
|
9
|
+
module Generated
|
10
|
+
module Routing
|
11
|
+
module V1
|
12
|
+
module RoutingService
|
13
|
+
class Service
|
14
|
+
|
15
|
+
include ::GRPC::GenericService
|
16
|
+
|
17
|
+
self.marshal_class_method = :encode
|
18
|
+
self.unmarshal_class_method = :decode
|
19
|
+
self.service_name = 'couchbase.routing.v1.RoutingService'
|
20
|
+
|
21
|
+
rpc :WatchRouting, ::Couchbase::Protostellar::Generated::Routing::V1::WatchRoutingRequest, stream(::Couchbase::Protostellar::Generated::Routing::V1::WatchRoutingResponse)
|
22
|
+
end
|
23
|
+
|
24
|
+
Stub = Service.rpc_stub_class
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|