blob: 9f54c3a5ee4399e0f1351742b97150a7e6875f62 [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',
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070023 serialized_pb=_b('\n\x0cschema.proto\x12\x06schema\x1a\x1cgoogle/api/annotations.proto\"A\n\tProtoFile\x12\x11\n\tfile_name\x18\x01 \x01(\t\x12\r\n\x05proto\x18\x02 \x01(\t\x12\x12\n\ndescriptor\x18\x03 \x01(\x0c\",\n\x07Schemas\x12!\n\x06protos\x18\x01 \x03(\x0b\x32\x11.schema.ProtoFile\"\r\n\x0bNullMessage2S\n\rSchemaService\x12\x42\n\tGetSchema\x12\x13.schema.NullMessage\x1a\x0f.schema.Schemas\"\x0f\x82\xd3\xe4\x93\x02\t\x12\x07/schemab\x06proto3')
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070024 ,
25 dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,])
26_sym_db.RegisterFileDescriptor(DESCRIPTOR)
27
28
29
30
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070031_PROTOFILE = _descriptor.Descriptor(
32 name='ProtoFile',
33 full_name='schema.ProtoFile',
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070034 filename=None,
35 file=DESCRIPTOR,
36 containing_type=None,
37 fields=[
38 _descriptor.FieldDescriptor(
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070039 name='file_name', full_name='schema.ProtoFile.file_name', index=0,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070040 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(
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070046 name='proto', full_name='schema.ProtoFile.proto', index=1,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070047 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),
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070052 _descriptor.FieldDescriptor(
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070053 name='descriptor', full_name='schema.ProtoFile.descriptor', index=2,
54 number=3, type=12, cpp_type=9, label=1,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070055 has_default_value=False, default_value=_b(""),
56 message_type=None, enum_type=None, containing_type=None,
57 is_extension=False, extension_scope=None,
58 options=None),
59 ],
60 extensions=[
61 ],
62 nested_types=[],
63 enum_types=[
64 ],
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070065 options=None,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070066 is_extendable=False,
67 syntax='proto3',
68 extension_ranges=[],
69 oneofs=[
70 ],
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070071 serialized_start=54,
72 serialized_end=119,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070073)
74
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070075
76_SCHEMAS = _descriptor.Descriptor(
77 name='Schemas',
78 full_name='schema.Schemas',
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070079 filename=None,
80 file=DESCRIPTOR,
81 containing_type=None,
82 fields=[
83 _descriptor.FieldDescriptor(
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070084 name='protos', full_name='schema.Schemas.protos', index=0,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070085 number=1, type=11, cpp_type=10, label=3,
86 has_default_value=False, default_value=[],
87 message_type=None, enum_type=None, containing_type=None,
88 is_extension=False, extension_scope=None,
89 options=None),
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070090 ],
91 extensions=[
92 ],
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -070093 nested_types=[],
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070094 enum_types=[
95 ],
96 options=None,
97 is_extendable=False,
98 syntax='proto3',
99 extension_ranges=[],
100 oneofs=[
101 ],
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700102 serialized_start=121,
103 serialized_end=165,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700104)
105
106
107_NULLMESSAGE = _descriptor.Descriptor(
108 name='NullMessage',
109 full_name='schema.NullMessage',
110 filename=None,
111 file=DESCRIPTOR,
112 containing_type=None,
113 fields=[
114 ],
115 extensions=[
116 ],
117 nested_types=[],
118 enum_types=[
119 ],
120 options=None,
121 is_extendable=False,
122 syntax='proto3',
123 extension_ranges=[],
124 oneofs=[
125 ],
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700126 serialized_start=167,
127 serialized_end=180,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700128)
129
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700130_SCHEMAS.fields_by_name['protos'].message_type = _PROTOFILE
131DESCRIPTOR.message_types_by_name['ProtoFile'] = _PROTOFILE
132DESCRIPTOR.message_types_by_name['Schemas'] = _SCHEMAS
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700133DESCRIPTOR.message_types_by_name['NullMessage'] = _NULLMESSAGE
134
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700135ProtoFile = _reflection.GeneratedProtocolMessageType('ProtoFile', (_message.Message,), dict(
136 DESCRIPTOR = _PROTOFILE,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700137 __module__ = 'schema_pb2'
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700138 # @@protoc_insertion_point(class_scope:schema.ProtoFile)
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700139 ))
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700140_sym_db.RegisterMessage(ProtoFile)
141
142Schemas = _reflection.GeneratedProtocolMessageType('Schemas', (_message.Message,), dict(
143 DESCRIPTOR = _SCHEMAS,
144 __module__ = 'schema_pb2'
145 # @@protoc_insertion_point(class_scope:schema.Schemas)
146 ))
147_sym_db.RegisterMessage(Schemas)
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700148
149NullMessage = _reflection.GeneratedProtocolMessageType('NullMessage', (_message.Message,), dict(
150 DESCRIPTOR = _NULLMESSAGE,
151 __module__ = 'schema_pb2'
152 # @@protoc_insertion_point(class_scope:schema.NullMessage)
153 ))
154_sym_db.RegisterMessage(NullMessage)
155
156
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700157import grpc
158from grpc.beta import implementations as beta_implementations
159from grpc.beta import interfaces as beta_interfaces
160from grpc.framework.common import cardinality
161from grpc.framework.interfaces.face import utilities as face_utilities
162
163
164class SchemaServiceStub(object):
165 """Schema services
166 """
167
168 def __init__(self, channel):
169 """Constructor.
170
171 Args:
172 channel: A grpc.Channel.
173 """
174 self.GetSchema = channel.unary_unary(
175 '/schema.SchemaService/GetSchema',
176 request_serializer=NullMessage.SerializeToString,
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700177 response_deserializer=Schemas.FromString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700178 )
179
180
181class SchemaServiceServicer(object):
182 """Schema services
183 """
184
185 def GetSchema(self, request, context):
186 """Return active grpc schemas
187 """
188 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
189 context.set_details('Method not implemented!')
190 raise NotImplementedError('Method not implemented!')
191
192
193def add_SchemaServiceServicer_to_server(servicer, server):
194 rpc_method_handlers = {
195 'GetSchema': grpc.unary_unary_rpc_method_handler(
196 servicer.GetSchema,
197 request_deserializer=NullMessage.FromString,
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700198 response_serializer=Schemas.SerializeToString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700199 ),
200 }
201 generic_handler = grpc.method_handlers_generic_handler(
202 'schema.SchemaService', rpc_method_handlers)
203 server.add_generic_rpc_handlers((generic_handler,))
204
205
206class BetaSchemaServiceServicer(object):
207 """Schema services
208 """
209 def GetSchema(self, request, context):
210 """Return active grpc schemas
211 """
212 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
213
214
215class BetaSchemaServiceStub(object):
216 """Schema services
217 """
218 def GetSchema(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
219 """Return active grpc schemas
220 """
221 raise NotImplementedError()
222 GetSchema.future = None
223
224
225def beta_create_SchemaService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
226 request_deserializers = {
227 ('schema.SchemaService', 'GetSchema'): NullMessage.FromString,
228 }
229 response_serializers = {
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700230 ('schema.SchemaService', 'GetSchema'): Schemas.SerializeToString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700231 }
232 method_implementations = {
233 ('schema.SchemaService', 'GetSchema'): face_utilities.unary_unary_inline(servicer.GetSchema),
234 }
235 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)
236 return beta_implementations.server(method_implementations, options=server_options)
237
238
239def beta_create_SchemaService_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
240 request_serializers = {
241 ('schema.SchemaService', 'GetSchema'): NullMessage.SerializeToString,
242 }
243 response_deserializers = {
Zsolt Haraszti2bdb6b32016-11-03 16:56:17 -0700244 ('schema.SchemaService', 'GetSchema'): Schemas.FromString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700245 }
246 cardinalities = {
247 'GetSchema': cardinality.Cardinality.UNARY_UNARY,
248 }
249 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)
250 return beta_implementations.dynamic_stub(channel, 'schema.SchemaService', cardinalities, options=stub_options)
251# @@protoc_insertion_point(module_scope)