|
- # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: simulator.proto
-
- import sys
- _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()
-
- DESCRIPTOR = _descriptor.FileDescriptor(
- name='simulator.proto',
- package='simulator',
- syntax='proto3',
- serialized_pb=_b(
- '\n\x0fsimulator.proto\x12\tsimulator\"V\n\x07Request\x12\x13\n\x0bobservation\x18\x01 \x03(\x01\x12\x0e\n\x06reward\x18\x02 \x01(\x01\x12\x0c\n\x04\x64one\x18\x03 \x01(\x08\x12\x0c\n\x04info\x18\x04 \x01(\t\x12\n\n\x02id\x18\x05 \x01(\x03\"&\n\x05Reply\x12\x0e\n\x06\x61\x63tion\x18\x01 \x03(\x01\x12\r\n\x05\x65xtra\x18\x02 \x01(\t2;\n\tSimulator\x12.\n\x04Send\x12\x12.simulator.Request\x1a\x10.simulator.Reply\"\x00\x62\x06proto3'
- ))
-
- _REQUEST = _descriptor.Descriptor(
- name='Request',
- full_name='simulator.Request',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='observation',
- full_name='simulator.Request.observation',
- index=0,
- number=1,
- type=1,
- cpp_type=5,
- 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='reward',
- full_name='simulator.Request.reward',
- index=1,
- number=2,
- type=1,
- cpp_type=5,
- 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='done',
- full_name='simulator.Request.done',
- index=2,
- number=3,
- type=8,
- cpp_type=7,
- label=1,
- has_default_value=False,
- default_value=False,
- message_type=None,
- enum_type=None,
- containing_type=None,
- is_extension=False,
- extension_scope=None,
- options=None,
- file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='info',
- full_name='simulator.Request.info',
- index=3,
- number=4,
- 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,
- file=DESCRIPTOR),
- _descriptor.FieldDescriptor(
- name='id',
- full_name='simulator.Request.id',
- index=4,
- number=5,
- type=3,
- cpp_type=2,
- 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=[],
- enum_types=[],
- options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[],
- serialized_start=30,
- serialized_end=116,
- )
-
- _REPLY = _descriptor.Descriptor(
- name='Reply',
- full_name='simulator.Reply',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='action',
- full_name='simulator.Reply.action',
- index=0,
- number=1,
- type=1,
- cpp_type=5,
- 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='extra',
- full_name='simulator.Reply.extra',
- index=1,
- number=2,
- 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,
- file=DESCRIPTOR),
- ],
- extensions=[],
- nested_types=[],
- enum_types=[],
- options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[],
- serialized_start=118,
- serialized_end=156,
- )
-
- DESCRIPTOR.message_types_by_name['Request'] = _REQUEST
- DESCRIPTOR.message_types_by_name['Reply'] = _REPLY
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
- Request = _reflection.GeneratedProtocolMessageType(
- 'Request',
- (_message.Message, ),
- dict(
- DESCRIPTOR=_REQUEST,
- __module__='simulator_pb2'
- # @@protoc_insertion_point(class_scope:simulator.Request)
- ))
- _sym_db.RegisterMessage(Request)
-
- Reply = _reflection.GeneratedProtocolMessageType(
- 'Reply',
- (_message.Message, ),
- dict(
- DESCRIPTOR=_REPLY,
- __module__='simulator_pb2'
- # @@protoc_insertion_point(class_scope:simulator.Reply)
- ))
- _sym_db.RegisterMessage(Reply)
-
- _SIMULATOR = _descriptor.ServiceDescriptor(
- name='Simulator',
- full_name='simulator.Simulator',
- file=DESCRIPTOR,
- index=0,
- options=None,
- serialized_start=158,
- serialized_end=217,
- methods=[
- _descriptor.MethodDescriptor(
- name='Send',
- full_name='simulator.Simulator.Send',
- index=0,
- containing_service=None,
- input_type=_REQUEST,
- output_type=_REPLY,
- options=None,
- ),
- ])
- _sym_db.RegisterServiceDescriptor(_SIMULATOR)
-
- DESCRIPTOR.services_by_name['Simulator'] = _SIMULATOR
-
- # @@protoc_insertion_point(module_scope)
|