浏览代码

Revert unneeded protobuf changes

/develop/taggedobservations
Ervin Teng 5 年前
当前提交
d1d605ed
共有 19 个文件被更改,包括 262 次插入186 次删除
  1. 17
      ml-agents-envs/mlagents_envs/communicator_objects/agent_action_pb2.pyi
  2. 16
      ml-agents-envs/mlagents_envs/communicator_objects/agent_info_action_pair_pb2.pyi
  3. 23
      ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.pyi
  4. 27
      ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.pyi
  5. 15
      ml-agents-envs/mlagents_envs/communicator_objects/capabilities_pb2.pyi
  6. 39
      ml-agents-envs/mlagents_envs/communicator_objects/command_pb2.pyi
  7. 9
      ml-agents-envs/mlagents_envs/communicator_objects/custom_reset_parameters_pb2.pyi
  8. 23
      ml-agents-envs/mlagents_envs/communicator_objects/demonstration_meta_pb2.pyi
  9. 25
      ml-agents-envs/mlagents_envs/communicator_objects/engine_configuration_pb2.pyi
  10. 17
      ml-agents-envs/mlagents_envs/communicator_objects/header_pb2.pyi
  11. 35
      ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.pyi
  12. 16
      ml-agents-envs/mlagents_envs/communicator_objects/unity_input_pb2.pyi
  13. 16
      ml-agents-envs/mlagents_envs/communicator_objects/unity_message_pb2.pyi
  14. 16
      ml-agents-envs/mlagents_envs/communicator_objects/unity_output_pb2.pyi
  15. 22
      ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.pyi
  16. 24
      ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_output_pb2.pyi
  17. 54
      ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.pyi
  18. 48
      ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.pyi
  19. 6
      ml-agents-envs/mlagents_envs/communicator_objects/unity_to_external_pb2.pyi

17
ml-agents-envs/mlagents_envs/communicator_objects/agent_action_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.containers import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
vector_actions: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float] = ...
value: builtin___float = ...
vector_actions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___float]
value = ... # type: builtin___float
def __init__(self,
*,

def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value",u"vector_actions",b"vector_actions"]) -> None: ...
type___AgentActionProto = AgentActionProto
@classmethod
def FromString(cls, s: builtin___bytes) -> AgentActionProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"value",u"vector_actions"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value",u"vector_actions",b"vector_actions"]) -> None: ...

16
ml-agents-envs/mlagents_envs/communicator_objects/agent_info_action_pair_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
class AgentInfoActionPairProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

agent_info : typing___Optional[mlagents_envs___communicator_objects___agent_info_pb2___AgentInfoProto] = None,
action_info : typing___Optional[mlagents_envs___communicator_objects___agent_action_pb2___AgentActionProto] = None,
) -> None: ...
def HasField(self, field_name: typing_extensions___Literal[u"action_info",b"action_info",u"agent_info",b"agent_info"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"action_info",b"action_info",u"agent_info",b"agent_info"]) -> None: ...
type___AgentInfoActionPairProto = AgentInfoActionPairProto
@classmethod
def FromString(cls, s: builtin___bytes) -> AgentInfoActionPairProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"action_info",u"agent_info"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"action_info",u"agent_info"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"action_info",b"action_info",u"agent_info",b"agent_info"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"action_info",b"action_info",u"agent_info",b"agent_info"]) -> None: ...

23
ml-agents-envs/mlagents_envs/communicator_objects/agent_info_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.containers import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
reward: builtin___float = ...
done: builtin___bool = ...
max_step_reached: builtin___bool = ...
id: builtin___int = ...
action_mask: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___bool] = ...
reward = ... # type: builtin___float
done = ... # type: builtin___bool
max_step_reached = ... # type: builtin___bool
id = ... # type: builtin___int
action_mask = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___bool]
@property
def observations(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[mlagents_envs___communicator_objects___observation_pb2___ObservationProto]: ...

action_mask : typing___Optional[typing___Iterable[builtin___bool]] = None,
observations : typing___Optional[typing___Iterable[mlagents_envs___communicator_objects___observation_pb2___ObservationProto]] = None,
) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"action_mask",b"action_mask",u"done",b"done",u"id",b"id",u"max_step_reached",b"max_step_reached",u"observations",b"observations",u"reward",b"reward"]) -> None: ...
type___AgentInfoProto = AgentInfoProto
@classmethod
def FromString(cls, s: builtin___bytes) -> AgentInfoProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"action_mask",u"done",u"id",u"max_step_reached",u"observations",u"reward"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"action_mask",b"action_mask",u"done",b"done",u"id",b"id",u"max_step_reached",b"max_step_reached",u"observations",b"observations",u"reward",b"reward"]) -> None: ...

