Commit 3eb03b8d authored by Benjamin's avatar Benjamin
Browse files

black format

parent 2cf5f974
......@@ -2,4 +2,4 @@ from .arenas_configurations_proto_pb2 import *
from .arena_configuration_proto_pb2 import *
from .items_to_spawn_proto_pb2 import *
from .vector_proto_pb2 import *
from .__init__ import *
\ No newline at end of file
from .__init__ import *
......@@ -2,94 +2,151 @@
# source: animalai/communicator_objects/arena_configuration_proto.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from animalai.communicator_objects import items_to_spawn_proto_pb2 as animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2
from animalai.communicator_objects import (
items_to_spawn_proto_pb2 as animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2,
)
DESCRIPTOR = _descriptor.FileDescriptor(
name='animalai/communicator_objects/arena_configuration_proto.proto',
package='communicator_objects',
syntax='proto3',
serialized_pb=_b('\n=animalai/communicator_objects/arena_configuration_proto.proto\x12\x14\x63ommunicator_objects\x1a\x38\x61nimalai/communicator_objects/items_to_spawn_proto.proto\"\x81\x01\n\x17\x41renaConfigurationProto\x12\t\n\x01t\x18\x01 \x01(\x05\x12\x11\n\tpass_mark\x18\x02 \x01(\x02\x12\x35\n\x05items\x18\x03 \x03(\x0b\x32&.communicator_objects.ItemToSpawnProto\x12\x11\n\tblackouts\x18\x04 \x03(\x05\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3')
,
dependencies=[animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2.DESCRIPTOR,])
name="animalai/communicator_objects/arena_configuration_proto.proto",
package="communicator_objects",
syntax="proto3",
serialized_pb=_b(
'\n=animalai/communicator_objects/arena_configuration_proto.proto\x12\x14\x63ommunicator_objects\x1a\x38\x61nimalai/communicator_objects/items_to_spawn_proto.proto"\x81\x01\n\x17\x41renaConfigurationProto\x12\t\n\x01t\x18\x01 \x01(\x05\x12\x11\n\tpass_mark\x18\x02 \x01(\x02\x12\x35\n\x05items\x18\x03 \x03(\x0b\x32&.communicator_objects.ItemToSpawnProto\x12\x11\n\tblackouts\x18\x04 \x03(\x05\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3'
),
dependencies=[
animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2.DESCRIPTOR,
],
)
_ARENACONFIGURATIONPROTO = _descriptor.Descriptor(
name='ArenaConfigurationProto',
full_name='communicator_objects.ArenaConfigurationProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='t', full_name='communicator_objects.ArenaConfigurationProto.t', index=0,
number=1, type=5, cpp_type=1, 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, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='pass_mark', full_name='communicator_objects.ArenaConfigurationProto.pass_mark', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='items', full_name='communicator_objects.ArenaConfigurationProto.items', index=2,
number=3, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='blackouts', full_name='communicator_objects.ArenaConfigurationProto.blackouts', index=3,
number=4, type=5, cpp_type=1, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=146,
serialized_end=275,
name="ArenaConfigurationProto",
full_name="communicator_objects.ArenaConfigurationProto",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="t",
full_name="communicator_objects.ArenaConfigurationProto.t",
index=0,
number=1,
type=5,
cpp_type=1,
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,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="pass_mark",
full_name="communicator_objects.ArenaConfigurationProto.pass_mark",
index=1,
number=2,
type=2,
cpp_type=6,
label=1,
has_default_value=False,
default_value=float(0),
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="items",
full_name="communicator_objects.ArenaConfigurationProto.items",
index=2,
number=3,
type=11,
cpp_type=10,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="blackouts",
full_name="communicator_objects.ArenaConfigurationProto.blackouts",
index=3,
number=4,
type=5,
cpp_type=1,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=146,
serialized_end=275,
)
_ARENACONFIGURATIONPROTO.fields_by_name['items'].message_type = animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2._ITEMTOSPAWNPROTO
DESCRIPTOR.message_types_by_name['ArenaConfigurationProto'] = _ARENACONFIGURATIONPROTO
_ARENACONFIGURATIONPROTO.fields_by_name[
"items"
].message_type = (
animalai_dot_communicator__objects_dot_items__to__spawn__proto__pb2._ITEMTOSPAWNPROTO
)
DESCRIPTOR.message_types_by_name["ArenaConfigurationProto"] = _ARENACONFIGURATIONPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
ArenaConfigurationProto = _reflection.GeneratedProtocolMessageType('ArenaConfigurationProto', (_message.Message,), dict(
DESCRIPTOR = _ARENACONFIGURATIONPROTO,
__module__ = 'animalai.communicator_objects.arena_configuration_proto_pb2'
# @@protoc_insertion_point(class_scope:communicator_objects.ArenaConfigurationProto)
))
ArenaConfigurationProto = _reflection.GeneratedProtocolMessageType(
"ArenaConfigurationProto",
(_message.Message,),
dict(
DESCRIPTOR=_ARENACONFIGURATIONPROTO,
__module__="animalai.communicator_objects.arena_configuration_proto_pb2"
# @@protoc_insertion_point(class_scope:communicator_objects.ArenaConfigurationProto)
),
)
_sym_db.RegisterMessage(ArenaConfigurationProto)
DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\252\002\021AAIOCommunicators'))
DESCRIPTOR._options = _descriptor._ParseOptions(
descriptor_pb2.FileOptions(), _b("\252\002\021AAIOCommunicators")
)
# @@protoc_insertion_point(module_scope)
......@@ -13,9 +13,7 @@ from google.protobuf.internal.containers import (
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from google.protobuf.message import Message as google___protobuf___message___Message
from typing import (
Iterable as typing___Iterable,
......@@ -23,10 +21,7 @@ from typing import (
Union as typing___Union,
)
from typing_extensions import (
Literal as typing_extensions___Literal,
)
from typing_extensions import Literal as typing_extensions___Literal
builtin___bool = bool
builtin___bytes = bytes
......@@ -36,29 +31,51 @@ if sys.version_info < (3,):
builtin___buffer = buffer
builtin___unicode = unicode
class ArenaConfigurationProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
t = ... # type: builtin___int
pass_mark = ... # type: builtin___float
blackouts = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int]
t = ... # type: builtin___int
pass_mark = ... # type: builtin___float
blackouts = (
...
) # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int]
@property
def items(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto]: ...
def __init__(self,
def items(
self,
) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[
animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto
]: ...
def __init__(
self,
*,
t : typing___Optional[builtin___int] = None,
pass_mark : typing___Optional[builtin___float] = None,
items : typing___Optional[typing___Iterable[animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto]] = None,
blackouts : typing___Optional[typing___Iterable[builtin___int]] = None,
) -> None: ...
t: typing___Optional[builtin___int] = None,
pass_mark: typing___Optional[builtin___float] = None,
items: typing___Optional[
typing___Iterable[
animalai___communicator_objects___items_to_spawn_proto_pb2___ItemToSpawnProto
]
] = None,
blackouts: typing___Optional[typing___Iterable[builtin___int]] = None,
) -> None: ...
if sys.version_info >= (3,):
@classmethod
def FromString(cls, s: builtin___bytes) -> ArenaConfigurationProto: ...
else:
@classmethod
def FromString(cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]) -> ArenaConfigurationProto: ...
def FromString(
cls, s: typing___Union[builtin___bytes, builtin___buffer, builtin___unicode]
) -> ArenaConfigurationProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"blackouts",b"blackouts",u"items",b"items",u"pass_mark",b"pass_mark",u"t",b"t"]) -> None: ...
def ClearField(
self,
field_name: typing_extensions___Literal[
"blackouts",
b"blackouts",
"items",
b"items",
"pass_mark",
b"pass_mark",
"t",
b"t",
],
) -> None: ...
......@@ -2,129 +2,191 @@
# source: animalai/communicator_objects/arenas_configurations_proto.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from animalai.communicator_objects import arena_configuration_proto_pb2 as animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2
from animalai.communicator_objects import (
arena_configuration_proto_pb2 as animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2,
)
DESCRIPTOR = _descriptor.FileDescriptor(
name='animalai/communicator_objects/arenas_configurations_proto.proto',
package='communicator_objects',
syntax='proto3',
serialized_pb=_b('\n?animalai/communicator_objects/arenas_configurations_proto.proto\x12\x14\x63ommunicator_objects\x1a=animalai/communicator_objects/arena_configuration_proto.proto\"\xd4\x01\n\x19\x41renasConfigurationsProto\x12K\n\x06\x61renas\x18\x01 \x03(\x0b\x32;.communicator_objects.ArenasConfigurationsProto.ArenasEntry\x12\x0c\n\x04seed\x18\x02 \x01(\x05\x1a\\\n\x0b\x41renasEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.communicator_objects.ArenaConfigurationProto:\x02\x38\x01\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3')
,
dependencies=[animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2.DESCRIPTOR,])
name="animalai/communicator_objects/arenas_configurations_proto.proto",
package="communicator_objects",
syntax="proto3",
serialized_pb=_b(
'\n?animalai/communicator_objects/arenas_configurations_proto.proto\x12\x14\x63ommunicator_objects\x1a=animalai/communicator_objects/arena_configuration_proto.proto"\xd4\x01\n\x19\x41renasConfigurationsProto\x12K\n\x06\x61renas\x18\x01 \x03(\x0b\x32;.communicator_objects.ArenasConfigurationsProto.ArenasEntry\x12\x0c\n\x04seed\x18\x02 \x01(\x05\x1a\\\n\x0b\x41renasEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12<\n\x05value\x18\x02 \x01(\x0b\x32-.communicator_objects.ArenaConfigurationProto:\x02\x38\x01\x42\x14\xaa\x02\x11\x41\x41IOCommunicatorsb\x06proto3'
),
dependencies=[
animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2.DESCRIPTOR,
],
)
_ARENASCONFIGURATIONSPROTO_ARENASENTRY = _descriptor.Descriptor(
name='ArenasEntry',
full_name='communicator_objects.ArenasConfigurationsProto.ArenasEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='communicator_objects.ArenasConfigurationsProto.ArenasEntry.key', index=0,
number=1, type=5, cpp_type=1, 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, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='communicator_objects.ArenasConfigurationsProto.ArenasEntry.value', index=1,
number=2, 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, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=273,
serialized_end=365,
name="ArenasEntry",
full_name="communicator_objects.ArenasConfigurationsProto.ArenasEntry",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="key",
full_name="communicator_objects.ArenasConfigurationsProto.ArenasEntry.key",
index=0,
number=1,
type=5,
cpp_type=1,
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,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="value",
full_name="communicator_objects.ArenasConfigurationsProto.ArenasEntry.value",
index=1,
number=2,
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,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[],
enum_types=[],
options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b("8\001")),
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=273,
serialized_end=365,
)
_ARENASCONFIGURATIONSPROTO = _descriptor.Descriptor(
name='ArenasConfigurationsProto',
full_name='communicator_objects.ArenasConfigurationsProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='arenas', full_name='communicator_objects.ArenasConfigurationsProto.arenas', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='seed', full_name='communicator_objects.ArenasConfigurationsProto.seed', index=1,
number=2, type=5, cpp_type=1, 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, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_ARENASCONFIGURATIONSPROTO_ARENASENTRY, ],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=153,
serialized_end=365,
name="ArenasConfigurationsProto",
full_name="communicator_objects.ArenasConfigurationsProto",
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name="arenas",
full_name="communicator_objects.ArenasConfigurationsProto.arenas",
index=0,
number=1,
type=11,
cpp_type=10,
label=3,
has_default_value=False,
default_value=[],
message_type=None,
enum_type=None,
containing_type=None,
is_extension=False,
extension_scope=None,
options=None,
file=DESCRIPTOR,
),
_descriptor.FieldDescriptor(
name="seed",
full_name="communicator_objects.ArenasConfigurationsProto.seed",
index=1,
number=2,
type=5,
cpp_type=1,
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,
file=DESCRIPTOR,
),
],
extensions=[],
nested_types=[_ARENASCONFIGURATIONSPROTO_ARENASENTRY,],
enum_types=[],
options=None,
is_extendable=False,
syntax="proto3",
extension_ranges=[],
oneofs=[],
serialized_start=153,
serialized_end=365,
)
_ARENASCONFIGURATIONSPROTO_ARENASENTRY.fields_by_name['value'].message_type = animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2._ARENACONFIGURATIONPROTO
_ARENASCONFIGURATIONSPROTO_ARENASENTRY.fields_by_name[
"value"
].message_type = (
animalai_dot_communicator__objects_dot_arena__configuration__proto__pb2._ARENACONFIGURATIONPROTO
)
_ARENASCONFIGURATIONSPROTO_ARENASENTRY.containing_type = _ARENASCONFIGURATIONSPROTO
_ARENASCONFIGURATIONSPROTO.fields_by_name['arenas'].message_type = _ARENASCONFIGURATIONSPROTO_ARENASENTRY
DESCRIPTOR.message_types_by_name['ArenasConfigurationsProto'] = _ARENASCONFIGURATIONSPROTO
_ARENASCONFIGURATIONSPROTO.fields_by_name[
"arenas"
].message_type = _ARENASCONFIGURATIONSPROTO_ARENASENTRY
DESCRIPTOR.message_types_by_name[
"ArenasConfigurationsProto"
] = _ARENASCONFIGURATIONSPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
ArenasConfigurationsProto = _reflection.GeneratedProtocolMessageType('ArenasConfigurationsProto', (_message.Message,), dict(
ArenasEntry = _reflection.GeneratedProtocolMessageType('ArenasEntry', (_message.Message,), dict(
DESCRIPTOR = _ARENASCONFIGURATIONSPROTO_ARENASENTRY,
__module__ = 'animalai.communicator_objects.arenas_configurations_proto_pb2'
# @@protoc_insertion_point(class_scope:communicator_objects.ArenasConfigurationsProto.ArenasEntry)
))
,
DESCRIPTOR = _ARENASCONFIGURATIONSPROTO,
__module__ = 'animalai.communicator_objects.arenas_configurations_proto_pb2'
# @@protoc_insertion_point(class_scope:communicator_objects.ArenasConfigurationsProto)
))
ArenasConfigurationsProto = _reflection.GeneratedProtocolMessageType(
"ArenasConfigurationsProto",
(_message.Message,),
dict(
ArenasEntry=_reflection.GeneratedProtocolMessageType(
"ArenasEntry",
(_message.Message,),