python-grpc/users_pb2.py

119 lines
5.7 KiB
Python

# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: users.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()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0busers.proto\x12\x05users\"\x14\n\x06IdList\x12\n\n\x02ID\x18\x01 \x03(\x03\"\x17\n\tIdMessage\x12\n\n\x02ID\x18\x01 \x01(\x03\"=\n\x0cUserResponse\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x10\n\x08Username\x18\x02 \x01(\t\x12\x0f\n\x07StateID\x18\x03 \x01(\x05\"_\n\x0bUserRequest\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x15\n\x08Username\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07StateID\x18\x03 \x01(\x05H\x01\x88\x01\x01\x42\x0b\n\t_UsernameB\n\n\x08_StateID\"j\n\nUserFilter\x12\x0f\n\x02ID\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x15\n\x08Username\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x07StateID\x18\x03 \x01(\x05H\x02\x88\x01\x01\x42\x05\n\x03_IDB\x0b\n\t_UsernameB\n\n\x08_StateID\".\n\x08UserList\x12\"\n\x05Users\x18\x01 \x03(\x0b\x32\x13.users.UserResponse\"Q\n\x0bListRequest\x12!\n\x06\x46ilter\x18\x01 \x01(\x0b\x32\x11.users.UserFilter\x12\x1f\n\x04Page\x18\x02 \x01(\x0b\x32\x11.users.Pagination\"*\n\nPagination\x12\x0c\n\x04Size\x18\x01 \x01(\x05\x12\x0e\n\x06Number\x18\x02 \x01(\x05\"\x0e\n\x0cNullResponse2\xa8\x02\n\x0cUsersService\x12,\n\x03Get\x12\x10.users.IdMessage\x1a\x13.users.UserResponse\x12)\n\x07GetList\x12\r.users.IdList\x1a\x0f.users.UserList\x12\x31\n\x06Update\x12\x12.users.UserRequest\x1a\x13.users.NullResponse\x12.\n\x06\x43reate\x12\x12.users.UserRequest\x1a\x10.users.IdMessage\x12/\n\x06\x44\x65lete\x12\x10.users.IdMessage\x1a\x13.users.NullResponse\x12+\n\x04List\x12\x12.users.ListRequest\x1a\x0f.users.UserListB\x0fZ\rpkg/rpc/usersb\x06proto3')
_IDLIST = DESCRIPTOR.message_types_by_name['IdList']
_IDMESSAGE = DESCRIPTOR.message_types_by_name['IdMessage']
_USERRESPONSE = DESCRIPTOR.message_types_by_name['UserResponse']
_USERREQUEST = DESCRIPTOR.message_types_by_name['UserRequest']
_USERFILTER = DESCRIPTOR.message_types_by_name['UserFilter']
_USERLIST = DESCRIPTOR.message_types_by_name['UserList']
_LISTREQUEST = DESCRIPTOR.message_types_by_name['ListRequest']
_PAGINATION = DESCRIPTOR.message_types_by_name['Pagination']
_NULLRESPONSE = DESCRIPTOR.message_types_by_name['NullResponse']
IdList = _reflection.GeneratedProtocolMessageType('IdList', (_message.Message,), {
'DESCRIPTOR' : _IDLIST,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.IdList)
})
_sym_db.RegisterMessage(IdList)
IdMessage = _reflection.GeneratedProtocolMessageType('IdMessage', (_message.Message,), {
'DESCRIPTOR' : _IDMESSAGE,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.IdMessage)
})
_sym_db.RegisterMessage(IdMessage)
UserResponse = _reflection.GeneratedProtocolMessageType('UserResponse', (_message.Message,), {
'DESCRIPTOR' : _USERRESPONSE,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.UserResponse)
})
_sym_db.RegisterMessage(UserResponse)
UserRequest = _reflection.GeneratedProtocolMessageType('UserRequest', (_message.Message,), {
'DESCRIPTOR' : _USERREQUEST,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.UserRequest)
})
_sym_db.RegisterMessage(UserRequest)
UserFilter = _reflection.GeneratedProtocolMessageType('UserFilter', (_message.Message,), {
'DESCRIPTOR' : _USERFILTER,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.UserFilter)
})
_sym_db.RegisterMessage(UserFilter)
UserList = _reflection.GeneratedProtocolMessageType('UserList', (_message.Message,), {
'DESCRIPTOR' : _USERLIST,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.UserList)
})
_sym_db.RegisterMessage(UserList)
ListRequest = _reflection.GeneratedProtocolMessageType('ListRequest', (_message.Message,), {
'DESCRIPTOR' : _LISTREQUEST,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.ListRequest)
})
_sym_db.RegisterMessage(ListRequest)
Pagination = _reflection.GeneratedProtocolMessageType('Pagination', (_message.Message,), {
'DESCRIPTOR' : _PAGINATION,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.Pagination)
})
_sym_db.RegisterMessage(Pagination)
NullResponse = _reflection.GeneratedProtocolMessageType('NullResponse', (_message.Message,), {
'DESCRIPTOR' : _NULLRESPONSE,
'__module__' : 'users_pb2'
# @@protoc_insertion_point(class_scope:users.NullResponse)
})
_sym_db.RegisterMessage(NullResponse)
_USERSSERVICE = DESCRIPTOR.services_by_name['UsersService']
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
DESCRIPTOR._serialized_options = b'Z\rpkg/rpc/users'
_IDLIST._serialized_start=22
_IDLIST._serialized_end=42
_IDMESSAGE._serialized_start=44
_IDMESSAGE._serialized_end=67
_USERRESPONSE._serialized_start=69
_USERRESPONSE._serialized_end=130
_USERREQUEST._serialized_start=132
_USERREQUEST._serialized_end=227
_USERFILTER._serialized_start=229
_USERFILTER._serialized_end=335
_USERLIST._serialized_start=337
_USERLIST._serialized_end=383
_LISTREQUEST._serialized_start=385
_LISTREQUEST._serialized_end=466
_PAGINATION._serialized_start=468
_PAGINATION._serialized_end=510
_NULLRESPONSE._serialized_start=512
_NULLRESPONSE._serialized_end=526
_USERSSERVICE._serialized_start=529
_USERSSERVICE._serialized_end=825
# @@protoc_insertion_point(module_scope)