27
ml-agents-envs/mlagents_envs/communicator_objects/brain_parameters_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.containers import (

)
from mlagents_envs.communicator_objects.space_type_pb2 import (
SpaceTypeProtoValue as mlagents_envs___communicator_objects___space_type_pb2___SpaceTypeProtoValue,
SpaceTypeProto as mlagents_envs___communicator_objects___space_type_pb2___SpaceTypeProto,
)
from typing import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
vector_action_size: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int] = ...
vector_action_descriptions: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...
vector_action_space_type: mlagents_envs___communicator_objects___space_type_pb2___SpaceTypeProtoValue = ...
brain_name: typing___Text = ...
is_training: builtin___bool = ...
vector_action_size = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[builtin___int]
vector_action_descriptions = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text]
vector_action_space_type = ... # type: mlagents_envs___communicator_objects___space_type_pb2___SpaceTypeProto
brain_name = ... # type: typing___Text
is_training = ... # type: builtin___bool
vector_action_space_type : typing___Optional[mlagents_envs___communicator_objects___space_type_pb2___SpaceTypeProtoValue] = None,
vector_action_space_type : typing___Optional[mlagents_envs___communicator_objects___space_type_pb2___SpaceTypeProto] = None,
def ClearField(self, field_name: typing_extensions___Literal[u"brain_name",b"brain_name",u"is_training",b"is_training",u"vector_action_descriptions",b"vector_action_descriptions",u"vector_action_size",b"vector_action_size",u"vector_action_space_type",b"vector_action_space_type"]) -> None: ...
type___BrainParametersProto = BrainParametersProto
@classmethod
def FromString(cls, s: builtin___bytes) -> BrainParametersProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"brain_name",u"is_training",u"vector_action_descriptions",u"vector_action_size",u"vector_action_space_type"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"brain_name",b"brain_name",u"is_training",b"is_training",u"vector_action_descriptions",b"vector_action_descriptions",u"vector_action_size",b"vector_action_size",u"vector_action_space_type",b"vector_action_space_type"]) -> None: ...

15
ml-agents-envs/mlagents_envs/communicator_objects/capabilities_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
baseRLCapabilities: builtin___bool = ...
baseRLCapabilities = ... # type: builtin___bool
def ClearField(self, field_name: typing_extensions___Literal[u"baseRLCapabilities",b"baseRLCapabilities"]) -> None: ...
type___UnityRLCapabilitiesProto = UnityRLCapabilitiesProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLCapabilitiesProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"baseRLCapabilities"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"baseRLCapabilities",b"baseRLCapabilities"]) -> None: ...

39
ml-agents-envs/mlagents_envs/communicator_objects/command_pb2.pyi


