| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go from "google/protobuf/descriptor.proto" |
| 2 | // DO NOT EDIT! |
| 3 | |
| 4 | package google_protobuf |
| 5 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 6 | import proto "goprotobuf.googlecode.com/hg/proto" |
| David Symonds | fa6a18d | 2011-01-19 09:30:28 +1100 | [diff] [blame] | 7 | import "math" |
| 8 | import "os" |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 9 | |
| David Symonds | fa6a18d | 2011-01-19 09:30:28 +1100 | [diff] [blame] | 10 | // Reference proto, math & os imports to suppress error if they are not otherwise used. |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 11 | var _ = proto.GetString |
| David Symonds | fa6a18d | 2011-01-19 09:30:28 +1100 | [diff] [blame] | 12 | var _ = math.Inf |
| 13 | var _ os.Error |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 14 | |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 15 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 16 | type FieldDescriptorProto_Type int32 |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 17 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 18 | const ( |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 19 | FieldDescriptorProto_TYPE_DOUBLE = 1 |
| 20 | FieldDescriptorProto_TYPE_FLOAT = 2 |
| 21 | FieldDescriptorProto_TYPE_INT64 = 3 |
| 22 | FieldDescriptorProto_TYPE_UINT64 = 4 |
| 23 | FieldDescriptorProto_TYPE_INT32 = 5 |
| 24 | FieldDescriptorProto_TYPE_FIXED64 = 6 |
| 25 | FieldDescriptorProto_TYPE_FIXED32 = 7 |
| 26 | FieldDescriptorProto_TYPE_BOOL = 8 |
| 27 | FieldDescriptorProto_TYPE_STRING = 9 |
| 28 | FieldDescriptorProto_TYPE_GROUP = 10 |
| 29 | FieldDescriptorProto_TYPE_MESSAGE = 11 |
| 30 | FieldDescriptorProto_TYPE_BYTES = 12 |
| 31 | FieldDescriptorProto_TYPE_UINT32 = 13 |
| 32 | FieldDescriptorProto_TYPE_ENUM = 14 |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 33 | FieldDescriptorProto_TYPE_SFIXED32 = 15 |
| 34 | FieldDescriptorProto_TYPE_SFIXED64 = 16 |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 35 | FieldDescriptorProto_TYPE_SINT32 = 17 |
| 36 | FieldDescriptorProto_TYPE_SINT64 = 18 |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 37 | ) |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 38 | |
| 39 | var FieldDescriptorProto_Type_name = map[int32]string{ |
| 40 | 1: "TYPE_DOUBLE", |
| 41 | 2: "TYPE_FLOAT", |
| 42 | 3: "TYPE_INT64", |
| 43 | 4: "TYPE_UINT64", |
| 44 | 5: "TYPE_INT32", |
| 45 | 6: "TYPE_FIXED64", |
| 46 | 7: "TYPE_FIXED32", |
| 47 | 8: "TYPE_BOOL", |
| 48 | 9: "TYPE_STRING", |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 49 | 10: "TYPE_GROUP", |
| 50 | 11: "TYPE_MESSAGE", |
| 51 | 12: "TYPE_BYTES", |
| 52 | 13: "TYPE_UINT32", |
| 53 | 14: "TYPE_ENUM", |
| 54 | 15: "TYPE_SFIXED32", |
| 55 | 16: "TYPE_SFIXED64", |
| 56 | 17: "TYPE_SINT32", |
| 57 | 18: "TYPE_SINT64", |
| 58 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 59 | var FieldDescriptorProto_Type_value = map[string]int32{ |
| 60 | "TYPE_DOUBLE": 1, |
| 61 | "TYPE_FLOAT": 2, |
| 62 | "TYPE_INT64": 3, |
| 63 | "TYPE_UINT64": 4, |
| 64 | "TYPE_INT32": 5, |
| 65 | "TYPE_FIXED64": 6, |
| 66 | "TYPE_FIXED32": 7, |
| 67 | "TYPE_BOOL": 8, |
| 68 | "TYPE_STRING": 9, |
| 69 | "TYPE_GROUP": 10, |
| 70 | "TYPE_MESSAGE": 11, |
| 71 | "TYPE_BYTES": 12, |
| 72 | "TYPE_UINT32": 13, |
| 73 | "TYPE_ENUM": 14, |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 74 | "TYPE_SFIXED32": 15, |
| 75 | "TYPE_SFIXED64": 16, |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 76 | "TYPE_SINT32": 17, |
| 77 | "TYPE_SINT64": 18, |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 78 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 79 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 80 | func NewFieldDescriptorProto_Type(x int32) *FieldDescriptorProto_Type { |
| 81 | e := FieldDescriptorProto_Type(x) |
| 82 | return &e |
| 83 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 84 | func (x FieldDescriptorProto_Type) String() string { |
| 85 | return proto.EnumName(FieldDescriptorProto_Type_name, int32(x)) |
| 86 | } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 87 | |
| 88 | type FieldDescriptorProto_Label int32 |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 89 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 90 | const ( |
| 91 | FieldDescriptorProto_LABEL_OPTIONAL = 1 |
| 92 | FieldDescriptorProto_LABEL_REQUIRED = 2 |
| 93 | FieldDescriptorProto_LABEL_REPEATED = 3 |
| 94 | ) |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 95 | |
| 96 | var FieldDescriptorProto_Label_name = map[int32]string{ |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 97 | 1: "LABEL_OPTIONAL", |
| 98 | 2: "LABEL_REQUIRED", |
| 99 | 3: "LABEL_REPEATED", |
| 100 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 101 | var FieldDescriptorProto_Label_value = map[string]int32{ |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 102 | "LABEL_OPTIONAL": 1, |
| 103 | "LABEL_REQUIRED": 2, |
| 104 | "LABEL_REPEATED": 3, |
| 105 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 106 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 107 | func NewFieldDescriptorProto_Label(x int32) *FieldDescriptorProto_Label { |
| 108 | e := FieldDescriptorProto_Label(x) |
| 109 | return &e |
| 110 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 111 | func (x FieldDescriptorProto_Label) String() string { |
| 112 | return proto.EnumName(FieldDescriptorProto_Label_name, int32(x)) |
| 113 | } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 114 | |
| 115 | type FileOptions_OptimizeMode int32 |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 116 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 117 | const ( |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 118 | FileOptions_SPEED = 1 |
| 119 | FileOptions_CODE_SIZE = 2 |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 120 | FileOptions_LITE_RUNTIME = 3 |
| 121 | ) |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 122 | |
| 123 | var FileOptions_OptimizeMode_name = map[int32]string{ |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 124 | 1: "SPEED", |
| 125 | 2: "CODE_SIZE", |
| 126 | 3: "LITE_RUNTIME", |
| 127 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 128 | var FileOptions_OptimizeMode_value = map[string]int32{ |
| 129 | "SPEED": 1, |
| 130 | "CODE_SIZE": 2, |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 131 | "LITE_RUNTIME": 3, |
| 132 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 133 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 134 | func NewFileOptions_OptimizeMode(x int32) *FileOptions_OptimizeMode { |
| 135 | e := FileOptions_OptimizeMode(x) |
| 136 | return &e |
| 137 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 138 | func (x FileOptions_OptimizeMode) String() string { |
| 139 | return proto.EnumName(FileOptions_OptimizeMode_name, int32(x)) |
| 140 | } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 141 | |
| 142 | type FieldOptions_CType int32 |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 143 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 144 | const ( |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 145 | FieldOptions_STRING = 0 |
| 146 | FieldOptions_CORD = 1 |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 147 | FieldOptions_STRING_PIECE = 2 |
| 148 | ) |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 149 | |
| 150 | var FieldOptions_CType_name = map[int32]string{ |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 151 | 0: "STRING", |
| 152 | 1: "CORD", |
| 153 | 2: "STRING_PIECE", |
| 154 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 155 | var FieldOptions_CType_value = map[string]int32{ |
| 156 | "STRING": 0, |
| 157 | "CORD": 1, |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 158 | "STRING_PIECE": 2, |
| 159 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 160 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 161 | func NewFieldOptions_CType(x int32) *FieldOptions_CType { |
| 162 | e := FieldOptions_CType(x) |
| 163 | return &e |
| 164 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 165 | func (x FieldOptions_CType) String() string { |
| 166 | return proto.EnumName(FieldOptions_CType_name, int32(x)) |
| 167 | } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 168 | |
| 169 | type FileDescriptorSet struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 170 | File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file"` |
| 171 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 172 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 173 | |
| 174 | func (this *FileDescriptorSet) Reset() { *this = FileDescriptorSet{} } |
| 175 | func (this *FileDescriptorSet) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 176 | |
| 177 | type FileDescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 178 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 179 | Package *string `protobuf:"bytes,2,opt,name=package"` |
| 180 | Dependency []string `protobuf:"bytes,3,rep,name=dependency"` |
| 181 | PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency"` |
| 182 | MessageType []*DescriptorProto `protobuf:"bytes,4,rep,name=message_type"` |
| 183 | EnumType []*EnumDescriptorProto `protobuf:"bytes,5,rep,name=enum_type"` |
| 184 | Service []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service"` |
| 185 | Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension"` |
| 186 | Options *FileOptions `protobuf:"bytes,8,opt,name=options"` |
| 187 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 188 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 189 | |
| 190 | func (this *FileDescriptorProto) Reset() { *this = FileDescriptorProto{} } |
| 191 | func (this *FileDescriptorProto) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 192 | |
| 193 | type DescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 194 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 195 | Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field"` |
| 196 | Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension"` |
| 197 | NestedType []*DescriptorProto `protobuf:"bytes,3,rep,name=nested_type"` |
| 198 | EnumType []*EnumDescriptorProto `protobuf:"bytes,4,rep,name=enum_type"` |
| 199 | ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range"` |
| 200 | Options *MessageOptions `protobuf:"bytes,7,opt,name=options"` |
| 201 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 202 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 203 | |
| 204 | func (this *DescriptorProto) Reset() { *this = DescriptorProto{} } |
| 205 | func (this *DescriptorProto) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 206 | |
| 207 | type DescriptorProto_ExtensionRange struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 208 | Start *int32 `protobuf:"varint,1,opt,name=start"` |
| 209 | End *int32 `protobuf:"varint,2,opt,name=end"` |
| 210 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 211 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 212 | |
| 213 | func (this *DescriptorProto_ExtensionRange) Reset() { *this = DescriptorProto_ExtensionRange{} } |
| 214 | func (this *DescriptorProto_ExtensionRange) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 215 | |
| 216 | type FieldDescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 217 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 218 | Number *int32 `protobuf:"varint,3,opt,name=number"` |
| 219 | Label *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google_protobuf.FieldDescriptorProto_Label"` |
| 220 | Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google_protobuf.FieldDescriptorProto_Type"` |
| 221 | TypeName *string `protobuf:"bytes,6,opt,name=type_name"` |
| 222 | Extendee *string `protobuf:"bytes,2,opt,name=extendee"` |
| 223 | DefaultValue *string `protobuf:"bytes,7,opt,name=default_value"` |
| 224 | Options *FieldOptions `protobuf:"bytes,8,opt,name=options"` |
| 225 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 226 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 227 | |
| 228 | func (this *FieldDescriptorProto) Reset() { *this = FieldDescriptorProto{} } |
| 229 | func (this *FieldDescriptorProto) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 230 | |
| 231 | type EnumDescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 232 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 233 | Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value"` |
| 234 | Options *EnumOptions `protobuf:"bytes,3,opt,name=options"` |
| 235 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 236 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 237 | |
| 238 | func (this *EnumDescriptorProto) Reset() { *this = EnumDescriptorProto{} } |
| 239 | func (this *EnumDescriptorProto) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 240 | |
| 241 | type EnumValueDescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 242 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 243 | Number *int32 `protobuf:"varint,2,opt,name=number"` |
| 244 | Options *EnumValueOptions `protobuf:"bytes,3,opt,name=options"` |
| 245 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 246 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 247 | |
| 248 | func (this *EnumValueDescriptorProto) Reset() { *this = EnumValueDescriptorProto{} } |
| 249 | func (this *EnumValueDescriptorProto) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 250 | |
| 251 | type ServiceDescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 252 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 253 | Method []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method"` |
| 254 | Options *ServiceOptions `protobuf:"bytes,3,opt,name=options"` |
| 255 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 256 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 257 | |
| 258 | func (this *ServiceDescriptorProto) Reset() { *this = ServiceDescriptorProto{} } |
| 259 | func (this *ServiceDescriptorProto) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 260 | |
| 261 | type MethodDescriptorProto struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 262 | Name *string `protobuf:"bytes,1,opt,name=name"` |
| 263 | InputType *string `protobuf:"bytes,2,opt,name=input_type"` |
| 264 | OutputType *string `protobuf:"bytes,3,opt,name=output_type"` |
| 265 | Options *MethodOptions `protobuf:"bytes,4,opt,name=options"` |
| 266 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 267 | } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 268 | |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 269 | func (this *MethodDescriptorProto) Reset() { *this = MethodDescriptorProto{} } |
| 270 | func (this *MethodDescriptorProto) String() string { return proto.CompactTextString(this) } |
| 271 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 272 | type FileOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 273 | JavaPackage *string `protobuf:"bytes,1,opt,name=java_package"` |
| 274 | JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname"` |
| 275 | JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,def=0"` |
| 276 | OptimizeFor *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,enum=google_protobuf.FileOptions_OptimizeMode,def=1"` |
| 277 | CcGenericServices *bool `protobuf:"varint,16,opt,name=cc_generic_services,def=1"` |
| 278 | JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,def=1"` |
| 279 | PyGenericServices *bool `protobuf:"varint,18,opt,name=py_generic_services,def=1"` |
| 280 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 281 | XXX_extensions map[int32][]byte |
| 282 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 283 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 284 | |
| 285 | func (this *FileOptions) Reset() { *this = FileOptions{} } |
| 286 | func (this *FileOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 287 | |
| 288 | var extRange_FileOptions = []proto.ExtensionRange{ |
| 289 | proto.ExtensionRange{1000, 536870911}, |
| 290 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 291 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 292 | func (*FileOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 293 | return extRange_FileOptions |
| 294 | } |
| 295 | func (this *FileOptions) ExtensionMap() map[int32][]byte { |
| 296 | if this.XXX_extensions == nil { |
| 297 | this.XXX_extensions = make(map[int32][]byte) |
| 298 | } |
| 299 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 300 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 301 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 302 | const Default_FileOptions_JavaMultipleFiles bool = false |
| 303 | const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 304 | const Default_FileOptions_CcGenericServices bool = true |
| 305 | const Default_FileOptions_JavaGenericServices bool = true |
| 306 | const Default_FileOptions_PyGenericServices bool = true |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 307 | |
| 308 | type MessageOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 309 | MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,def=0"` |
| 310 | NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,def=0"` |
| 311 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 312 | XXX_extensions map[int32][]byte |
| 313 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 314 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 315 | |
| 316 | func (this *MessageOptions) Reset() { *this = MessageOptions{} } |
| 317 | func (this *MessageOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 318 | |
| 319 | var extRange_MessageOptions = []proto.ExtensionRange{ |
| 320 | proto.ExtensionRange{1000, 536870911}, |
| 321 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 322 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 323 | func (*MessageOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 324 | return extRange_MessageOptions |
| 325 | } |
| 326 | func (this *MessageOptions) ExtensionMap() map[int32][]byte { |
| 327 | if this.XXX_extensions == nil { |
| 328 | this.XXX_extensions = make(map[int32][]byte) |
| 329 | } |
| 330 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 331 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 332 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 333 | const Default_MessageOptions_MessageSetWireFormat bool = false |
| 334 | const Default_MessageOptions_NoStandardDescriptorAccessor bool = false |
| 335 | |
| 336 | type FieldOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 337 | Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google_protobuf.FieldOptions_CType,def=0"` |
| 338 | Packed *bool `protobuf:"varint,2,opt,name=packed"` |
| 339 | Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0"` |
| 340 | ExperimentalMapKey *string `protobuf:"bytes,9,opt,name=experimental_map_key"` |
| 341 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 342 | XXX_extensions map[int32][]byte |
| 343 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 344 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 345 | |
| 346 | func (this *FieldOptions) Reset() { *this = FieldOptions{} } |
| 347 | func (this *FieldOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 348 | |
| 349 | var extRange_FieldOptions = []proto.ExtensionRange{ |
| 350 | proto.ExtensionRange{1000, 536870911}, |
| 351 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 352 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 353 | func (*FieldOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 354 | return extRange_FieldOptions |
| 355 | } |
| 356 | func (this *FieldOptions) ExtensionMap() map[int32][]byte { |
| 357 | if this.XXX_extensions == nil { |
| 358 | this.XXX_extensions = make(map[int32][]byte) |
| 359 | } |
| 360 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 361 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 362 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 363 | const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING |
| 364 | const Default_FieldOptions_Deprecated bool = false |
| 365 | |
| 366 | type EnumOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 367 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 368 | XXX_extensions map[int32][]byte |
| 369 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 370 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 371 | |
| 372 | func (this *EnumOptions) Reset() { *this = EnumOptions{} } |
| 373 | func (this *EnumOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 374 | |
| 375 | var extRange_EnumOptions = []proto.ExtensionRange{ |
| 376 | proto.ExtensionRange{1000, 536870911}, |
| 377 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 378 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 379 | func (*EnumOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 380 | return extRange_EnumOptions |
| 381 | } |
| 382 | func (this *EnumOptions) ExtensionMap() map[int32][]byte { |
| 383 | if this.XXX_extensions == nil { |
| 384 | this.XXX_extensions = make(map[int32][]byte) |
| 385 | } |
| 386 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 387 | } |
| 388 | |
| 389 | type EnumValueOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 390 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 391 | XXX_extensions map[int32][]byte |
| 392 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 393 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 394 | |
| 395 | func (this *EnumValueOptions) Reset() { *this = EnumValueOptions{} } |
| 396 | func (this *EnumValueOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 397 | |
| 398 | var extRange_EnumValueOptions = []proto.ExtensionRange{ |
| 399 | proto.ExtensionRange{1000, 536870911}, |
| 400 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 401 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 402 | func (*EnumValueOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 403 | return extRange_EnumValueOptions |
| 404 | } |
| 405 | func (this *EnumValueOptions) ExtensionMap() map[int32][]byte { |
| 406 | if this.XXX_extensions == nil { |
| 407 | this.XXX_extensions = make(map[int32][]byte) |
| 408 | } |
| 409 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 410 | } |
| 411 | |
| 412 | type ServiceOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 413 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 414 | XXX_extensions map[int32][]byte |
| 415 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 416 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 417 | |
| 418 | func (this *ServiceOptions) Reset() { *this = ServiceOptions{} } |
| 419 | func (this *ServiceOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 420 | |
| 421 | var extRange_ServiceOptions = []proto.ExtensionRange{ |
| 422 | proto.ExtensionRange{1000, 536870911}, |
| 423 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 424 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 425 | func (*ServiceOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 426 | return extRange_ServiceOptions |
| 427 | } |
| 428 | func (this *ServiceOptions) ExtensionMap() map[int32][]byte { |
| 429 | if this.XXX_extensions == nil { |
| 430 | this.XXX_extensions = make(map[int32][]byte) |
| 431 | } |
| 432 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 433 | } |
| 434 | |
| 435 | type MethodOptions struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 436 | UninterpretedOption []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option"` |
| 437 | XXX_extensions map[int32][]byte |
| 438 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 439 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 440 | |
| 441 | func (this *MethodOptions) Reset() { *this = MethodOptions{} } |
| 442 | func (this *MethodOptions) String() string { return proto.CompactTextString(this) } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 443 | |
| 444 | var extRange_MethodOptions = []proto.ExtensionRange{ |
| 445 | proto.ExtensionRange{1000, 536870911}, |
| 446 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 447 | |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 448 | func (*MethodOptions) ExtensionRangeArray() []proto.ExtensionRange { |
| 449 | return extRange_MethodOptions |
| 450 | } |
| 451 | func (this *MethodOptions) ExtensionMap() map[int32][]byte { |
| 452 | if this.XXX_extensions == nil { |
| 453 | this.XXX_extensions = make(map[int32][]byte) |
| 454 | } |
| 455 | return this.XXX_extensions |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 456 | } |
| 457 | |
| 458 | type UninterpretedOption struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 459 | Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name"` |
| 460 | IdentifierValue *string `protobuf:"bytes,3,opt,name=identifier_value"` |
| 461 | PositiveIntValue *uint64 `protobuf:"varint,4,opt,name=positive_int_value"` |
| 462 | NegativeIntValue *int64 `protobuf:"varint,5,opt,name=negative_int_value"` |
| 463 | DoubleValue *float64 `protobuf:"fixed64,6,opt,name=double_value"` |
| 464 | StringValue []byte `protobuf:"bytes,7,opt,name=string_value"` |
| 465 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 466 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 467 | |
| 468 | func (this *UninterpretedOption) Reset() { *this = UninterpretedOption{} } |
| 469 | func (this *UninterpretedOption) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 470 | |
| 471 | type UninterpretedOption_NamePart struct { |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 472 | NamePart *string `protobuf:"bytes,1,req,name=name_part"` |
| 473 | IsExtension *bool `protobuf:"varint,2,req,name=is_extension"` |
| 474 | XXX_unrecognized []byte |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 475 | } |
| David Symonds | b012753 | 2010-11-09 11:10:46 +1100 | [diff] [blame] | 476 | |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 477 | func (this *UninterpretedOption_NamePart) Reset() { *this = UninterpretedOption_NamePart{} } |
| 478 | func (this *UninterpretedOption_NamePart) String() string { return proto.CompactTextString(this) } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 479 | |
| 480 | func init() { |
| 481 | proto.RegisterEnum("google_protobuf.FieldDescriptorProto_Type", FieldDescriptorProto_Type_name, FieldDescriptorProto_Type_value) |
| 482 | proto.RegisterEnum("google_protobuf.FieldDescriptorProto_Label", FieldDescriptorProto_Label_name, FieldDescriptorProto_Label_value) |
| 483 | proto.RegisterEnum("google_protobuf.FileOptions_OptimizeMode", FileOptions_OptimizeMode_name, FileOptions_OptimizeMode_value) |
| 484 | proto.RegisterEnum("google_protobuf.FieldOptions_CType", FieldOptions_CType_name, FieldOptions_CType_value) |
| 485 | } |