| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 | # Copyright 2015, Google Inc.# All rights reserved.## Redistribution and use in source and binary forms, with or without# modification, are permitted provided that the following conditions are# met:##     * Redistributions of source code must retain the above copyright# notice, this list of conditions and the following disclaimer.#     * Redistributions in binary form must reproduce the above# copyright notice, this list of conditions and the following disclaimer# in the documentation and/or other materials provided with the# distribution.#     * Neither the name of Google Inc. nor the names of its# contributors may be used to endorse or promote products derived from# this software without specific prior written permission.## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.# TODO(nathaniel): Remove this from source control after having made# generation from the stock.proto source part of GRPC's build-and-test# process.# Generated by the protocol buffer compiler.  DO NOT EDIT!# source: stock.protoimport sys_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))from google.protobuf import descriptor as _descriptorfrom google.protobuf import message as _messagefrom google.protobuf import reflection as _reflectionfrom google.protobuf import symbol_database as _symbol_databasefrom google.protobuf import descriptor_pb2# @@protoc_insertion_point(imports)_sym_db = _symbol_database.Default()DESCRIPTOR = _descriptor.FileDescriptor(  name='stock.proto',  package='stock',  serialized_pb=_b('\n\x0bstock.proto\x12\x05stock\">\n\x0cStockRequest\x12\x0e\n\x06symbol\x18\x01 \x01(\t\x12\x1e\n\x13num_trades_to_watch\x18\x02 \x01(\x05:\x01\x30\"+\n\nStockReply\x12\r\n\x05price\x18\x01 \x01(\x02\x12\x0e\n\x06symbol\x18\x02 \x01(\t2\x96\x02\n\x05Stock\x12=\n\x11GetLastTradePrice\x12\x13.stock.StockRequest\x1a\x11.stock.StockReply\"\x00\x12I\n\x19GetLastTradePriceMultiple\x12\x13.stock.StockRequest\x1a\x11.stock.StockReply\"\x00(\x01\x30\x01\x12?\n\x11WatchFutureTrades\x12\x13.stock.StockRequest\x1a\x11.stock.StockReply\"\x00\x30\x01\x12\x42\n\x14GetHighestTradePrice\x12\x13.stock.StockRequest\x1a\x11.stock.StockReply\"\x00(\x01'))_sym_db.RegisterFileDescriptor(DESCRIPTOR)_STOCKREQUEST = _descriptor.Descriptor(  name='StockRequest',  full_name='stock.StockRequest',  filename=None,  file=DESCRIPTOR,  containing_type=None,  fields=[    _descriptor.FieldDescriptor(      name='symbol', full_name='stock.StockRequest.symbol', index=0,      number=1, 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='num_trades_to_watch', full_name='stock.StockRequest.num_trades_to_watch', index=1,      number=2, type=5, cpp_type=1, label=1,      has_default_value=True, default_value=0,      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=[],  oneofs=[  ],  serialized_start=22,  serialized_end=84,)_STOCKREPLY = _descriptor.Descriptor(  name='StockReply',  full_name='stock.StockReply',  filename=None,  file=DESCRIPTOR,  containing_type=None,  fields=[    _descriptor.FieldDescriptor(      name='price', full_name='stock.StockReply.price', index=0,      number=1, type=2, cpp_type=6, 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='symbol', full_name='stock.StockReply.symbol', 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),  ],  extensions=[  ],  nested_types=[],  enum_types=[  ],  options=None,  is_extendable=False,  extension_ranges=[],  oneofs=[  ],  serialized_start=86,  serialized_end=129,)DESCRIPTOR.message_types_by_name['StockRequest'] = _STOCKREQUESTDESCRIPTOR.message_types_by_name['StockReply'] = _STOCKREPLYStockRequest = _reflection.GeneratedProtocolMessageType('StockRequest', (_message.Message,), dict(  DESCRIPTOR = _STOCKREQUEST,  __module__ = 'stock_pb2'  # @@protoc_insertion_point(class_scope:stock.StockRequest)  ))_sym_db.RegisterMessage(StockRequest)StockReply = _reflection.GeneratedProtocolMessageType('StockReply', (_message.Message,), dict(  DESCRIPTOR = _STOCKREPLY,  __module__ = 'stock_pb2'  # @@protoc_insertion_point(class_scope:stock.StockReply)  ))_sym_db.RegisterMessage(StockReply)# @@protoc_insertion_point(module_scope)
 |