import sys
from google.protobuf.descriptor import (
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.enum_type_wrapper import (
_EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,
)
from google.protobuf.message import (

from typing import (
NewType as typing___NewType,
List as typing___List,
Tuple as typing___Tuple,
builtin___str = str
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
CommandProtoValue = typing___NewType('CommandProtoValue', builtin___int)
type___CommandProtoValue = CommandProtoValue
CommandProto: _CommandProto
class _CommandProto(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[CommandProtoValue]):
class CommandProto(builtin___int):
STEP = typing___cast(CommandProtoValue, 0)
RESET = typing___cast(CommandProtoValue, 1)
QUIT = typing___cast(CommandProtoValue, 2)
STEP = typing___cast(CommandProtoValue, 0)
RESET = typing___cast(CommandProtoValue, 1)
QUIT = typing___cast(CommandProtoValue, 2)
type___CommandProto = CommandProto
@classmethod
def Name(cls, number: builtin___int) -> builtin___str: ...
@classmethod
def Value(cls, name: builtin___str) -> 'CommandProto': ...
@classmethod
def keys(cls) -> typing___List[builtin___str]: ...
@classmethod
def values(cls) -> typing___List['CommandProto']: ...
@classmethod
def items(cls) -> typing___List[typing___Tuple[builtin___str, 'CommandProto']]: ...
STEP = typing___cast('CommandProto', 0)
RESET = typing___cast('CommandProto', 1)
QUIT = typing___cast('CommandProto', 2)
STEP = typing___cast('CommandProto', 0)
RESET = typing___cast('CommandProto', 1)
QUIT = typing___cast('CommandProto', 2)

9
ml-agents-envs/mlagents_envs/communicator_objects/custom_reset_parameters_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
builtin___bytes = bytes
class CustomResetParametersProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

type___CustomResetParametersProto = CustomResetParametersProto
@classmethod
def FromString(cls, s: builtin___bytes) -> CustomResetParametersProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...

23
ml-agents-envs/mlagents_envs/communicator_objects/demonstration_meta_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
api_version: builtin___int = ...
demonstration_name: typing___Text = ...
number_steps: builtin___int = ...
number_episodes: builtin___int = ...
mean_reward: builtin___float = ...
api_version = ... # type: builtin___int
demonstration_name = ... # type: typing___Text
number_steps = ... # type: builtin___int
number_episodes = ... # type: builtin___int
mean_reward = ... # type: builtin___float
def __init__(self,
*,

number_episodes : typing___Optional[builtin___int] = None,
mean_reward : typing___Optional[builtin___float] = None,
) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"api_version",b"api_version",u"demonstration_name",b"demonstration_name",u"mean_reward",b"mean_reward",u"number_episodes",b"number_episodes",u"number_steps",b"number_steps"]) -> None: ...
type___DemonstrationMetaProto = DemonstrationMetaProto
@classmethod
def FromString(cls, s: builtin___bytes) -> DemonstrationMetaProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"api_version",u"demonstration_name",u"mean_reward",u"number_episodes",u"number_steps"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"api_version",b"api_version",u"demonstration_name",b"demonstration_name",u"mean_reward",b"mean_reward",u"number_episodes",b"number_episodes",u"number_steps",b"number_steps"]) -> None: ...

25
ml-agents-envs/mlagents_envs/communicator_objects/engine_configuration_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
width: builtin___int = ...
height: builtin___int = ...
quality_level: builtin___int = ...
time_scale: builtin___float = ...
target_frame_rate: builtin___int = ...
show_monitor: builtin___bool = ...
width = ... # type: builtin___int
height = ... # type: builtin___int
quality_level = ... # type: builtin___int
time_scale = ... # type: builtin___float
target_frame_rate = ... # type: builtin___int
show_monitor = ... # type: builtin___bool
def __init__(self,
*,

target_frame_rate : typing___Optional[builtin___int] = None,
show_monitor : typing___Optional[builtin___bool] = None,
) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"height",b"height",u"quality_level",b"quality_level",u"show_monitor",b"show_monitor",u"target_frame_rate",b"target_frame_rate",u"time_scale",b"time_scale",u"width",b"width"]) -> None: ...
type___EngineConfigurationProto = EngineConfigurationProto
@classmethod
def FromString(cls, s: builtin___bytes) -> EngineConfigurationProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"height",u"quality_level",u"show_monitor",u"target_frame_rate",u"time_scale",u"width"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"height",b"height",u"quality_level",b"quality_level",u"show_monitor",b"show_monitor",u"target_frame_rate",b"target_frame_rate",u"time_scale",b"time_scale",u"width",b"width"]) -> None: ...

17
ml-agents-envs/mlagents_envs/communicator_objects/header_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
status: builtin___int = ...
message: typing___Text = ...
status = ... # type: builtin___int
message = ... # type: typing___Text
def __init__(self,
*,

def ClearField(self, field_name: typing_extensions___Literal[u"message",b"message",u"status",b"status"]) -> None: ...
type___HeaderProto = HeaderProto
@classmethod
def FromString(cls, s: builtin___bytes) -> HeaderProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"message",u"status"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"message",b"message",u"status",b"status"]) -> None: ...

35
ml-agents-envs/mlagents_envs/communicator_objects/space_type_pb2.pyi


import sys
from google.protobuf.descriptor import (
EnumDescriptor as google___protobuf___descriptor___EnumDescriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.enum_type_wrapper import (
_EnumTypeWrapper as google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper,
)
from google.protobuf.message import (

from typing import (
NewType as typing___NewType,
List as typing___List,
Tuple as typing___Tuple,
builtin___str = str
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
SpaceTypeProtoValue = typing___NewType('SpaceTypeProtoValue', builtin___int)
type___SpaceTypeProtoValue = SpaceTypeProtoValue
SpaceTypeProto: _SpaceTypeProto
class _SpaceTypeProto(google___protobuf___internal___enum_type_wrapper____EnumTypeWrapper[SpaceTypeProtoValue]):
class SpaceTypeProto(builtin___int):
discrete = typing___cast(SpaceTypeProtoValue, 0)
continuous = typing___cast(SpaceTypeProtoValue, 1)
discrete = typing___cast(SpaceTypeProtoValue, 0)
continuous = typing___cast(SpaceTypeProtoValue, 1)
type___SpaceTypeProto = SpaceTypeProto
@classmethod
def Name(cls, number: builtin___int) -> builtin___str: ...
@classmethod
def Value(cls, name: builtin___str) -> 'SpaceTypeProto': ...
@classmethod
def keys(cls) -> typing___List[builtin___str]: ...
@classmethod
def values(cls) -> typing___List['SpaceTypeProto']: ...
@classmethod
def items(cls) -> typing___List[typing___Tuple[builtin___str, 'SpaceTypeProto']]: ...
discrete = typing___cast('SpaceTypeProto', 0)
continuous = typing___cast('SpaceTypeProto', 1)
discrete = typing___cast('SpaceTypeProto', 0)
continuous = typing___cast('SpaceTypeProto', 1)

16
ml-agents-envs/mlagents_envs/communicator_objects/unity_input_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
class UnityInputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

rl_input : typing___Optional[mlagents_envs___communicator_objects___unity_rl_input_pb2___UnityRLInputProto] = None,
rl_initialization_input : typing___Optional[mlagents_envs___communicator_objects___unity_rl_initialization_input_pb2___UnityRLInitializationInputProto] = None,
) -> None: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> None: ...
type___UnityInputProto = UnityInputProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityInputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",u"rl_input"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",u"rl_input"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_input",b"rl_initialization_input",u"rl_input",b"rl_input"]) -> None: ...

16
ml-agents-envs/mlagents_envs/communicator_objects/unity_message_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
class UnityMessageProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

unity_output : typing___Optional[mlagents_envs___communicator_objects___unity_output_pb2___UnityOutputProto] = None,
unity_input : typing___Optional[mlagents_envs___communicator_objects___unity_input_pb2___UnityInputProto] = None,
) -> None: ...
def HasField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> None: ...
type___UnityMessageProto = UnityMessageProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityMessageProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"header",u"unity_input",u"unity_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"header",u"unity_input",u"unity_output"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"header",b"header",u"unity_input",b"unity_input",u"unity_output",b"unity_output"]) -> None: ...

16
ml-agents-envs/mlagents_envs/communicator_objects/unity_output_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
class UnityOutputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...

rl_output : typing___Optional[mlagents_envs___communicator_objects___unity_rl_output_pb2___UnityRLOutputProto] = None,
rl_initialization_output : typing___Optional[mlagents_envs___communicator_objects___unity_rl_initialization_output_pb2___UnityRLInitializationOutputProto] = None,
) -> None: ...
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> None: ...
type___UnityOutputProto = UnityOutputProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityOutputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",u"rl_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",u"rl_output"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"rl_initialization_output",b"rl_initialization_output",u"rl_output",b"rl_output"]) -> None: ...

22
ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_input_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.message import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
seed: builtin___int = ...
communication_version: typing___Text = ...
package_version: typing___Text = ...
seed = ... # type: builtin___int
communication_version = ... # type: typing___Text
package_version = ... # type: typing___Text
@property
def capabilities(self) -> mlagents_envs___communicator_objects___capabilities_pb2___UnityRLCapabilitiesProto: ...

package_version : typing___Optional[typing___Text] = None,
capabilities : typing___Optional[mlagents_envs___communicator_objects___capabilities_pb2___UnityRLCapabilitiesProto] = None,
) -> None: ...
def HasField(self, field_name: typing_extensions___Literal[u"capabilities",b"capabilities"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"capabilities",b"capabilities",u"communication_version",b"communication_version",u"package_version",b"package_version",u"seed",b"seed"]) -> None: ...
type___UnityRLInitializationInputProto = UnityRLInitializationInputProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLInitializationInputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"capabilities"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"capabilities",u"communication_version",u"package_version",u"seed"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"capabilities",b"capabilities"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"capabilities",b"capabilities",u"communication_version",b"communication_version",u"package_version",b"package_version",u"seed",b"seed"]) -> None: ...

24
ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_initialization_output_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.containers import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
name: typing___Text = ...
communication_version: typing___Text = ...
log_path: typing___Text = ...
package_version: typing___Text = ...
name = ... # type: typing___Text
communication_version = ... # type: typing___Text
log_path = ... # type: typing___Text
package_version = ... # type: typing___Text
@property
def brain_parameters(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[mlagents_envs___communicator_objects___brain_parameters_pb2___BrainParametersProto]: ...

package_version : typing___Optional[typing___Text] = None,
capabilities : typing___Optional[mlagents_envs___communicator_objects___capabilities_pb2___UnityRLCapabilitiesProto] = None,
) -> None: ...
def HasField(self, field_name: typing_extensions___Literal[u"capabilities",b"capabilities"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"brain_parameters",b"brain_parameters",u"capabilities",b"capabilities",u"communication_version",b"communication_version",u"log_path",b"log_path",u"name",b"name",u"package_version",b"package_version"]) -> None: ...
type___UnityRLInitializationOutputProto = UnityRLInitializationOutputProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLInitializationOutputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"capabilities"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"brain_parameters",u"capabilities",u"communication_version",u"log_path",u"name",u"package_version"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"capabilities",b"capabilities"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"brain_parameters",b"brain_parameters",u"capabilities",b"capabilities",u"communication_version",b"communication_version",u"log_path",b"log_path",u"name",b"name",u"package_version",b"package_version"]) -> None: ...

54
ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_input_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.containers import (

)
from mlagents_envs.communicator_objects.command_pb2 import (
CommandProtoValue as mlagents_envs___communicator_objects___command_pb2___CommandProtoValue,
CommandProto as mlagents_envs___communicator_objects___command_pb2___CommandProto,
)
from typing import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
class UnityRLInputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
class ListAgentActionProto(google___protobuf___message___Message):

