python-grpc/events_pb2.py

90 lines
4.5 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: events.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0c\x65vents.proto\x12\x06\x65vents\x1a\x1cgoogle/protobuf/struct.proto\"q\n\x0b\x45ventCreate\x12\r\n\x05\x45vent\x18\x01 \x01(\t\x12\x0e\n\x06Server\x18\x02 \x01(\t\x12\x0e\n\x06GameID\x18\x03 \x01(\x05\x12\x0c\n\x04\x44\x61te\x18\x04 \x01(\x03\x12%\n\x04\x44\x61ta\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\"{\n\tEventItem\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\r\n\x05\x45vent\x18\x02 \x01(\t\x12\x0e\n\x06Server\x18\x03 \x01(\t\x12\x0e\n\x06GameID\x18\x04 \x01(\x05\x12\x0c\n\x04\x44\x61te\x18\x05 \x01(\x03\x12%\n\x04\x44\x61ta\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\"Q\n\rLatestRequest\x12\x13\n\x06LastID\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12 \n\x04Page\x18\x02 \x01(\x0b\x32\x12.events.PaginationB\t\n\x07_LastID\"*\n\nPagination\x12\x0c\n\x04Size\x18\x01 \x01(\x05\x12\x0e\n\x06Number\x18\x02 \x01(\x05\"3\n\x0eLatestResponse\x12!\n\x06\x45vents\x18\x01 \x03(\x0b\x32\x11.events.EventItem\"\x0e\n\x0cNullResponse2\xb2\x01\n\rEventsService\x12\x37\n\x06Latest\x12\x15.events.LatestRequest\x1a\x16.events.LatestResponse\x12\x33\n\x06\x43reate\x12\x13.events.EventCreate\x1a\x14.events.NullResponse\x12\x33\n\x05\x43lean\x12\x14.events.NullResponse\x1a\x14.events.NullResponseB/Z-git.itzana.me/strafesnet/protobufs/rpc/eventsb\x06proto3')
_EVENTCREATE = DESCRIPTOR.message_types_by_name['EventCreate']
_EVENTITEM = DESCRIPTOR.message_types_by_name['EventItem']
_LATESTREQUEST = DESCRIPTOR.message_types_by_name['LatestRequest']
_PAGINATION = DESCRIPTOR.message_types_by_name['Pagination']
_LATESTRESPONSE = DESCRIPTOR.message_types_by_name['LatestResponse']
_NULLRESPONSE = DESCRIPTOR.message_types_by_name['NullResponse']
EventCreate = _reflection.GeneratedProtocolMessageType('EventCreate', (_message.Message,), {
'DESCRIPTOR' : _EVENTCREATE,
'__module__' : 'events_pb2'
# @@protoc_insertion_point(class_scope:events.EventCreate)
})
_sym_db.RegisterMessage(EventCreate)
EventItem = _reflection.GeneratedProtocolMessageType('EventItem', (_message.Message,), {
'DESCRIPTOR' : _EVENTITEM,
'__module__' : 'events_pb2'
# @@protoc_insertion_point(class_scope:events.EventItem)
})
_sym_db.RegisterMessage(EventItem)
LatestRequest = _reflection.GeneratedProtocolMessageType('LatestRequest', (_message.Message,), {
'DESCRIPTOR' : _LATESTREQUEST,
'__module__' : 'events_pb2'
# @@protoc_insertion_point(class_scope:events.LatestRequest)
})
_sym_db.RegisterMessage(LatestRequest)
Pagination = _reflection.GeneratedProtocolMessageType('Pagination', (_message.Message,), {
'DESCRIPTOR' : _PAGINATION,
'__module__' : 'events_pb2'
# @@protoc_insertion_point(class_scope:events.Pagination)
})
_sym_db.RegisterMessage(Pagination)
LatestResponse = _reflection.GeneratedProtocolMessageType('LatestResponse', (_message.Message,), {
'DESCRIPTOR' : _LATESTRESPONSE,
'__module__' : 'events_pb2'
# @@protoc_insertion_point(class_scope:events.LatestResponse)
})
_sym_db.RegisterMessage(LatestResponse)
NullResponse = _reflection.GeneratedProtocolMessageType('NullResponse', (_message.Message,), {
'DESCRIPTOR' : _NULLRESPONSE,
'__module__' : 'events_pb2'
# @@protoc_insertion_point(class_scope:events.NullResponse)
})
_sym_db.RegisterMessage(NullResponse)
_EVENTSSERVICE = DESCRIPTOR.services_by_name['EventsService']
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'Z-git.itzana.me/strafesnet/protobufs/rpc/events'
_EVENTCREATE._serialized_start=54
_EVENTCREATE._serialized_end=167
_EVENTITEM._serialized_start=169
_EVENTITEM._serialized_end=292
_LATESTREQUEST._serialized_start=294
_LATESTREQUEST._serialized_end=375
_PAGINATION._serialized_start=377
_PAGINATION._serialized_end=419
_LATESTRESPONSE._serialized_start=421
_LATESTRESPONSE._serialized_end=472
_NULLRESPONSE._serialized_start=474
_NULLRESPONSE._serialized_end=488
_EVENTSSERVICE._serialized_start=491
_EVENTSSERVICE._serialized_end=669
# @@protoc_insertion_point(module_scope)