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