blob: f8c5e46e0b116031278e07d5a7cb323049d73eb4 [file] [log] [blame]
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001# Generated by the protocol buffer compiler. DO NOT EDIT!
2# source: schema.proto
3
4import sys
5_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
6from google.protobuf import descriptor as _descriptor
7from google.protobuf import message as _message
8from google.protobuf import reflection as _reflection
9from google.protobuf import symbol_database as _symbol_database
10from google.protobuf import descriptor_pb2
11# @@protoc_insertion_point(imports)
12
13_sym_db = _symbol_database.Default()
14
15
16from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
17
18
19DESCRIPTOR = _descriptor.FileDescriptor(
20 name='schema.proto',
21 package='schema',
22 syntax='proto3',
23 serialized_pb=_b('\n\x0cschema.proto\x12\x06schema\x1a\x1cgoogle/api/annotations.proto\"\xcd\x01\n\x06Schema\x12*\n\x06protos\x18\x01 \x03(\x0b\x32\x1a.schema.Schema.ProtosEntry\x12\x34\n\x0b\x64\x65scriptors\x18\x02 \x03(\x0b\x32\x1f.schema.Schema.DescriptorsEntry\x1a-\n\x0bProtosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x44\x65scriptorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\r\n\x0bNullMessage2R\n\rSchemaService\x12\x41\n\tGetSchema\x12\x13.schema.NullMessage\x1a\x0e.schema.Schema\"\x0f\x82\xd3\xe4\x93\x02\t\x12\x07/schemab\x06proto3')
24 ,
25 dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,])
26_sym_db.RegisterFileDescriptor(DESCRIPTOR)
27
28
29
30
31_SCHEMA_PROTOSENTRY = _descriptor.Descriptor(
32 name='ProtosEntry',
33 full_name='schema.Schema.ProtosEntry',
34 filename=None,
35 file=DESCRIPTOR,
36 containing_type=None,
37 fields=[
38 _descriptor.FieldDescriptor(
39 name='key', full_name='schema.Schema.ProtosEntry.key', index=0,
40 number=1, type=9, cpp_type=9, label=1,
41 has_default_value=False, default_value=_b("").decode('utf-8'),
42 message_type=None, enum_type=None, containing_type=None,
43 is_extension=False, extension_scope=None,
44 options=None),
45 _descriptor.FieldDescriptor(
46 name='value', full_name='schema.Schema.ProtosEntry.value', index=1,
47 number=2, type=9, cpp_type=9, label=1,
48 has_default_value=False, default_value=_b("").decode('utf-8'),
49 message_type=None, enum_type=None, containing_type=None,
50 is_extension=False, extension_scope=None,
51 options=None),
52 ],
53 extensions=[
54 ],
55 nested_types=[],
56 enum_types=[
57 ],
58 options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
59 is_extendable=False,
60 syntax='proto3',
61 extension_ranges=[],
62 oneofs=[
63 ],
64 serialized_start=163,
65 serialized_end=208,
66)
67
68_SCHEMA_DESCRIPTORSENTRY = _descriptor.Descriptor(
69 name='DescriptorsEntry',
70 full_name='schema.Schema.DescriptorsEntry',
71 filename=None,
72 file=DESCRIPTOR,
73 containing_type=None,
74 fields=[
75 _descriptor.FieldDescriptor(
76 name='key', full_name='schema.Schema.DescriptorsEntry.key', index=0,
77 number=1, type=9, cpp_type=9, label=1,
78 has_default_value=False, default_value=_b("").decode('utf-8'),
79 message_type=None, enum_type=None, containing_type=None,
80 is_extension=False, extension_scope=None,
81 options=None),
82 _descriptor.FieldDescriptor(
83 name='value', full_name='schema.Schema.DescriptorsEntry.value', index=1,
84 number=2, type=12, cpp_type=9, label=1,
85 has_default_value=False, default_value=_b(""),
86 message_type=None, enum_type=None, containing_type=None,
87 is_extension=False, extension_scope=None,
88 options=None),
89 ],
90 extensions=[
91 ],
92 nested_types=[],
93 enum_types=[
94 ],
95 options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
96 is_extendable=False,
97 syntax='proto3',
98 extension_ranges=[],
99 oneofs=[
100 ],
101 serialized_start=210,
102 serialized_end=260,
103)
104
105_SCHEMA = _descriptor.Descriptor(
106 name='Schema',
107 full_name='schema.Schema',
108 filename=None,
109 file=DESCRIPTOR,
110 containing_type=None,
111 fields=[
112 _descriptor.FieldDescriptor(
113 name='protos', full_name='schema.Schema.protos', index=0,
114 number=1, type=11, cpp_type=10, label=3,
115 has_default_value=False, default_value=[],
116 message_type=None, enum_type=None, containing_type=None,
117 is_extension=False, extension_scope=None,
118 options=None),
119 _descriptor.FieldDescriptor(
120 name='descriptors', full_name='schema.Schema.descriptors', index=1,
121 number=2, type=11, cpp_type=10, label=3,
122 has_default_value=False, default_value=[],
123 message_type=None, enum_type=None, containing_type=None,
124 is_extension=False, extension_scope=None,
125 options=None),
126 ],
127 extensions=[
128 ],
129 nested_types=[_SCHEMA_PROTOSENTRY, _SCHEMA_DESCRIPTORSENTRY, ],
130 enum_types=[
131 ],
132 options=None,
133 is_extendable=False,
134 syntax='proto3',
135 extension_ranges=[],
136 oneofs=[
137 ],
138 serialized_start=55,
139 serialized_end=260,
140)
141
142
143_NULLMESSAGE = _descriptor.Descriptor(
144 name='NullMessage',
145 full_name='schema.NullMessage',
146 filename=None,
147 file=DESCRIPTOR,
148 containing_type=None,
149 fields=[
150 ],
151 extensions=[
152 ],
153 nested_types=[],
154 enum_types=[
155 ],
156 options=None,
157 is_extendable=False,
158 syntax='proto3',
159 extension_ranges=[],
160 oneofs=[
161 ],
162 serialized_start=262,
163 serialized_end=275,
164)
165
166_SCHEMA_PROTOSENTRY.containing_type = _SCHEMA
167_SCHEMA_DESCRIPTORSENTRY.containing_type = _SCHEMA
168_SCHEMA.fields_by_name['protos'].message_type = _SCHEMA_PROTOSENTRY
169_SCHEMA.fields_by_name['descriptors'].message_type = _SCHEMA_DESCRIPTORSENTRY
170DESCRIPTOR.message_types_by_name['Schema'] = _SCHEMA
171DESCRIPTOR.message_types_by_name['NullMessage'] = _NULLMESSAGE
172
173Schema = _reflection.GeneratedProtocolMessageType('Schema', (_message.Message,), dict(
174
175 ProtosEntry = _reflection.GeneratedProtocolMessageType('ProtosEntry', (_message.Message,), dict(
176 DESCRIPTOR = _SCHEMA_PROTOSENTRY,
177 __module__ = 'schema_pb2'
178 # @@protoc_insertion_point(class_scope:schema.Schema.ProtosEntry)
179 ))
180 ,
181
182 DescriptorsEntry = _reflection.GeneratedProtocolMessageType('DescriptorsEntry', (_message.Message,), dict(
183 DESCRIPTOR = _SCHEMA_DESCRIPTORSENTRY,
184 __module__ = 'schema_pb2'
185 # @@protoc_insertion_point(class_scope:schema.Schema.DescriptorsEntry)
186 ))
187 ,
188 DESCRIPTOR = _SCHEMA,
189 __module__ = 'schema_pb2'
190 # @@protoc_insertion_point(class_scope:schema.Schema)
191 ))
192_sym_db.RegisterMessage(Schema)
193_sym_db.RegisterMessage(Schema.ProtosEntry)
194_sym_db.RegisterMessage(Schema.DescriptorsEntry)
195
196NullMessage = _reflection.GeneratedProtocolMessageType('NullMessage', (_message.Message,), dict(
197 DESCRIPTOR = _NULLMESSAGE,
198 __module__ = 'schema_pb2'
199 # @@protoc_insertion_point(class_scope:schema.NullMessage)
200 ))
201_sym_db.RegisterMessage(NullMessage)
202
203
204_SCHEMA_PROTOSENTRY.has_options = True
205_SCHEMA_PROTOSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
206_SCHEMA_DESCRIPTORSENTRY.has_options = True
207_SCHEMA_DESCRIPTORSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
208import grpc
209from grpc.beta import implementations as beta_implementations
210from grpc.beta import interfaces as beta_interfaces
211from grpc.framework.common import cardinality
212from grpc.framework.interfaces.face import utilities as face_utilities
213
214
215class SchemaServiceStub(object):
216 """Schema services
217 """
218
219 def __init__(self, channel):
220 """Constructor.
221
222 Args:
223 channel: A grpc.Channel.
224 """
225 self.GetSchema = channel.unary_unary(
226 '/schema.SchemaService/GetSchema',
227 request_serializer=NullMessage.SerializeToString,
228 response_deserializer=Schema.FromString,
229 )
230
231
232class SchemaServiceServicer(object):
233 """Schema services
234 """
235
236 def GetSchema(self, request, context):
237 """Return active grpc schemas
238 """
239 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
240 context.set_details('Method not implemented!')
241 raise NotImplementedError('Method not implemented!')
242
243
244def add_SchemaServiceServicer_to_server(servicer, server):
245 rpc_method_handlers = {
246 'GetSchema': grpc.unary_unary_rpc_method_handler(
247 servicer.GetSchema,
248 request_deserializer=NullMessage.FromString,
249 response_serializer=Schema.SerializeToString,
250 ),
251 }
252 generic_handler = grpc.method_handlers_generic_handler(
253 'schema.SchemaService', rpc_method_handlers)
254 server.add_generic_rpc_handlers((generic_handler,))
255
256
257class BetaSchemaServiceServicer(object):
258 """Schema services
259 """
260 def GetSchema(self, request, context):
261 """Return active grpc schemas
262 """
263 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
264
265
266class BetaSchemaServiceStub(object):
267 """Schema services
268 """
269 def GetSchema(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
270 """Return active grpc schemas
271 """
272 raise NotImplementedError()
273 GetSchema.future = None
274
275
276def beta_create_SchemaService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
277 request_deserializers = {
278 ('schema.SchemaService', 'GetSchema'): NullMessage.FromString,
279 }
280 response_serializers = {
281 ('schema.SchemaService', 'GetSchema'): Schema.SerializeToString,
282 }
283 method_implementations = {
284 ('schema.SchemaService', 'GetSchema'): face_utilities.unary_unary_inline(servicer.GetSchema),
285 }
286 server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
287 return beta_implementations.server(method_implementations, options=server_options)
288
289
290def beta_create_SchemaService_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
291 request_serializers = {
292 ('schema.SchemaService', 'GetSchema'): NullMessage.SerializeToString,
293 }
294 response_deserializers = {
295 ('schema.SchemaService', 'GetSchema'): Schema.FromString,
296 }
297 cardinalities = {
298 'GetSchema': cardinality.Cardinality.UNARY_UNARY,
299 }
300 stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
301 return beta_implementations.dynamic_stub(channel, 'schema.SchemaService', cardinalities, options=stub_options)
302# @@protoc_insertion_point(module_scope)