from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
import protocolbuffers.Consts_pb2 as Consts_pb2
import protocolbuffers.Social_pb2 as Social_pb2
import protocolbuffers.Exchange_pb2 as Exchange_pb2
DESCRIPTOR = descriptor.FileDescriptor(name='RestApi.proto', package='EA.Sims4.Network', serialized_pb='\n\rRestApi.proto\x12\x10EA.Sims4.Network\x1a\x0cConsts.proto\x1a\x0cSocial.proto\x1a\x0eExchange.proto"\x8f\x02\n\x12RestControlMessage\x12\x12\n\nnucleus_id\x18\x01 \x01(\x04\x12\x0b\n\x03ref\x18\x02 \x01(\x04\x12\x0f\n\x07persona\x18\x03 \x01(\t\x126\n\x06social\x18\x04 \x01(\x0b2&.EA.Sims4.Network.SocialControlMessage\x12:\n\x08exchange\x18\x05 \x01(\x0b2(.EA.Sims4.Network.ExchangeControlMessage\x12=\n\rerror_message\x18\x06 \x01(\x0e2&.EA.Sims4.Network.RestApiErrorMessages\x12\x14\n\x0caccess_token\x18\x07 \x01(\t')
_RESTCONTROLMESSAGE = descriptor.Descriptor(name='RestControlMessage', full_name='EA.Sims4.Network.RestControlMessage', filename=None, file=DESCRIPTOR, containing_type=None, fields=[descriptor.FieldDescriptor(name='nucleus_id', full_name='EA.Sims4.Network.RestControlMessage.nucleus_id', index=0, number=1, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor(name='ref', full_name='EA.Sims4.Network.RestControlMessage.ref', index=1, number=2, type=4, cpp_type=4, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor(name='persona', full_name='EA.Sims4.Network.RestControlMessage.persona', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b''.decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor(name='social', full_name='EA.Sims4.Network.RestControlMessage.social', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor(name='exchange', full_name='EA.Sims4.Network.RestControlMessage.exchange', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor(name='error_message', full_name='EA.Sims4.Network.RestControlMessage.error_message', index=5, number=6, type=14, cpp_type=8, label=1, has_default_value=False, default_value=1, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None), descriptor.FieldDescriptor(name='access_token', full_name='EA.Sims4.Network.RestControlMessage.access_token', index=6, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b''.decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, options=None)], extensions=[], nested_types=[], enum_types=[], options=None, is_extendable=False, extension_ranges=[], serialized_start=80, serialized_end=351)
_RESTCONTROLMESSAGE.fields_by_name['social'].message_type = Social_pb2._SOCIALCONTROLMESSAGE
_RESTCONTROLMESSAGE.fields_by_name['exchange'].message_type = Exchange_pb2._EXCHANGECONTROLMESSAGE
_RESTCONTROLMESSAGE.fields_by_name['error_message'].enum_type = Consts_pb2._RESTAPIERRORMESSAGES
DESCRIPTOR.message_types_by_name['RestControlMessage'] = _RESTCONTROLMESSAGE

class RestControlMessage(message.Message, metaclass=reflection.GeneratedProtocolMessageType):
    DESCRIPTOR = _RESTCONTROLMESSAGE

