Skip to content

Instantly share code, notes, and snippets.

@devdave
Created February 24, 2013 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devdave/5026253 to your computer and use it in GitHub Desktop.
Save devdave/5026253 to your computer and use it in GitHub Desktop.
message KickStartRequest {
enum WHOTYPE {
CLIENT = 0;
PRODUCER = 1;
HUB = 2;
CLIHUB = 3;
}
optional WHOTYPE whoami = 1 [default = CLIENT];
}
# 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