Created
February 24, 2013 23:36
-
-
Save devdave/5026253 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message KickStartRequest { | |
enum WHOTYPE { | |
CLIENT = 0; | |
PRODUCER = 1; | |
HUB = 2; | |
CLIHUB = 3; | |
} | |
optional WHOTYPE whoami = 1 [default = CLIENT]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by the protocol buffer compiler. DO NOT EDIT! | |
from google.protobuf import descriptor | |
from google.protobuf import message | |
from google.protobuf import reflection | |
from google.protobuf import descriptor_pb2 | |
# @@protoc_insertion_point(imports) | |
DESCRIPTOR = descriptor.FileDescriptor( | |
name='kickstart.proto', | |
package='', | |
serialized_pb='\n\x0fkickstart.proto\"\x7f\n\x10KickStartRequest\x12\x31\n\x06whoami\x18\x01 \x01(\x0e\x32\x19.KickStartRequest.WHOTYPE:\x06\x43LIENT\"8\n\x07WHOTYPE\x12\n\n\x06\x43LIENT\x10\x00\x12\x0c\n\x08PRODUCER\x10\x01\x12\x07\n\x03HUB\x10\x02\x12\n\n\x06\x43LIHUB\x10\x03') | |
_KICKSTARTREQUEST_WHOTYPE = descriptor.EnumDescriptor( | |
name='WHOTYPE', | |
full_name='KickStartRequest.WHOTYPE', | |
filename=None, | |
file=DESCRIPTOR, | |
values=[ | |
descriptor.EnumValueDescriptor( | |
name='CLIENT', index=0, number=0, | |
options=None, | |
type=None), | |
descriptor.EnumValueDescriptor( | |
name='PRODUCER', index=1, number=1, | |
options=None, | |
type=None), | |
descriptor.EnumValueDescriptor( | |
name='HUB', index=2, number=2, | |
options=None, | |
type=None), | |
descriptor.EnumValueDescriptor( | |
name='CLIHUB', index=3, number=3, | |
options=None, | |
type=None), | |
], | |
containing_type=None, | |
options=None, | |
serialized_start=90, | |
serialized_end=146, | |
) | |
_KICKSTARTREQUEST = descriptor.Descriptor( | |
name='KickStartRequest', | |
full_name='KickStartRequest', | |
filename=None, | |
file=DESCRIPTOR, | |
containing_type=None, | |
fields=[ | |
descriptor.FieldDescriptor( | |
name='whoami', full_name='KickStartRequest.whoami', index=0, | |
number=1, type=14, cpp_type=8, 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=[ | |
_KICKSTARTREQUEST_WHOTYPE, | |
], | |
options=None, | |
is_extendable=False, | |
extension_ranges=[], | |
serialized_start=19, | |
serialized_end=146, | |
) | |
_KICKSTARTREQUEST.fields_by_name['whoami'].enum_type = _KICKSTARTREQUEST_WHOTYPE | |
_KICKSTARTREQUEST_WHOTYPE.containing_type = _KICKSTARTREQUEST; | |
DESCRIPTOR.message_types_by_name['KickStartRequest'] = _KICKSTARTREQUEST | |
class KickStartRequest(message.Message): | |
__metaclass__ = reflection.GeneratedProtocolMessageType | |
DESCRIPTOR = _KICKSTARTREQUEST | |
# @@protoc_insertion_point(class_scope:KickStartRequest) | |
# @@protoc_insertion_point(module_scope) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment