upfluence-thrift 2.6.8 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/benchmark/{gen-rb/benchmark_constants.rb → benchmark_constants.rb} +1 -1
- data/benchmark/{gen-rb/benchmark_service.rb → benchmark_service.rb} +2 -2
- data/benchmark/{gen-rb/benchmark_types.rb → benchmark_types.rb} +1 -1
- data/ext/struct.c +5 -1
- data/lib/thrift/base_stream.rb +85 -0
- data/lib/thrift/bidi_stream.rb +183 -0
- data/lib/thrift/client.rb +84 -17
- data/lib/thrift/inbound_stream.rb +72 -0
- data/lib/thrift/middleware.rb +42 -0
- data/lib/thrift/outbound_stream.rb +52 -0
- data/lib/thrift/processor.rb +287 -47
- data/lib/thrift/protocol/base_protocol.rb +35 -33
- data/lib/thrift/protocol/binary_protocol.rb +8 -1
- data/lib/thrift/protocol/binary_protocol_accelerated.rb +8 -0
- data/lib/thrift/protocol/compact_protocol.rb +8 -0
- data/lib/thrift/protocol/json_protocol.rb +21 -4
- data/lib/thrift/protocol/multiplexed_protocol.rb +5 -1
- data/lib/thrift/server/base_server.rb +8 -2
- data/lib/thrift/server/nonblocking_server.rb +5 -4
- data/lib/thrift/server/simple_server.rb +5 -1
- data/lib/thrift/server/thread_pool_server.rb +5 -1
- data/lib/thrift/server/threaded_server.rb +5 -1
- data/lib/thrift/transport/base_server_transport.rb +1 -1
- data/lib/thrift/transport/base_transport.rb +8 -0
- data/lib/thrift/transport/buffered_transport.rb +9 -1
- data/lib/thrift/transport/framed_transport.rb +9 -1
- data/lib/thrift/transport/http_client_transport.rb +4 -0
- data/lib/thrift/transport/io_stream_transport.rb +4 -1
- data/lib/thrift/transport/memory_buffer_transport.rb +4 -0
- data/lib/thrift/transport/server_socket.rb +5 -0
- data/lib/thrift/transport/socket.rb +21 -17
- data/lib/thrift/transport/ssl_server_socket.rb +41 -0
- data/lib/thrift/transport/ssl_socket.rb +51 -0
- data/lib/thrift/transport/unix_server_socket.rb +5 -1
- data/lib/thrift/transport/unix_socket.rb +5 -1
- data/lib/thrift/types/annotation/deprecation/deprecation_constants.rb +1 -1
- data/lib/thrift/types/annotation/deprecation/deprecation_types.rb +2 -2
- data/lib/thrift/types/annotation/exception/exception_constants.rb +17 -0
- data/lib/thrift/types/annotation/exception/exception_types.rb +44 -0
- data/lib/thrift/types/annotation/naming/naming_constants.rb +1 -1
- data/lib/thrift/types/annotation/naming/naming_types.rb +2 -2
- data/lib/thrift/types/annotation/rpc/rpc_constants.rb +17 -0
- data/lib/thrift/types/annotation/rpc/rpc_types.rb +74 -0
- data/lib/thrift/types/annotation_definition/annotation_definition_constants.rb +15 -0
- data/lib/thrift/types/annotation_definition/annotation_definition_types.rb +116 -0
- data/lib/thrift/types/constant_definition/constant_definition_constants.rb +15 -0
- data/lib/thrift/types/constant_definition/constant_definition_types.rb +292 -0
- data/lib/thrift/types/core/core_constants.rb +15 -0
- data/lib/thrift/types/core/core_types.rb +58 -0
- data/lib/thrift/types/enum_definition/enum_definition_constants.rb +15 -0
- data/lib/thrift/types/enum_definition/enum_definition_types.rb +106 -0
- data/lib/thrift/types/known/any/any_constants.rb +1 -1
- data/lib/thrift/types/known/any/any_types.rb +2 -2
- data/lib/thrift/types/known/duration/duration_constants.rb +1 -1
- data/lib/thrift/types/known/duration/duration_types.rb +2 -2
- data/lib/thrift/types/known/timestamp/timestamp_constants.rb +1 -1
- data/lib/thrift/types/known/timestamp/timestamp_types.rb +2 -2
- data/lib/thrift/types/plugin/plugin.rb +139 -0
- data/lib/thrift/types/plugin/plugin_constants.rb +15 -0
- data/lib/thrift/types/plugin/plugin_types.rb +106 -0
- data/lib/thrift/types/program_definition/program_definition_constants.rb +15 -0
- data/lib/thrift/types/program_definition/program_definition_types.rb +137 -0
- data/lib/thrift/types/service_definition/service_definition_constants.rb +15 -0
- data/lib/thrift/types/service_definition/service_definition_types.rb +160 -0
- data/lib/thrift/types/struct_definition/struct_definition_constants.rb +15 -0
- data/lib/thrift/types/struct_definition/struct_definition_types.rb +157 -0
- data/lib/thrift/types/type_definition/type_definition_constants.rb +15 -0
- data/lib/thrift/types/type_definition/type_definition_types.rb +242 -0
- data/lib/thrift/types/value/value_constants.rb +1 -1
- data/lib/thrift/types/value/value_types.rb +50 -51
- data/lib/thrift/types.rb +11 -3
- data/lib/thrift/union.rb +3 -6
- data/lib/thrift.rb +6 -0
- data/lib/types/annotation/deprecation/deprecation_constants.rb +16 -0
- data/lib/types/annotation/deprecation/deprecation_types.rb +42 -0
- data/lib/types/annotation/naming/naming_constants.rb +16 -0
- data/lib/types/annotation/naming/naming_types.rb +57 -0
- data/lib/types/annotation_definition/annotation_definition_constants.rb +14 -0
- data/lib/types/annotation_definition/annotation_definition_types.rb +114 -0
- data/lib/types/constant_definition/constant_definition_constants.rb +14 -0
- data/lib/types/constant_definition/constant_definition_types.rb +290 -0
- data/lib/types/core/core_constants.rb +14 -0
- data/lib/types/core/core_types.rb +56 -0
- data/lib/types/enum_definition/enum_definition_constants.rb +14 -0
- data/lib/types/enum_definition/enum_definition_types.rb +104 -0
- data/lib/types/known/any/any_constants.rb +16 -0
- data/lib/types/known/any/any_types.rb +59 -0
- data/lib/types/known/duration/duration_constants.rb +16 -0
- data/lib/types/known/duration/duration_types.rb +59 -0
- data/lib/types/known/timestamp/timestamp_constants.rb +16 -0
- data/lib/types/known/timestamp/timestamp_types.rb +59 -0
- data/lib/types/plugin/plugin.rb +137 -0
- data/lib/types/plugin/plugin_constants.rb +14 -0
- data/lib/types/plugin/plugin_types.rb +104 -0
- data/lib/types/program_definition/program_definition_constants.rb +14 -0
- data/lib/types/program_definition/program_definition_types.rb +135 -0
- data/lib/types/service_definition/service_definition_constants.rb +14 -0
- data/lib/types/service_definition/service_definition_types.rb +158 -0
- data/lib/types/struct_definition/struct_definition_constants.rb +14 -0
- data/lib/types/struct_definition/struct_definition_types.rb +155 -0
- data/lib/types/type_definition/type_definition_constants.rb +14 -0
- data/lib/types/type_definition/type_definition_types.rb +240 -0
- data/lib/types/value/value_constants.rb +14 -0
- data/lib/types/value/value_types.rb +330 -0
- data/spec/{gen-rb/base → base}/base_service.rb +2 -2
- data/spec/{gen-rb/base → base}/base_service_constants.rb +1 -1
- data/spec/{gen-rb/base → base}/base_service_types.rb +1 -1
- data/spec/base_protocol_spec.rb +79 -71
- data/spec/base_transport_spec.rb +155 -117
- data/spec/binary_protocol_accelerated_spec.rb +6 -2
- data/spec/binary_protocol_spec.rb +16 -8
- data/spec/binary_protocol_spec_shared.rb +77 -77
- data/spec/bytes_spec.rb +38 -38
- data/spec/client_spec.rb +48 -50
- data/spec/compact_protocol_spec.rb +59 -46
- data/spec/exception_spec.rb +54 -54
- data/spec/{gen-rb/extended → extended}/extended_service.rb +2 -2
- data/spec/{gen-rb/extended → extended}/extended_service_constants.rb +1 -1
- data/spec/{gen-rb/extended → extended}/extended_service_types.rb +1 -1
- data/spec/flat_spec.rb +5 -5
- data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +4 -4
- data/spec/gen-rb/flat/referenced_constants.rb +1 -1
- data/spec/gen-rb/flat/referenced_types.rb +1 -1
- data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +1 -1
- data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +1 -1
- data/spec/http_client_spec.rb +96 -43
- data/spec/json_protocol_spec.rb +170 -131
- data/spec/namespaced_spec.rb +24 -27
- data/spec/{gen-rb/namespaced_spec_namespace → namespaced_spec_namespace}/namespaced_nonblocking_service.rb +4 -4
- data/spec/{gen-rb/namespaced_spec_namespace → namespaced_spec_namespace}/thrift_namespaced_spec_constants.rb +1 -1
- data/spec/{gen-rb/namespaced_spec_namespace → namespaced_spec_namespace}/thrift_namespaced_spec_types.rb +1 -1
- data/spec/nonblocking_server_spec.rb +16 -16
- data/spec/{gen-rb/nonblocking_service.rb → nonblocking_service.rb} +4 -4
- data/spec/{gen-rb/other_namespace → other_namespace}/referenced_constants.rb +1 -1
- data/spec/{gen-rb/other_namespace → other_namespace}/referenced_types.rb +1 -1
- data/spec/processor_spec.rb +42 -31
- data/spec/rack_application_spec.rb +22 -26
- data/spec/serializer_spec.rb +20 -20
- data/spec/server_socket_spec.rb +27 -22
- data/spec/server_spec.rb +91 -51
- data/spec/socket_spec.rb +23 -16
- data/spec/socket_spec_shared.rb +31 -31
- data/spec/spec_helper.rb +1 -1
- data/spec/ssl_server_socket_spec.rb +34 -0
- data/spec/ssl_socket_spec.rb +78 -0
- data/spec/streaming_spec.rb +442 -0
- data/spec/struct_nested_containers_spec.rb +24 -24
- data/spec/struct_spec.rb +120 -120
- data/spec/thin_http_server_spec.rb +71 -28
- data/spec/{gen-rb/thrift_spec_constants.rb → thrift_spec_constants.rb} +1 -1
- data/spec/{gen-rb/thrift_spec_types.rb → thrift_spec_types.rb} +16 -16
- data/spec/types/known/any_spec.rb +2 -2
- data/spec/types/known/duration_spec.rb +1 -1
- data/spec/types/known/timestamp_spec.rb +1 -1
- data/spec/types/value_spec.rb +2 -1
- data/spec/types_spec.rb +56 -53
- data/spec/union_spec.rb +51 -40
- data/spec/unix_socket_spec.rb +43 -34
- data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +267 -260
- data/test/debug_proto/gen-rb/debug_proto_test_types.rb +1481 -1416
- data/test/debug_proto/gen-rb/empty_service.rb +31 -27
- data/test/debug_proto/gen-rb/inherited.rb +102 -98
- data/test/debug_proto/gen-rb/reverse_order_service.rb +112 -108
- data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +99 -95
- data/test/debug_proto/gen-rb/srv.rb +525 -406
- metadata +178 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Autogenerated by Thrift Compiler (2.
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
3
|
#
|
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
5
|
#
|
|
@@ -42,7 +42,7 @@ module Thrift
|
|
|
42
42
|
FIELDS = {
|
|
43
43
|
THRIFT_FIELD_INDEX_SECONDS => {type: ::Thrift::Types::I64, name: 'seconds', legacy_annotations: THRIFT_FIELD_SECONDS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_SECONDS_STRUCTURED_ANNOTATIONS},
|
|
44
44
|
THRIFT_FIELD_INDEX_NANOS => {type: ::Thrift::Types::I32, name: 'nanos', legacy_annotations: THRIFT_FIELD_NANOS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_NANOS_STRUCTURED_ANNOTATIONS}
|
|
45
|
-
}
|
|
45
|
+
}.freeze
|
|
46
46
|
|
|
47
47
|
def struct_fields; FIELDS; end
|
|
48
48
|
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/plugin/plugin_types'
|
|
9
|
+
|
|
10
|
+
module Thrift
|
|
11
|
+
module Types
|
|
12
|
+
module Plugin
|
|
13
|
+
module Plugin
|
|
14
|
+
SERVICE = 'Plugin'.freeze
|
|
15
|
+
NAMESPACE = 'types.plugin'.freeze
|
|
16
|
+
|
|
17
|
+
LEGACY_ANNOTATIONS = {
|
|
18
|
+
}.freeze
|
|
19
|
+
|
|
20
|
+
STRUCTURED_ANNOTATIONS = [
|
|
21
|
+
].freeze
|
|
22
|
+
|
|
23
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
|
24
|
+
|
|
25
|
+
class Generate_code_args
|
|
26
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
27
|
+
|
|
28
|
+
NAME = 'generate_code_args'.freeze
|
|
29
|
+
NAMESPACE = 'types.plugin'.freeze
|
|
30
|
+
|
|
31
|
+
LEGACY_ANNOTATIONS = {
|
|
32
|
+
}.freeze
|
|
33
|
+
|
|
34
|
+
STRUCTURED_ANNOTATIONS = [
|
|
35
|
+
].freeze
|
|
36
|
+
|
|
37
|
+
THRIFT_FIELD_INDEX_REQ = 1
|
|
38
|
+
|
|
39
|
+
THRIFT_FIELD_REQ_LEGACY_ANNOTATIONS = {
|
|
40
|
+
}.freeze
|
|
41
|
+
|
|
42
|
+
THRIFT_FIELD_REQ_STRUCTURED_ANNOTATIONS = [
|
|
43
|
+
].freeze
|
|
44
|
+
|
|
45
|
+
FIELDS = {
|
|
46
|
+
THRIFT_FIELD_INDEX_REQ => {type: ::Thrift::Types::STRUCT, name: 'req', class: ::Thrift::Types::Plugin::GenerateCodeRequest, legacy_annotations: THRIFT_FIELD_REQ_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_REQ_STRUCTURED_ANNOTATIONS}
|
|
47
|
+
}.freeze
|
|
48
|
+
|
|
49
|
+
def struct_fields; FIELDS; end
|
|
50
|
+
|
|
51
|
+
def validate
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
::Thrift::Struct.generate_accessors self
|
|
55
|
+
::Thrift.register_struct_type self
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class Generate_code_result
|
|
59
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
60
|
+
|
|
61
|
+
NAME = 'generate_code_result'.freeze
|
|
62
|
+
NAMESPACE = 'types.plugin'.freeze
|
|
63
|
+
|
|
64
|
+
LEGACY_ANNOTATIONS = {
|
|
65
|
+
}.freeze
|
|
66
|
+
|
|
67
|
+
STRUCTURED_ANNOTATIONS = [
|
|
68
|
+
].freeze
|
|
69
|
+
|
|
70
|
+
THRIFT_FIELD_INDEX_SUCCESS = 0
|
|
71
|
+
|
|
72
|
+
THRIFT_FIELD_SUCCESS_LEGACY_ANNOTATIONS = {
|
|
73
|
+
}.freeze
|
|
74
|
+
|
|
75
|
+
THRIFT_FIELD_SUCCESS_STRUCTURED_ANNOTATIONS = [
|
|
76
|
+
].freeze
|
|
77
|
+
|
|
78
|
+
FIELDS = {
|
|
79
|
+
THRIFT_FIELD_INDEX_SUCCESS => {type: ::Thrift::Types::STRUCT, name: 'success', class: ::Thrift::Types::Plugin::GenerateCodeResponse, legacy_annotations: THRIFT_FIELD_SUCCESS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_SUCCESS_STRUCTURED_ANNOTATIONS}
|
|
80
|
+
}.freeze
|
|
81
|
+
|
|
82
|
+
def struct_fields; FIELDS; end
|
|
83
|
+
|
|
84
|
+
def validate
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
::Thrift::Struct.generate_accessors self
|
|
88
|
+
::Thrift.register_struct_type self
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class Client
|
|
92
|
+
def initialize(client)
|
|
93
|
+
@client = ::Thrift.build_client(client)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self.from_provider(provider)
|
|
97
|
+
Client.new(provider.build(NAMESPACE, SERVICE))
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def generate_code(req)
|
|
101
|
+
result = @client.call_binary(
|
|
102
|
+
'generate_code',
|
|
103
|
+
Generate_code_args.new(req: req),
|
|
104
|
+
Generate_code_result,
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
return result.success unless result.success.nil?
|
|
108
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'generate_code failed: unknown result') if result.success.nil?
|
|
109
|
+
result.success
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class Processor
|
|
115
|
+
include ::Thrift::Processor
|
|
116
|
+
|
|
117
|
+
def self.from_provider(handler, provider)
|
|
118
|
+
provider.build(NAMESPACE, SERVICE, Processor, handler)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
THRIFT_METHOD_GENERATE_CODE_LEGACY_ANNOTATIONS = {
|
|
122
|
+
}.freeze
|
|
123
|
+
|
|
124
|
+
THRIFT_METHOD_GENERATE_CODE_STRUCTURED_ANNOTATIONS = [
|
|
125
|
+
].freeze
|
|
126
|
+
|
|
127
|
+
METHODS = {
|
|
128
|
+
'generate_code' => { args_klass: Generate_code_args, result_klass: Generate_code_result, args: [:req], exceptions: {}, oneway: false, legacy_annotations: THRIFT_METHOD_GENERATE_CODE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_METHOD_GENERATE_CODE_STRUCTURED_ANNOTATIONS},
|
|
129
|
+
}.freeze
|
|
130
|
+
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
::Thrift.register_service_type(self)
|
|
134
|
+
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/plugin/plugin_types'
|
|
9
|
+
|
|
10
|
+
module Thrift
|
|
11
|
+
module Types
|
|
12
|
+
module Plugin
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/program_definition/program_definition_types'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module Thrift
|
|
12
|
+
module Types
|
|
13
|
+
module Plugin
|
|
14
|
+
class GenerateCodeRequest; end
|
|
15
|
+
|
|
16
|
+
class GenerateCodeResponse; end
|
|
17
|
+
|
|
18
|
+
class GenerateCodeRequest
|
|
19
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
20
|
+
|
|
21
|
+
NAME = 'GenerateCodeRequest'.freeze
|
|
22
|
+
NAMESPACE = 'types.plugin'.freeze
|
|
23
|
+
|
|
24
|
+
LEGACY_ANNOTATIONS = {
|
|
25
|
+
}.freeze
|
|
26
|
+
|
|
27
|
+
STRUCTURED_ANNOTATIONS = [
|
|
28
|
+
].freeze
|
|
29
|
+
|
|
30
|
+
THRIFT_FIELD_INDEX_PROGRAM = 1
|
|
31
|
+
THRIFT_FIELD_INDEX_LANGUAGE = 2
|
|
32
|
+
THRIFT_FIELD_INDEX_OPTIONS = 3
|
|
33
|
+
|
|
34
|
+
THRIFT_FIELD_PROGRAM_LEGACY_ANNOTATIONS = {
|
|
35
|
+
}.freeze
|
|
36
|
+
|
|
37
|
+
THRIFT_FIELD_PROGRAM_STRUCTURED_ANNOTATIONS = [
|
|
38
|
+
].freeze
|
|
39
|
+
|
|
40
|
+
THRIFT_FIELD_LANGUAGE_LEGACY_ANNOTATIONS = {
|
|
41
|
+
}.freeze
|
|
42
|
+
|
|
43
|
+
THRIFT_FIELD_LANGUAGE_STRUCTURED_ANNOTATIONS = [
|
|
44
|
+
].freeze
|
|
45
|
+
|
|
46
|
+
THRIFT_FIELD_OPTIONS_LEGACY_ANNOTATIONS = {
|
|
47
|
+
}.freeze
|
|
48
|
+
|
|
49
|
+
THRIFT_FIELD_OPTIONS_STRUCTURED_ANNOTATIONS = [
|
|
50
|
+
].freeze
|
|
51
|
+
|
|
52
|
+
FIELDS = {
|
|
53
|
+
THRIFT_FIELD_INDEX_PROGRAM => {type: ::Thrift::Types::STRUCT, name: 'program', class: ::Thrift::Types::Program_definition::ProgramDefinition, legacy_annotations: THRIFT_FIELD_PROGRAM_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_PROGRAM_STRUCTURED_ANNOTATIONS},
|
|
54
|
+
THRIFT_FIELD_INDEX_LANGUAGE => {type: ::Thrift::Types::STRING, name: 'language', legacy_annotations: THRIFT_FIELD_LANGUAGE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_LANGUAGE_STRUCTURED_ANNOTATIONS},
|
|
55
|
+
THRIFT_FIELD_INDEX_OPTIONS => {type: ::Thrift::Types::MAP, name: 'options', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, legacy_annotations: THRIFT_FIELD_OPTIONS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_OPTIONS_STRUCTURED_ANNOTATIONS}
|
|
56
|
+
}.freeze
|
|
57
|
+
|
|
58
|
+
def struct_fields; FIELDS; end
|
|
59
|
+
|
|
60
|
+
def validate
|
|
61
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field program is unset!') unless @program
|
|
62
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field language is unset!') unless @language
|
|
63
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field options is unset!') unless @options
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
::Thrift::Struct.generate_accessors self
|
|
67
|
+
::Thrift.register_struct_type self
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class GenerateCodeResponse
|
|
71
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
72
|
+
|
|
73
|
+
NAME = 'GenerateCodeResponse'.freeze
|
|
74
|
+
NAMESPACE = 'types.plugin'.freeze
|
|
75
|
+
|
|
76
|
+
LEGACY_ANNOTATIONS = {
|
|
77
|
+
}.freeze
|
|
78
|
+
|
|
79
|
+
STRUCTURED_ANNOTATIONS = [
|
|
80
|
+
].freeze
|
|
81
|
+
|
|
82
|
+
THRIFT_FIELD_INDEX_FILES = 1
|
|
83
|
+
|
|
84
|
+
THRIFT_FIELD_FILES_LEGACY_ANNOTATIONS = {
|
|
85
|
+
}.freeze
|
|
86
|
+
|
|
87
|
+
THRIFT_FIELD_FILES_STRUCTURED_ANNOTATIONS = [
|
|
88
|
+
].freeze
|
|
89
|
+
|
|
90
|
+
FIELDS = {
|
|
91
|
+
THRIFT_FIELD_INDEX_FILES => {type: ::Thrift::Types::MAP, name: 'files', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING, binary: true}, legacy_annotations: THRIFT_FIELD_FILES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_FILES_STRUCTURED_ANNOTATIONS}
|
|
92
|
+
}.freeze
|
|
93
|
+
|
|
94
|
+
def struct_fields; FIELDS; end
|
|
95
|
+
|
|
96
|
+
def validate
|
|
97
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field files is unset!') unless @files
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
::Thrift::Struct.generate_accessors self
|
|
101
|
+
::Thrift.register_struct_type self
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/program_definition/program_definition_types'
|
|
9
|
+
|
|
10
|
+
module Thrift
|
|
11
|
+
module Types
|
|
12
|
+
module Program_definition
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/constant_definition/constant_definition_types'
|
|
9
|
+
require 'thrift/types/enum_definition/enum_definition_types'
|
|
10
|
+
require 'thrift/types/type_definition/type_definition_types'
|
|
11
|
+
require 'thrift/types/struct_definition/struct_definition_types'
|
|
12
|
+
require 'thrift/types/service_definition/service_definition_types'
|
|
13
|
+
require 'thrift/thrift/types/value/value_types'
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Thrift
|
|
17
|
+
module Types
|
|
18
|
+
module Program_definition
|
|
19
|
+
class ProgramDefinition; end
|
|
20
|
+
|
|
21
|
+
class ProgramDefinition
|
|
22
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
23
|
+
|
|
24
|
+
NAME = 'ProgramDefinition'.freeze
|
|
25
|
+
NAMESPACE = 'types.program_definition'.freeze
|
|
26
|
+
|
|
27
|
+
LEGACY_ANNOTATIONS = {
|
|
28
|
+
}.freeze
|
|
29
|
+
|
|
30
|
+
STRUCTURED_ANNOTATIONS = [
|
|
31
|
+
].freeze
|
|
32
|
+
|
|
33
|
+
THRIFT_FIELD_INDEX_NAME = 1
|
|
34
|
+
THRIFT_FIELD_INDEX_PATH = 2
|
|
35
|
+
THRIFT_FIELD_INDEX_DOC = 3
|
|
36
|
+
THRIFT_FIELD_INDEX_NAMESPACES = 4
|
|
37
|
+
THRIFT_FIELD_INDEX_INCLUDES = 5
|
|
38
|
+
THRIFT_FIELD_INDEX_STRUCTS = 6
|
|
39
|
+
THRIFT_FIELD_INDEX_SERVICES = 7
|
|
40
|
+
THRIFT_FIELD_INDEX_CONSTANTS = 8
|
|
41
|
+
THRIFT_FIELD_INDEX_TYPEDEFS = 9
|
|
42
|
+
THRIFT_FIELD_INDEX_ENUMS = 10
|
|
43
|
+
|
|
44
|
+
THRIFT_FIELD_NAME_LEGACY_ANNOTATIONS = {
|
|
45
|
+
}.freeze
|
|
46
|
+
|
|
47
|
+
THRIFT_FIELD_NAME_STRUCTURED_ANNOTATIONS = [
|
|
48
|
+
].freeze
|
|
49
|
+
|
|
50
|
+
THRIFT_FIELD_PATH_LEGACY_ANNOTATIONS = {
|
|
51
|
+
}.freeze
|
|
52
|
+
|
|
53
|
+
THRIFT_FIELD_PATH_STRUCTURED_ANNOTATIONS = [
|
|
54
|
+
].freeze
|
|
55
|
+
|
|
56
|
+
THRIFT_FIELD_DOC_LEGACY_ANNOTATIONS = {
|
|
57
|
+
}.freeze
|
|
58
|
+
|
|
59
|
+
THRIFT_FIELD_DOC_STRUCTURED_ANNOTATIONS = [
|
|
60
|
+
].freeze
|
|
61
|
+
|
|
62
|
+
THRIFT_FIELD_NAMESPACES_LEGACY_ANNOTATIONS = {
|
|
63
|
+
}.freeze
|
|
64
|
+
|
|
65
|
+
THRIFT_FIELD_NAMESPACES_STRUCTURED_ANNOTATIONS = [
|
|
66
|
+
].freeze
|
|
67
|
+
|
|
68
|
+
THRIFT_FIELD_INCLUDES_LEGACY_ANNOTATIONS = {
|
|
69
|
+
}.freeze
|
|
70
|
+
|
|
71
|
+
THRIFT_FIELD_INCLUDES_STRUCTURED_ANNOTATIONS = [
|
|
72
|
+
].freeze
|
|
73
|
+
|
|
74
|
+
THRIFT_FIELD_STRUCTS_LEGACY_ANNOTATIONS = {
|
|
75
|
+
}.freeze
|
|
76
|
+
|
|
77
|
+
THRIFT_FIELD_STRUCTS_STRUCTURED_ANNOTATIONS = [
|
|
78
|
+
].freeze
|
|
79
|
+
|
|
80
|
+
THRIFT_FIELD_SERVICES_LEGACY_ANNOTATIONS = {
|
|
81
|
+
}.freeze
|
|
82
|
+
|
|
83
|
+
THRIFT_FIELD_SERVICES_STRUCTURED_ANNOTATIONS = [
|
|
84
|
+
].freeze
|
|
85
|
+
|
|
86
|
+
THRIFT_FIELD_CONSTANTS_LEGACY_ANNOTATIONS = {
|
|
87
|
+
}.freeze
|
|
88
|
+
|
|
89
|
+
THRIFT_FIELD_CONSTANTS_STRUCTURED_ANNOTATIONS = [
|
|
90
|
+
].freeze
|
|
91
|
+
|
|
92
|
+
THRIFT_FIELD_TYPEDEFS_LEGACY_ANNOTATIONS = {
|
|
93
|
+
}.freeze
|
|
94
|
+
|
|
95
|
+
THRIFT_FIELD_TYPEDEFS_STRUCTURED_ANNOTATIONS = [
|
|
96
|
+
].freeze
|
|
97
|
+
|
|
98
|
+
THRIFT_FIELD_ENUMS_LEGACY_ANNOTATIONS = {
|
|
99
|
+
}.freeze
|
|
100
|
+
|
|
101
|
+
THRIFT_FIELD_ENUMS_STRUCTURED_ANNOTATIONS = [
|
|
102
|
+
].freeze
|
|
103
|
+
|
|
104
|
+
FIELDS = {
|
|
105
|
+
THRIFT_FIELD_INDEX_NAME => {type: ::Thrift::Types::STRING, name: 'name', legacy_annotations: THRIFT_FIELD_NAME_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_NAME_STRUCTURED_ANNOTATIONS},
|
|
106
|
+
THRIFT_FIELD_INDEX_PATH => {type: ::Thrift::Types::STRING, name: 'path', legacy_annotations: THRIFT_FIELD_PATH_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_PATH_STRUCTURED_ANNOTATIONS},
|
|
107
|
+
THRIFT_FIELD_INDEX_DOC => {type: ::Thrift::Types::STRING, name: 'doc', optional: true, legacy_annotations: THRIFT_FIELD_DOC_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_DOC_STRUCTURED_ANNOTATIONS},
|
|
108
|
+
THRIFT_FIELD_INDEX_NAMESPACES => {type: ::Thrift::Types::MAP, name: 'namespaces', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRING}, legacy_annotations: THRIFT_FIELD_NAMESPACES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_NAMESPACES_STRUCTURED_ANNOTATIONS},
|
|
109
|
+
THRIFT_FIELD_INDEX_INCLUDES => {type: ::Thrift::Types::LIST, name: 'includes', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Program_definition::ProgramDefinition}, legacy_annotations: THRIFT_FIELD_INCLUDES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_INCLUDES_STRUCTURED_ANNOTATIONS},
|
|
110
|
+
THRIFT_FIELD_INDEX_STRUCTS => {type: ::Thrift::Types::MAP, name: 'structs', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Struct_definition::StructDefinition}, legacy_annotations: THRIFT_FIELD_STRUCTS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_STRUCTS_STRUCTURED_ANNOTATIONS},
|
|
111
|
+
THRIFT_FIELD_INDEX_SERVICES => {type: ::Thrift::Types::MAP, name: 'services', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Service_definition::ServiceDefinition}, legacy_annotations: THRIFT_FIELD_SERVICES_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_SERVICES_STRUCTURED_ANNOTATIONS},
|
|
112
|
+
THRIFT_FIELD_INDEX_CONSTANTS => {type: ::Thrift::Types::MAP, name: 'constants', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Constant_definition::ConstantDefinition}, legacy_annotations: THRIFT_FIELD_CONSTANTS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_CONSTANTS_STRUCTURED_ANNOTATIONS},
|
|
113
|
+
THRIFT_FIELD_INDEX_TYPEDEFS => {type: ::Thrift::Types::MAP, name: 'typedefs', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Type_definition::TypeDefinition}, legacy_annotations: THRIFT_FIELD_TYPEDEFS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_TYPEDEFS_STRUCTURED_ANNOTATIONS},
|
|
114
|
+
THRIFT_FIELD_INDEX_ENUMS => {type: ::Thrift::Types::MAP, name: 'enums', key: {type: ::Thrift::Types::STRING}, value: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Enum_definition::EnumDefinition}, legacy_annotations: THRIFT_FIELD_ENUMS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ENUMS_STRUCTURED_ANNOTATIONS}
|
|
115
|
+
}.freeze
|
|
116
|
+
|
|
117
|
+
def struct_fields; FIELDS; end
|
|
118
|
+
|
|
119
|
+
def validate
|
|
120
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
|
|
121
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field path is unset!') unless @path
|
|
122
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field namespaces is unset!') unless @namespaces
|
|
123
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field includes is unset!') unless @includes
|
|
124
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field structs is unset!') unless @structs
|
|
125
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field services is unset!') unless @services
|
|
126
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field constants is unset!') unless @constants
|
|
127
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field typedefs is unset!') unless @typedefs
|
|
128
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field enums is unset!') unless @enums
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
::Thrift::Struct.generate_accessors self
|
|
132
|
+
::Thrift.register_struct_type self
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/service_definition/service_definition_types'
|
|
9
|
+
|
|
10
|
+
module Thrift
|
|
11
|
+
module Types
|
|
12
|
+
module Service_definition
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/thrift/types/core/core_types'
|
|
9
|
+
require 'thrift/types/annotation_definition/annotation_definition_types'
|
|
10
|
+
require 'thrift/types/type_definition/type_definition_types'
|
|
11
|
+
require 'thrift/types/struct_definition/struct_definition_types'
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
module Thrift
|
|
15
|
+
module Types
|
|
16
|
+
module Service_definition
|
|
17
|
+
class FunctionDefinition; end
|
|
18
|
+
|
|
19
|
+
class ServiceDefinition; end
|
|
20
|
+
|
|
21
|
+
class FunctionDefinition
|
|
22
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
23
|
+
|
|
24
|
+
NAME = 'FunctionDefinition'.freeze
|
|
25
|
+
NAMESPACE = 'types.service_definition'.freeze
|
|
26
|
+
|
|
27
|
+
LEGACY_ANNOTATIONS = {
|
|
28
|
+
}.freeze
|
|
29
|
+
|
|
30
|
+
STRUCTURED_ANNOTATIONS = [
|
|
31
|
+
].freeze
|
|
32
|
+
|
|
33
|
+
THRIFT_FIELD_INDEX_ANNOTATION = 1
|
|
34
|
+
THRIFT_FIELD_INDEX_ARGUMENTS = 2
|
|
35
|
+
THRIFT_FIELD_INDEX_RETURN_TYPE = 3
|
|
36
|
+
THRIFT_FIELD_INDEX_EXCEPTIONS = 4
|
|
37
|
+
THRIFT_FIELD_INDEX_ONEWAY_ = 5
|
|
38
|
+
THRIFT_FIELD_INDEX_SINK_TYPE = 6
|
|
39
|
+
THRIFT_FIELD_INDEX_STREAM_TYPE = 7
|
|
40
|
+
|
|
41
|
+
THRIFT_FIELD_ANNOTATION_LEGACY_ANNOTATIONS = {
|
|
42
|
+
}.freeze
|
|
43
|
+
|
|
44
|
+
THRIFT_FIELD_ANNOTATION_STRUCTURED_ANNOTATIONS = [
|
|
45
|
+
].freeze
|
|
46
|
+
|
|
47
|
+
THRIFT_FIELD_ARGUMENTS_LEGACY_ANNOTATIONS = {
|
|
48
|
+
}.freeze
|
|
49
|
+
|
|
50
|
+
THRIFT_FIELD_ARGUMENTS_STRUCTURED_ANNOTATIONS = [
|
|
51
|
+
].freeze
|
|
52
|
+
|
|
53
|
+
THRIFT_FIELD_RETURN_TYPE_LEGACY_ANNOTATIONS = {
|
|
54
|
+
}.freeze
|
|
55
|
+
|
|
56
|
+
THRIFT_FIELD_RETURN_TYPE_STRUCTURED_ANNOTATIONS = [
|
|
57
|
+
].freeze
|
|
58
|
+
|
|
59
|
+
THRIFT_FIELD_EXCEPTIONS_LEGACY_ANNOTATIONS = {
|
|
60
|
+
}.freeze
|
|
61
|
+
|
|
62
|
+
THRIFT_FIELD_EXCEPTIONS_STRUCTURED_ANNOTATIONS = [
|
|
63
|
+
].freeze
|
|
64
|
+
|
|
65
|
+
THRIFT_FIELD_ONEWAY__LEGACY_ANNOTATIONS = {
|
|
66
|
+
}.freeze
|
|
67
|
+
|
|
68
|
+
THRIFT_FIELD_ONEWAY__STRUCTURED_ANNOTATIONS = [
|
|
69
|
+
].freeze
|
|
70
|
+
|
|
71
|
+
THRIFT_FIELD_SINK_TYPE_LEGACY_ANNOTATIONS = {
|
|
72
|
+
}.freeze
|
|
73
|
+
|
|
74
|
+
THRIFT_FIELD_SINK_TYPE_STRUCTURED_ANNOTATIONS = [
|
|
75
|
+
].freeze
|
|
76
|
+
|
|
77
|
+
THRIFT_FIELD_STREAM_TYPE_LEGACY_ANNOTATIONS = {
|
|
78
|
+
}.freeze
|
|
79
|
+
|
|
80
|
+
THRIFT_FIELD_STREAM_TYPE_STRUCTURED_ANNOTATIONS = [
|
|
81
|
+
].freeze
|
|
82
|
+
|
|
83
|
+
FIELDS = {
|
|
84
|
+
THRIFT_FIELD_INDEX_ANNOTATION => {type: ::Thrift::Types::STRUCT, name: 'annotation', class: ::Thrift::Types::Annotation_definition::AnnotationDefinition, legacy_annotations: THRIFT_FIELD_ANNOTATION_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ANNOTATION_STRUCTURED_ANNOTATIONS},
|
|
85
|
+
THRIFT_FIELD_INDEX_ARGUMENTS => {type: ::Thrift::Types::LIST, name: 'arguments', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Struct_definition::FieldDefinition}, legacy_annotations: THRIFT_FIELD_ARGUMENTS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ARGUMENTS_STRUCTURED_ANNOTATIONS},
|
|
86
|
+
THRIFT_FIELD_INDEX_RETURN_TYPE => {type: ::Thrift::Types::STRUCT, name: 'return_type', class: ::Thrift::Types::Type_definition::TypeDefinition, legacy_annotations: THRIFT_FIELD_RETURN_TYPE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_RETURN_TYPE_STRUCTURED_ANNOTATIONS},
|
|
87
|
+
THRIFT_FIELD_INDEX_EXCEPTIONS => {type: ::Thrift::Types::LIST, name: 'exceptions', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Thrift::Types::Core::Reference}, legacy_annotations: THRIFT_FIELD_EXCEPTIONS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_EXCEPTIONS_STRUCTURED_ANNOTATIONS},
|
|
88
|
+
THRIFT_FIELD_INDEX_ONEWAY_ => {type: ::Thrift::Types::BOOL, name: 'oneway_', legacy_annotations: THRIFT_FIELD_ONEWAY__LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ONEWAY__STRUCTURED_ANNOTATIONS},
|
|
89
|
+
THRIFT_FIELD_INDEX_SINK_TYPE => {type: ::Thrift::Types::STRUCT, name: 'sink_type', class: ::Thrift::Types::Type_definition::TypeDefinition, optional: true, legacy_annotations: THRIFT_FIELD_SINK_TYPE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_SINK_TYPE_STRUCTURED_ANNOTATIONS},
|
|
90
|
+
THRIFT_FIELD_INDEX_STREAM_TYPE => {type: ::Thrift::Types::STRUCT, name: 'stream_type', class: ::Thrift::Types::Type_definition::TypeDefinition, optional: true, legacy_annotations: THRIFT_FIELD_STREAM_TYPE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_STREAM_TYPE_STRUCTURED_ANNOTATIONS}
|
|
91
|
+
}.freeze
|
|
92
|
+
|
|
93
|
+
def struct_fields; FIELDS; end
|
|
94
|
+
|
|
95
|
+
def validate
|
|
96
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field annotation is unset!') unless @annotation
|
|
97
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field arguments is unset!') unless @arguments
|
|
98
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field return_type is unset!') unless @return_type
|
|
99
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field exceptions is unset!') unless @exceptions
|
|
100
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field oneway_ is unset!') if @oneway_.nil?
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
::Thrift::Struct.generate_accessors self
|
|
104
|
+
::Thrift.register_struct_type self
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
class ServiceDefinition
|
|
108
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
|
109
|
+
|
|
110
|
+
NAME = 'ServiceDefinition'.freeze
|
|
111
|
+
NAMESPACE = 'types.service_definition'.freeze
|
|
112
|
+
|
|
113
|
+
LEGACY_ANNOTATIONS = {
|
|
114
|
+
}.freeze
|
|
115
|
+
|
|
116
|
+
STRUCTURED_ANNOTATIONS = [
|
|
117
|
+
].freeze
|
|
118
|
+
|
|
119
|
+
THRIFT_FIELD_INDEX_ANNOTATION = 1
|
|
120
|
+
THRIFT_FIELD_INDEX_EXTENDS_ = 2
|
|
121
|
+
THRIFT_FIELD_INDEX_FUNCTIONS = 3
|
|
122
|
+
|
|
123
|
+
THRIFT_FIELD_ANNOTATION_LEGACY_ANNOTATIONS = {
|
|
124
|
+
}.freeze
|
|
125
|
+
|
|
126
|
+
THRIFT_FIELD_ANNOTATION_STRUCTURED_ANNOTATIONS = [
|
|
127
|
+
].freeze
|
|
128
|
+
|
|
129
|
+
THRIFT_FIELD_EXTENDS__LEGACY_ANNOTATIONS = {
|
|
130
|
+
}.freeze
|
|
131
|
+
|
|
132
|
+
THRIFT_FIELD_EXTENDS__STRUCTURED_ANNOTATIONS = [
|
|
133
|
+
].freeze
|
|
134
|
+
|
|
135
|
+
THRIFT_FIELD_FUNCTIONS_LEGACY_ANNOTATIONS = {
|
|
136
|
+
}.freeze
|
|
137
|
+
|
|
138
|
+
THRIFT_FIELD_FUNCTIONS_STRUCTURED_ANNOTATIONS = [
|
|
139
|
+
].freeze
|
|
140
|
+
|
|
141
|
+
FIELDS = {
|
|
142
|
+
THRIFT_FIELD_INDEX_ANNOTATION => {type: ::Thrift::Types::STRUCT, name: 'annotation', class: ::Thrift::Types::Annotation_definition::AnnotationDefinition, legacy_annotations: THRIFT_FIELD_ANNOTATION_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_ANNOTATION_STRUCTURED_ANNOTATIONS},
|
|
143
|
+
THRIFT_FIELD_INDEX_EXTENDS_ => {type: ::Thrift::Types::STRUCT, name: 'extends_', class: ::Thrift::Thrift::Types::Core::Reference, optional: true, legacy_annotations: THRIFT_FIELD_EXTENDS__LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_EXTENDS__STRUCTURED_ANNOTATIONS},
|
|
144
|
+
THRIFT_FIELD_INDEX_FUNCTIONS => {type: ::Thrift::Types::LIST, name: 'functions', element: {type: ::Thrift::Types::STRUCT, class: ::Thrift::Types::Service_definition::FunctionDefinition}, legacy_annotations: THRIFT_FIELD_FUNCTIONS_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_FIELD_FUNCTIONS_STRUCTURED_ANNOTATIONS}
|
|
145
|
+
}.freeze
|
|
146
|
+
|
|
147
|
+
def struct_fields; FIELDS; end
|
|
148
|
+
|
|
149
|
+
def validate
|
|
150
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field annotation is unset!') unless @annotation
|
|
151
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field functions is unset!') unless @functions
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
::Thrift::Struct.generate_accessors self
|
|
155
|
+
::Thrift.register_struct_type self
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Autogenerated by Thrift Compiler (2.7.0-upfluence)
|
|
3
|
+
#
|
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
require 'thrift'
|
|
8
|
+
require 'thrift/types/struct_definition/struct_definition_types'
|
|
9
|
+
|
|
10
|
+
module Thrift
|
|
11
|
+
module Types
|
|
12
|
+
module Struct_definition
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|