*,
value : typing___Optional[typing___Iterable[mlagents_envs___communicator_objects___agent_action_pb2___AgentActionProto]] = None,
) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
type___ListAgentActionProto = ListAgentActionProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLInputProto.ListAgentActionProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"value"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
key: typing___Text = ...
key = ... # type: typing___Text
def value(self) -> type___UnityRLInputProto.ListAgentActionProto: ...
def value(self) -> UnityRLInputProto.ListAgentActionProto: ...
value : typing___Optional[type___UnityRLInputProto.ListAgentActionProto] = None,
value : typing___Optional[UnityRLInputProto.ListAgentActionProto] = None,
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
type___AgentActionsEntry = AgentActionsEntry
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLInputProto.AgentActionsEntry: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
command: mlagents_envs___communicator_objects___command_pb2___CommandProtoValue = ...
side_channel: builtin___bytes = ...
command = ... # type: mlagents_envs___communicator_objects___command_pb2___CommandProto
side_channel = ... # type: builtin___bytes
def agent_actions(self) -> typing___MutableMapping[typing___Text, type___UnityRLInputProto.ListAgentActionProto]: ...
def agent_actions(self) -> typing___MutableMapping[typing___Text, UnityRLInputProto.ListAgentActionProto]: ...
agent_actions : typing___Optional[typing___Mapping[typing___Text, type___UnityRLInputProto.ListAgentActionProto]] = None,
command : typing___Optional[mlagents_envs___communicator_objects___command_pb2___CommandProtoValue] = None,
agent_actions : typing___Optional[typing___Mapping[typing___Text, UnityRLInputProto.ListAgentActionProto]] = None,
command : typing___Optional[mlagents_envs___communicator_objects___command_pb2___CommandProto] = None,
def ClearField(self, field_name: typing_extensions___Literal[u"agent_actions",b"agent_actions",u"command",b"command",u"side_channel",b"side_channel"]) -> None: ...
type___UnityRLInputProto = UnityRLInputProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLInputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"agent_actions",u"command",u"side_channel"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"agent_actions",b"agent_actions",u"command",b"command",u"side_channel",b"side_channel"]) -> None: ...

48
ml-agents-envs/mlagents_envs/communicator_objects/unity_rl_output_pb2.pyi


import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
from google.protobuf.internal.containers import (

builtin___int = int
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
class UnityRLOutputProto(google___protobuf___message___Message):
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
class ListAgentInfoProto(google___protobuf___message___Message):

*,
value : typing___Optional[typing___Iterable[mlagents_envs___communicator_objects___agent_info_pb2___AgentInfoProto]] = None,
) -> None: ...
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
type___ListAgentInfoProto = ListAgentInfoProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLOutputProto.ListAgentInfoProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"value"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> None: ...
key: typing___Text = ...
key = ... # type: typing___Text
def value(self) -> type___UnityRLOutputProto.ListAgentInfoProto: ...
def value(self) -> UnityRLOutputProto.ListAgentInfoProto: ...
value : typing___Optional[type___UnityRLOutputProto.ListAgentInfoProto] = None,
value : typing___Optional[UnityRLOutputProto.ListAgentInfoProto] = None,
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
type___AgentInfosEntry = AgentInfosEntry
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLOutputProto.AgentInfosEntry: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def HasField(self, field_name: typing_extensions___Literal[u"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",u"value"]) -> None: ...
else:
def HasField(self, field_name: typing_extensions___Literal[u"value",b"value"]) -> builtin___bool: ...
def ClearField(self, field_name: typing_extensions___Literal[u"key",b"key",u"value",b"value"]) -> None: ...
side_channel: builtin___bytes = ...
side_channel = ... # type: builtin___bytes
def agentInfos(self) -> typing___MutableMapping[typing___Text, type___UnityRLOutputProto.ListAgentInfoProto]: ...
def agentInfos(self) -> typing___MutableMapping[typing___Text, UnityRLOutputProto.ListAgentInfoProto]: ...
agentInfos : typing___Optional[typing___Mapping[typing___Text, type___UnityRLOutputProto.ListAgentInfoProto]] = None,
agentInfos : typing___Optional[typing___Mapping[typing___Text, UnityRLOutputProto.ListAgentInfoProto]] = None,
def ClearField(self, field_name: typing_extensions___Literal[u"agentInfos",b"agentInfos",u"side_channel",b"side_channel"]) -> None: ...
type___UnityRLOutputProto = UnityRLOutputProto
@classmethod
def FromString(cls, s: builtin___bytes) -> UnityRLOutputProto: ...
def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ...
if sys.version_info >= (3,):
def ClearField(self, field_name: typing_extensions___Literal[u"agentInfos",u"side_channel"]) -> None: ...
else:
def ClearField(self, field_name: typing_extensions___Literal[u"agentInfos",b"agentInfos",u"side_channel",b"side_channel"]) -> None: ...

6
ml-agents-envs/mlagents_envs/communicator_objects/unity_to_external_pb2.pyi


# @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
)
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
正在加载...
取消
保存