318 lines
11 KiB
Python
318 lines
11 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: predict.proto
|
|
"""Generated protocol buffer code."""
|
|
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
|
|
# @@protoc_insertion_point(imports)
|
|
|
|
_sym_db = _symbol_database.Default()
|
|
|
|
|
|
|
|
|
|
DESCRIPTOR = _descriptor.FileDescriptor(
|
|
name='predict.proto',
|
|
package='',
|
|
syntax='proto3',
|
|
serialized_options=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
serialized_pb=b'\n\rpredict.proto\"?\n\nRequestPay\x12\x0c\n\x04Hour\x18\x01 \x01(\x05\x12\x0c\n\x04\x43oin\x18\x02 \x01(\x03\x12\x15\n\rYesterdayCoin\x18\x03 \x01(\x03\"@\n\x0bRequestGift\x12\x0c\n\x04Hour\x18\x01 \x01(\x05\x12\x0c\n\x04\x43oin\x18\x02 \x01(\x03\x12\x15\n\rYesterdayCoin\x18\x03 \x01(\x03\",\n\x0bReplyHeader\x12\x0c\n\x04\x43ode\x18\x01 \x01(\x05\x12\x0f\n\x07Message\x18\x02 \x01(\t\"8\n\x08ReplyPay\x12\x1c\n\x06Header\x18\x01 \x01(\x0b\x32\x0c.ReplyHeader\x12\x0e\n\x06Result\x18\x02 \x01(\x03\"9\n\tReplyGift\x12\x1c\n\x06Header\x18\x01 \x01(\x0b\x32\x0c.ReplyHeader\x12\x0e\n\x06Result\x18\x02 \x01(\x03\x32T\n\x07Predict\x12\"\n\x06PayDay\x12\x0b.RequestPay\x1a\t.ReplyPay\"\x00\x12%\n\x07GiftDay\x12\x0c.RequestGift\x1a\n.ReplyGift\"\x00\x62\x06proto3'
|
|
)
|
|
|
|
|
|
|
|
|
|
_REQUESTPAY = _descriptor.Descriptor(
|
|
name='RequestPay',
|
|
full_name='RequestPay',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='Hour', full_name='RequestPay.Hour', 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='Coin', full_name='RequestPay.Coin', index=1,
|
|
number=2, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='YesterdayCoin', full_name='RequestPay.YesterdayCoin', index=2,
|
|
number=3, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=17,
|
|
serialized_end=80,
|
|
)
|
|
|
|
|
|
_REQUESTGIFT = _descriptor.Descriptor(
|
|
name='RequestGift',
|
|
full_name='RequestGift',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='Hour', full_name='RequestGift.Hour', 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='Coin', full_name='RequestGift.Coin', index=1,
|
|
number=2, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='YesterdayCoin', full_name='RequestGift.YesterdayCoin', index=2,
|
|
number=3, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=82,
|
|
serialized_end=146,
|
|
)
|
|
|
|
|
|
_REPLYHEADER = _descriptor.Descriptor(
|
|
name='ReplyHeader',
|
|
full_name='ReplyHeader',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='Code', full_name='ReplyHeader.Code', 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='Message', full_name='ReplyHeader.Message', 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=148,
|
|
serialized_end=192,
|
|
)
|
|
|
|
|
|
_REPLYPAY = _descriptor.Descriptor(
|
|
name='ReplyPay',
|
|
full_name='ReplyPay',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='Header', full_name='ReplyPay.Header', index=0,
|
|
number=1, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='Result', full_name='ReplyPay.Result', index=1,
|
|
number=2, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=194,
|
|
serialized_end=250,
|
|
)
|
|
|
|
|
|
_REPLYGIFT = _descriptor.Descriptor(
|
|
name='ReplyGift',
|
|
full_name='ReplyGift',
|
|
filename=None,
|
|
file=DESCRIPTOR,
|
|
containing_type=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
fields=[
|
|
_descriptor.FieldDescriptor(
|
|
name='Header', full_name='ReplyGift.Header', index=0,
|
|
number=1, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
_descriptor.FieldDescriptor(
|
|
name='Result', full_name='ReplyGift.Result', index=1,
|
|
number=2, 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,
|
|
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
|
|
],
|
|
extensions=[
|
|
],
|
|
nested_types=[],
|
|
enum_types=[
|
|
],
|
|
serialized_options=None,
|
|
is_extendable=False,
|
|
syntax='proto3',
|
|
extension_ranges=[],
|
|
oneofs=[
|
|
],
|
|
serialized_start=252,
|
|
serialized_end=309,
|
|
)
|
|
|
|
_REPLYPAY.fields_by_name['Header'].message_type = _REPLYHEADER
|
|
_REPLYGIFT.fields_by_name['Header'].message_type = _REPLYHEADER
|
|
DESCRIPTOR.message_types_by_name['RequestPay'] = _REQUESTPAY
|
|
DESCRIPTOR.message_types_by_name['RequestGift'] = _REQUESTGIFT
|
|
DESCRIPTOR.message_types_by_name['ReplyHeader'] = _REPLYHEADER
|
|
DESCRIPTOR.message_types_by_name['ReplyPay'] = _REPLYPAY
|
|
DESCRIPTOR.message_types_by_name['ReplyGift'] = _REPLYGIFT
|
|
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
|
|
|
RequestPay = _reflection.GeneratedProtocolMessageType('RequestPay', (_message.Message,), {
|
|
'DESCRIPTOR' : _REQUESTPAY,
|
|
'__module__' : 'predict_pb2'
|
|
# @@protoc_insertion_point(class_scope:RequestPay)
|
|
})
|
|
_sym_db.RegisterMessage(RequestPay)
|
|
|
|
RequestGift = _reflection.GeneratedProtocolMessageType('RequestGift', (_message.Message,), {
|
|
'DESCRIPTOR' : _REQUESTGIFT,
|
|
'__module__' : 'predict_pb2'
|
|
# @@protoc_insertion_point(class_scope:RequestGift)
|
|
})
|
|
_sym_db.RegisterMessage(RequestGift)
|
|
|
|
ReplyHeader = _reflection.GeneratedProtocolMessageType('ReplyHeader', (_message.Message,), {
|
|
'DESCRIPTOR' : _REPLYHEADER,
|
|
'__module__' : 'predict_pb2'
|
|
# @@protoc_insertion_point(class_scope:ReplyHeader)
|
|
})
|
|
_sym_db.RegisterMessage(ReplyHeader)
|
|
|
|
ReplyPay = _reflection.GeneratedProtocolMessageType('ReplyPay', (_message.Message,), {
|
|
'DESCRIPTOR' : _REPLYPAY,
|
|
'__module__' : 'predict_pb2'
|
|
# @@protoc_insertion_point(class_scope:ReplyPay)
|
|
})
|
|
_sym_db.RegisterMessage(ReplyPay)
|
|
|
|
ReplyGift = _reflection.GeneratedProtocolMessageType('ReplyGift', (_message.Message,), {
|
|
'DESCRIPTOR' : _REPLYGIFT,
|
|
'__module__' : 'predict_pb2'
|
|
# @@protoc_insertion_point(class_scope:ReplyGift)
|
|
})
|
|
_sym_db.RegisterMessage(ReplyGift)
|
|
|
|
|
|
|
|
_PREDICT = _descriptor.ServiceDescriptor(
|
|
name='Predict',
|
|
full_name='Predict',
|
|
file=DESCRIPTOR,
|
|
index=0,
|
|
serialized_options=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
serialized_start=311,
|
|
serialized_end=395,
|
|
methods=[
|
|
_descriptor.MethodDescriptor(
|
|
name='PayDay',
|
|
full_name='Predict.PayDay',
|
|
index=0,
|
|
containing_service=None,
|
|
input_type=_REQUESTPAY,
|
|
output_type=_REPLYPAY,
|
|
serialized_options=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
_descriptor.MethodDescriptor(
|
|
name='GiftDay',
|
|
full_name='Predict.GiftDay',
|
|
index=1,
|
|
containing_service=None,
|
|
input_type=_REQUESTGIFT,
|
|
output_type=_REPLYGIFT,
|
|
serialized_options=None,
|
|
create_key=_descriptor._internal_create_key,
|
|
),
|
|
])
|
|
_sym_db.RegisterServiceDescriptor(_PREDICT)
|
|
|
|
DESCRIPTOR.services_by_name['Predict'] = _PREDICT
|
|
|
|
# @@protoc_insertion_point(module_scope)
|