Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: google/protobuf/type.proto |
| 3 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 4 | package ptype // import "google.golang.org/genproto/protobuf/ptype" |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 5 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 6 | import proto "github.com/golang/protobuf/proto" |
| 7 | import fmt "fmt" |
| 8 | import math "math" |
| 9 | import any "github.com/golang/protobuf/ptypes/any" |
| 10 | import source_context "google.golang.org/genproto/protobuf/source_context" |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 11 | |
| 12 | // Reference imports to suppress errors if they are not otherwise used. |
| 13 | var _ = proto.Marshal |
| 14 | var _ = fmt.Errorf |
| 15 | var _ = math.Inf |
| 16 | |
| 17 | // This is a compile-time assertion to ensure that this generated file |
| 18 | // is compatible with the proto package it is being compiled against. |
| 19 | // A compilation error at this line likely means your copy of the |
| 20 | // proto package needs to be updated. |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 21 | const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 22 | |
| 23 | // The syntax in which a protocol buffer element is defined. |
| 24 | type Syntax int32 |
| 25 | |
| 26 | const ( |
| 27 | // Syntax `proto2`. |
| 28 | Syntax_SYNTAX_PROTO2 Syntax = 0 |
| 29 | // Syntax `proto3`. |
| 30 | Syntax_SYNTAX_PROTO3 Syntax = 1 |
| 31 | ) |
| 32 | |
| 33 | var Syntax_name = map[int32]string{ |
| 34 | 0: "SYNTAX_PROTO2", |
| 35 | 1: "SYNTAX_PROTO3", |
| 36 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 37 | var Syntax_value = map[string]int32{ |
| 38 | "SYNTAX_PROTO2": 0, |
| 39 | "SYNTAX_PROTO3": 1, |
| 40 | } |
| 41 | |
| 42 | func (x Syntax) String() string { |
| 43 | return proto.EnumName(Syntax_name, int32(x)) |
| 44 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 45 | func (Syntax) EnumDescriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 46 | return fileDescriptor_type_de958d9f8682c896, []int{0} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | // Basic field types. |
| 50 | type Field_Kind int32 |
| 51 | |
| 52 | const ( |
| 53 | // Field type unknown. |
| 54 | Field_TYPE_UNKNOWN Field_Kind = 0 |
| 55 | // Field type double. |
| 56 | Field_TYPE_DOUBLE Field_Kind = 1 |
| 57 | // Field type float. |
| 58 | Field_TYPE_FLOAT Field_Kind = 2 |
| 59 | // Field type int64. |
| 60 | Field_TYPE_INT64 Field_Kind = 3 |
| 61 | // Field type uint64. |
| 62 | Field_TYPE_UINT64 Field_Kind = 4 |
| 63 | // Field type int32. |
| 64 | Field_TYPE_INT32 Field_Kind = 5 |
| 65 | // Field type fixed64. |
| 66 | Field_TYPE_FIXED64 Field_Kind = 6 |
| 67 | // Field type fixed32. |
| 68 | Field_TYPE_FIXED32 Field_Kind = 7 |
| 69 | // Field type bool. |
| 70 | Field_TYPE_BOOL Field_Kind = 8 |
| 71 | // Field type string. |
| 72 | Field_TYPE_STRING Field_Kind = 9 |
| 73 | // Field type group. Proto2 syntax only, and deprecated. |
| 74 | Field_TYPE_GROUP Field_Kind = 10 |
| 75 | // Field type message. |
| 76 | Field_TYPE_MESSAGE Field_Kind = 11 |
| 77 | // Field type bytes. |
| 78 | Field_TYPE_BYTES Field_Kind = 12 |
| 79 | // Field type uint32. |
| 80 | Field_TYPE_UINT32 Field_Kind = 13 |
| 81 | // Field type enum. |
| 82 | Field_TYPE_ENUM Field_Kind = 14 |
| 83 | // Field type sfixed32. |
| 84 | Field_TYPE_SFIXED32 Field_Kind = 15 |
| 85 | // Field type sfixed64. |
| 86 | Field_TYPE_SFIXED64 Field_Kind = 16 |
| 87 | // Field type sint32. |
| 88 | Field_TYPE_SINT32 Field_Kind = 17 |
| 89 | // Field type sint64. |
| 90 | Field_TYPE_SINT64 Field_Kind = 18 |
| 91 | ) |
| 92 | |
| 93 | var Field_Kind_name = map[int32]string{ |
| 94 | 0: "TYPE_UNKNOWN", |
| 95 | 1: "TYPE_DOUBLE", |
| 96 | 2: "TYPE_FLOAT", |
| 97 | 3: "TYPE_INT64", |
| 98 | 4: "TYPE_UINT64", |
| 99 | 5: "TYPE_INT32", |
| 100 | 6: "TYPE_FIXED64", |
| 101 | 7: "TYPE_FIXED32", |
| 102 | 8: "TYPE_BOOL", |
| 103 | 9: "TYPE_STRING", |
| 104 | 10: "TYPE_GROUP", |
| 105 | 11: "TYPE_MESSAGE", |
| 106 | 12: "TYPE_BYTES", |
| 107 | 13: "TYPE_UINT32", |
| 108 | 14: "TYPE_ENUM", |
| 109 | 15: "TYPE_SFIXED32", |
| 110 | 16: "TYPE_SFIXED64", |
| 111 | 17: "TYPE_SINT32", |
| 112 | 18: "TYPE_SINT64", |
| 113 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 114 | var Field_Kind_value = map[string]int32{ |
| 115 | "TYPE_UNKNOWN": 0, |
| 116 | "TYPE_DOUBLE": 1, |
| 117 | "TYPE_FLOAT": 2, |
| 118 | "TYPE_INT64": 3, |
| 119 | "TYPE_UINT64": 4, |
| 120 | "TYPE_INT32": 5, |
| 121 | "TYPE_FIXED64": 6, |
| 122 | "TYPE_FIXED32": 7, |
| 123 | "TYPE_BOOL": 8, |
| 124 | "TYPE_STRING": 9, |
| 125 | "TYPE_GROUP": 10, |
| 126 | "TYPE_MESSAGE": 11, |
| 127 | "TYPE_BYTES": 12, |
| 128 | "TYPE_UINT32": 13, |
| 129 | "TYPE_ENUM": 14, |
| 130 | "TYPE_SFIXED32": 15, |
| 131 | "TYPE_SFIXED64": 16, |
| 132 | "TYPE_SINT32": 17, |
| 133 | "TYPE_SINT64": 18, |
| 134 | } |
| 135 | |
| 136 | func (x Field_Kind) String() string { |
| 137 | return proto.EnumName(Field_Kind_name, int32(x)) |
| 138 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 139 | func (Field_Kind) EnumDescriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 140 | return fileDescriptor_type_de958d9f8682c896, []int{1, 0} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | // Whether a field is optional, required, or repeated. |
| 144 | type Field_Cardinality int32 |
| 145 | |
| 146 | const ( |
| 147 | // For fields with unknown cardinality. |
| 148 | Field_CARDINALITY_UNKNOWN Field_Cardinality = 0 |
| 149 | // For optional fields. |
| 150 | Field_CARDINALITY_OPTIONAL Field_Cardinality = 1 |
| 151 | // For required fields. Proto2 syntax only. |
| 152 | Field_CARDINALITY_REQUIRED Field_Cardinality = 2 |
| 153 | // For repeated fields. |
| 154 | Field_CARDINALITY_REPEATED Field_Cardinality = 3 |
| 155 | ) |
| 156 | |
| 157 | var Field_Cardinality_name = map[int32]string{ |
| 158 | 0: "CARDINALITY_UNKNOWN", |
| 159 | 1: "CARDINALITY_OPTIONAL", |
| 160 | 2: "CARDINALITY_REQUIRED", |
| 161 | 3: "CARDINALITY_REPEATED", |
| 162 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 163 | var Field_Cardinality_value = map[string]int32{ |
| 164 | "CARDINALITY_UNKNOWN": 0, |
| 165 | "CARDINALITY_OPTIONAL": 1, |
| 166 | "CARDINALITY_REQUIRED": 2, |
| 167 | "CARDINALITY_REPEATED": 3, |
| 168 | } |
| 169 | |
| 170 | func (x Field_Cardinality) String() string { |
| 171 | return proto.EnumName(Field_Cardinality_name, int32(x)) |
| 172 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 173 | func (Field_Cardinality) EnumDescriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 174 | return fileDescriptor_type_de958d9f8682c896, []int{1, 1} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | // A protocol buffer message type. |
| 178 | type Type struct { |
| 179 | // The fully qualified message name. |
| 180 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 181 | // The list of fields. |
| 182 | Fields []*Field `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` |
| 183 | // The list of types appearing in `oneof` definitions in this type. |
| 184 | Oneofs []string `protobuf:"bytes,3,rep,name=oneofs,proto3" json:"oneofs,omitempty"` |
| 185 | // The protocol buffer options. |
| 186 | Options []*Option `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` |
| 187 | // The source context. |
| 188 | SourceContext *source_context.SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"` |
| 189 | // The source syntax. |
| 190 | Syntax Syntax `protobuf:"varint,6,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"` |
| 191 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 192 | XXX_unrecognized []byte `json:"-"` |
| 193 | XXX_sizecache int32 `json:"-"` |
| 194 | } |
| 195 | |
| 196 | func (m *Type) Reset() { *m = Type{} } |
| 197 | func (m *Type) String() string { return proto.CompactTextString(m) } |
| 198 | func (*Type) ProtoMessage() {} |
| 199 | func (*Type) Descriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 200 | return fileDescriptor_type_de958d9f8682c896, []int{0} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 201 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 202 | func (m *Type) XXX_Unmarshal(b []byte) error { |
| 203 | return xxx_messageInfo_Type.Unmarshal(m, b) |
| 204 | } |
| 205 | func (m *Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 206 | return xxx_messageInfo_Type.Marshal(b, m, deterministic) |
| 207 | } |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 208 | func (dst *Type) XXX_Merge(src proto.Message) { |
| 209 | xxx_messageInfo_Type.Merge(dst, src) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 210 | } |
| 211 | func (m *Type) XXX_Size() int { |
| 212 | return xxx_messageInfo_Type.Size(m) |
| 213 | } |
| 214 | func (m *Type) XXX_DiscardUnknown() { |
| 215 | xxx_messageInfo_Type.DiscardUnknown(m) |
| 216 | } |
| 217 | |
| 218 | var xxx_messageInfo_Type proto.InternalMessageInfo |
| 219 | |
| 220 | func (m *Type) GetName() string { |
| 221 | if m != nil { |
| 222 | return m.Name |
| 223 | } |
| 224 | return "" |
| 225 | } |
| 226 | |
| 227 | func (m *Type) GetFields() []*Field { |
| 228 | if m != nil { |
| 229 | return m.Fields |
| 230 | } |
| 231 | return nil |
| 232 | } |
| 233 | |
| 234 | func (m *Type) GetOneofs() []string { |
| 235 | if m != nil { |
| 236 | return m.Oneofs |
| 237 | } |
| 238 | return nil |
| 239 | } |
| 240 | |
| 241 | func (m *Type) GetOptions() []*Option { |
| 242 | if m != nil { |
| 243 | return m.Options |
| 244 | } |
| 245 | return nil |
| 246 | } |
| 247 | |
| 248 | func (m *Type) GetSourceContext() *source_context.SourceContext { |
| 249 | if m != nil { |
| 250 | return m.SourceContext |
| 251 | } |
| 252 | return nil |
| 253 | } |
| 254 | |
| 255 | func (m *Type) GetSyntax() Syntax { |
| 256 | if m != nil { |
| 257 | return m.Syntax |
| 258 | } |
| 259 | return Syntax_SYNTAX_PROTO2 |
| 260 | } |
| 261 | |
| 262 | // A single field of a message type. |
| 263 | type Field struct { |
| 264 | // The field type. |
| 265 | Kind Field_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=google.protobuf.Field_Kind" json:"kind,omitempty"` |
| 266 | // The field cardinality. |
| 267 | Cardinality Field_Cardinality `protobuf:"varint,2,opt,name=cardinality,proto3,enum=google.protobuf.Field_Cardinality" json:"cardinality,omitempty"` |
| 268 | // The field number. |
| 269 | Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` |
| 270 | // The field name. |
| 271 | Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` |
| 272 | // The field type URL, without the scheme, for message or enumeration |
| 273 | // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. |
| 274 | TypeUrl string `protobuf:"bytes,6,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` |
| 275 | // The index of the field type in `Type.oneofs`, for message or enumeration |
| 276 | // types. The first type has index 1; zero means the type is not in the list. |
| 277 | OneofIndex int32 `protobuf:"varint,7,opt,name=oneof_index,json=oneofIndex,proto3" json:"oneof_index,omitempty"` |
| 278 | // Whether to use alternative packed wire representation. |
| 279 | Packed bool `protobuf:"varint,8,opt,name=packed,proto3" json:"packed,omitempty"` |
| 280 | // The protocol buffer options. |
| 281 | Options []*Option `protobuf:"bytes,9,rep,name=options,proto3" json:"options,omitempty"` |
| 282 | // The field JSON name. |
| 283 | JsonName string `protobuf:"bytes,10,opt,name=json_name,json=jsonName,proto3" json:"json_name,omitempty"` |
| 284 | // The string value of the default value of this field. Proto2 syntax only. |
| 285 | DefaultValue string `protobuf:"bytes,11,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` |
| 286 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 287 | XXX_unrecognized []byte `json:"-"` |
| 288 | XXX_sizecache int32 `json:"-"` |
| 289 | } |
| 290 | |
| 291 | func (m *Field) Reset() { *m = Field{} } |
| 292 | func (m *Field) String() string { return proto.CompactTextString(m) } |
| 293 | func (*Field) ProtoMessage() {} |
| 294 | func (*Field) Descriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 295 | return fileDescriptor_type_de958d9f8682c896, []int{1} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 296 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 297 | func (m *Field) XXX_Unmarshal(b []byte) error { |
| 298 | return xxx_messageInfo_Field.Unmarshal(m, b) |
| 299 | } |
| 300 | func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 301 | return xxx_messageInfo_Field.Marshal(b, m, deterministic) |
| 302 | } |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 303 | func (dst *Field) XXX_Merge(src proto.Message) { |
| 304 | xxx_messageInfo_Field.Merge(dst, src) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 305 | } |
| 306 | func (m *Field) XXX_Size() int { |
| 307 | return xxx_messageInfo_Field.Size(m) |
| 308 | } |
| 309 | func (m *Field) XXX_DiscardUnknown() { |
| 310 | xxx_messageInfo_Field.DiscardUnknown(m) |
| 311 | } |
| 312 | |
| 313 | var xxx_messageInfo_Field proto.InternalMessageInfo |
| 314 | |
| 315 | func (m *Field) GetKind() Field_Kind { |
| 316 | if m != nil { |
| 317 | return m.Kind |
| 318 | } |
| 319 | return Field_TYPE_UNKNOWN |
| 320 | } |
| 321 | |
| 322 | func (m *Field) GetCardinality() Field_Cardinality { |
| 323 | if m != nil { |
| 324 | return m.Cardinality |
| 325 | } |
| 326 | return Field_CARDINALITY_UNKNOWN |
| 327 | } |
| 328 | |
| 329 | func (m *Field) GetNumber() int32 { |
| 330 | if m != nil { |
| 331 | return m.Number |
| 332 | } |
| 333 | return 0 |
| 334 | } |
| 335 | |
| 336 | func (m *Field) GetName() string { |
| 337 | if m != nil { |
| 338 | return m.Name |
| 339 | } |
| 340 | return "" |
| 341 | } |
| 342 | |
| 343 | func (m *Field) GetTypeUrl() string { |
| 344 | if m != nil { |
| 345 | return m.TypeUrl |
| 346 | } |
| 347 | return "" |
| 348 | } |
| 349 | |
| 350 | func (m *Field) GetOneofIndex() int32 { |
| 351 | if m != nil { |
| 352 | return m.OneofIndex |
| 353 | } |
| 354 | return 0 |
| 355 | } |
| 356 | |
| 357 | func (m *Field) GetPacked() bool { |
| 358 | if m != nil { |
| 359 | return m.Packed |
| 360 | } |
| 361 | return false |
| 362 | } |
| 363 | |
| 364 | func (m *Field) GetOptions() []*Option { |
| 365 | if m != nil { |
| 366 | return m.Options |
| 367 | } |
| 368 | return nil |
| 369 | } |
| 370 | |
| 371 | func (m *Field) GetJsonName() string { |
| 372 | if m != nil { |
| 373 | return m.JsonName |
| 374 | } |
| 375 | return "" |
| 376 | } |
| 377 | |
| 378 | func (m *Field) GetDefaultValue() string { |
| 379 | if m != nil { |
| 380 | return m.DefaultValue |
| 381 | } |
| 382 | return "" |
| 383 | } |
| 384 | |
| 385 | // Enum type definition. |
| 386 | type Enum struct { |
| 387 | // Enum type name. |
| 388 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 389 | // Enum value definitions. |
| 390 | Enumvalue []*EnumValue `protobuf:"bytes,2,rep,name=enumvalue,proto3" json:"enumvalue,omitempty"` |
| 391 | // Protocol buffer options. |
| 392 | Options []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` |
| 393 | // The source context. |
| 394 | SourceContext *source_context.SourceContext `protobuf:"bytes,4,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"` |
| 395 | // The source syntax. |
| 396 | Syntax Syntax `protobuf:"varint,5,opt,name=syntax,proto3,enum=google.protobuf.Syntax" json:"syntax,omitempty"` |
| 397 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 398 | XXX_unrecognized []byte `json:"-"` |
| 399 | XXX_sizecache int32 `json:"-"` |
| 400 | } |
| 401 | |
| 402 | func (m *Enum) Reset() { *m = Enum{} } |
| 403 | func (m *Enum) String() string { return proto.CompactTextString(m) } |
| 404 | func (*Enum) ProtoMessage() {} |
| 405 | func (*Enum) Descriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 406 | return fileDescriptor_type_de958d9f8682c896, []int{2} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 407 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 408 | func (m *Enum) XXX_Unmarshal(b []byte) error { |
| 409 | return xxx_messageInfo_Enum.Unmarshal(m, b) |
| 410 | } |
| 411 | func (m *Enum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 412 | return xxx_messageInfo_Enum.Marshal(b, m, deterministic) |
| 413 | } |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 414 | func (dst *Enum) XXX_Merge(src proto.Message) { |
| 415 | xxx_messageInfo_Enum.Merge(dst, src) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 416 | } |
| 417 | func (m *Enum) XXX_Size() int { |
| 418 | return xxx_messageInfo_Enum.Size(m) |
| 419 | } |
| 420 | func (m *Enum) XXX_DiscardUnknown() { |
| 421 | xxx_messageInfo_Enum.DiscardUnknown(m) |
| 422 | } |
| 423 | |
| 424 | var xxx_messageInfo_Enum proto.InternalMessageInfo |
| 425 | |
| 426 | func (m *Enum) GetName() string { |
| 427 | if m != nil { |
| 428 | return m.Name |
| 429 | } |
| 430 | return "" |
| 431 | } |
| 432 | |
| 433 | func (m *Enum) GetEnumvalue() []*EnumValue { |
| 434 | if m != nil { |
| 435 | return m.Enumvalue |
| 436 | } |
| 437 | return nil |
| 438 | } |
| 439 | |
| 440 | func (m *Enum) GetOptions() []*Option { |
| 441 | if m != nil { |
| 442 | return m.Options |
| 443 | } |
| 444 | return nil |
| 445 | } |
| 446 | |
| 447 | func (m *Enum) GetSourceContext() *source_context.SourceContext { |
| 448 | if m != nil { |
| 449 | return m.SourceContext |
| 450 | } |
| 451 | return nil |
| 452 | } |
| 453 | |
| 454 | func (m *Enum) GetSyntax() Syntax { |
| 455 | if m != nil { |
| 456 | return m.Syntax |
| 457 | } |
| 458 | return Syntax_SYNTAX_PROTO2 |
| 459 | } |
| 460 | |
| 461 | // Enum value definition. |
| 462 | type EnumValue struct { |
| 463 | // Enum value name. |
| 464 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 465 | // Enum value number. |
| 466 | Number int32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` |
| 467 | // Protocol buffer options. |
| 468 | Options []*Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` |
| 469 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 470 | XXX_unrecognized []byte `json:"-"` |
| 471 | XXX_sizecache int32 `json:"-"` |
| 472 | } |
| 473 | |
| 474 | func (m *EnumValue) Reset() { *m = EnumValue{} } |
| 475 | func (m *EnumValue) String() string { return proto.CompactTextString(m) } |
| 476 | func (*EnumValue) ProtoMessage() {} |
| 477 | func (*EnumValue) Descriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 478 | return fileDescriptor_type_de958d9f8682c896, []int{3} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 479 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 480 | func (m *EnumValue) XXX_Unmarshal(b []byte) error { |
| 481 | return xxx_messageInfo_EnumValue.Unmarshal(m, b) |
| 482 | } |
| 483 | func (m *EnumValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 484 | return xxx_messageInfo_EnumValue.Marshal(b, m, deterministic) |
| 485 | } |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 486 | func (dst *EnumValue) XXX_Merge(src proto.Message) { |
| 487 | xxx_messageInfo_EnumValue.Merge(dst, src) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 488 | } |
| 489 | func (m *EnumValue) XXX_Size() int { |
| 490 | return xxx_messageInfo_EnumValue.Size(m) |
| 491 | } |
| 492 | func (m *EnumValue) XXX_DiscardUnknown() { |
| 493 | xxx_messageInfo_EnumValue.DiscardUnknown(m) |
| 494 | } |
| 495 | |
| 496 | var xxx_messageInfo_EnumValue proto.InternalMessageInfo |
| 497 | |
| 498 | func (m *EnumValue) GetName() string { |
| 499 | if m != nil { |
| 500 | return m.Name |
| 501 | } |
| 502 | return "" |
| 503 | } |
| 504 | |
| 505 | func (m *EnumValue) GetNumber() int32 { |
| 506 | if m != nil { |
| 507 | return m.Number |
| 508 | } |
| 509 | return 0 |
| 510 | } |
| 511 | |
| 512 | func (m *EnumValue) GetOptions() []*Option { |
| 513 | if m != nil { |
| 514 | return m.Options |
| 515 | } |
| 516 | return nil |
| 517 | } |
| 518 | |
| 519 | // A protocol buffer option, which can be attached to a message, field, |
| 520 | // enumeration, etc. |
| 521 | type Option struct { |
| 522 | // The option's name. For protobuf built-in options (options defined in |
| 523 | // descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 524 | // For custom options, it should be the fully-qualified name. For example, |
| 525 | // `"google.api.http"`. |
| 526 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 527 | // The option's value packed in an Any message. If the value is a primitive, |
| 528 | // the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 529 | // should be used. If the value is an enum, it should be stored as an int32 |
| 530 | // value using the google.protobuf.Int32Value type. |
| 531 | Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 532 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 533 | XXX_unrecognized []byte `json:"-"` |
| 534 | XXX_sizecache int32 `json:"-"` |
| 535 | } |
| 536 | |
| 537 | func (m *Option) Reset() { *m = Option{} } |
| 538 | func (m *Option) String() string { return proto.CompactTextString(m) } |
| 539 | func (*Option) ProtoMessage() {} |
| 540 | func (*Option) Descriptor() ([]byte, []int) { |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 541 | return fileDescriptor_type_de958d9f8682c896, []int{4} |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 542 | } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 543 | func (m *Option) XXX_Unmarshal(b []byte) error { |
| 544 | return xxx_messageInfo_Option.Unmarshal(m, b) |
| 545 | } |
| 546 | func (m *Option) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 547 | return xxx_messageInfo_Option.Marshal(b, m, deterministic) |
| 548 | } |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 549 | func (dst *Option) XXX_Merge(src proto.Message) { |
| 550 | xxx_messageInfo_Option.Merge(dst, src) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 551 | } |
| 552 | func (m *Option) XXX_Size() int { |
| 553 | return xxx_messageInfo_Option.Size(m) |
| 554 | } |
| 555 | func (m *Option) XXX_DiscardUnknown() { |
| 556 | xxx_messageInfo_Option.DiscardUnknown(m) |
| 557 | } |
| 558 | |
| 559 | var xxx_messageInfo_Option proto.InternalMessageInfo |
| 560 | |
| 561 | func (m *Option) GetName() string { |
| 562 | if m != nil { |
| 563 | return m.Name |
| 564 | } |
| 565 | return "" |
| 566 | } |
| 567 | |
| 568 | func (m *Option) GetValue() *any.Any { |
| 569 | if m != nil { |
| 570 | return m.Value |
| 571 | } |
| 572 | return nil |
| 573 | } |
| 574 | |
| 575 | func init() { |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 576 | proto.RegisterType((*Type)(nil), "google.protobuf.Type") |
| 577 | proto.RegisterType((*Field)(nil), "google.protobuf.Field") |
| 578 | proto.RegisterType((*Enum)(nil), "google.protobuf.Enum") |
| 579 | proto.RegisterType((*EnumValue)(nil), "google.protobuf.EnumValue") |
| 580 | proto.RegisterType((*Option)(nil), "google.protobuf.Option") |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 581 | proto.RegisterEnum("google.protobuf.Syntax", Syntax_name, Syntax_value) |
| 582 | proto.RegisterEnum("google.protobuf.Field_Kind", Field_Kind_name, Field_Kind_value) |
| 583 | proto.RegisterEnum("google.protobuf.Field_Cardinality", Field_Cardinality_name, Field_Cardinality_value) |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 584 | } |
| 585 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 586 | func init() { proto.RegisterFile("google/protobuf/type.proto", fileDescriptor_type_de958d9f8682c896) } |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 587 | |
Scott Baker | 4a35a70 | 2019-11-26 08:17:33 -0800 | [diff] [blame] | 588 | var fileDescriptor_type_de958d9f8682c896 = []byte{ |
Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [diff] [blame] | 589 | // 810 bytes of a gzipped FileDescriptorProto |
| 590 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x8e, 0xda, 0x56, |
| 591 | 0x14, 0x8e, 0x8d, 0xf1, 0xe0, 0xc3, 0xc0, 0xdc, 0xdc, 0x44, 0x89, 0x33, 0x91, 0x52, 0x44, 0xbb, |
| 592 | 0x40, 0x59, 0x80, 0x0a, 0xa3, 0x51, 0xa5, 0xae, 0x60, 0xf0, 0x50, 0x6b, 0x88, 0xed, 0x5e, 0x4c, |
| 593 | 0x93, 0xe9, 0x06, 0x79, 0xe0, 0x0e, 0x22, 0x31, 0xd7, 0x08, 0xdb, 0xed, 0xb0, 0xe8, 0x23, 0xf4, |
| 594 | 0x25, 0xba, 0xec, 0xba, 0x0f, 0xd1, 0x47, 0xea, 0xae, 0xd5, 0xbd, 0x06, 0x63, 0x7e, 0x2a, 0x4d, |
| 595 | 0x9b, 0xcd, 0x68, 0xce, 0xf7, 0x7d, 0xe7, 0xf7, 0x1e, 0x8e, 0xe1, 0x7c, 0x1a, 0x04, 0x53, 0x9f, |
| 596 | 0x36, 0x16, 0xcb, 0x20, 0x0a, 0xee, 0xe2, 0xfb, 0x46, 0xb4, 0x5a, 0xd0, 0xba, 0xb0, 0xf0, 0x59, |
| 597 | 0xc2, 0xd5, 0x37, 0xdc, 0xf9, 0xab, 0x7d, 0xb1, 0xc7, 0x56, 0x09, 0x7b, 0xfe, 0xd5, 0x3e, 0x15, |
| 598 | 0x06, 0xf1, 0x72, 0x4c, 0x47, 0xe3, 0x80, 0x45, 0xf4, 0x21, 0x4a, 0x54, 0xd5, 0x5f, 0x65, 0x50, |
| 599 | 0xdc, 0xd5, 0x82, 0x62, 0x0c, 0x0a, 0xf3, 0xe6, 0x54, 0x97, 0x2a, 0x52, 0x4d, 0x23, 0xe2, 0x7f, |
| 600 | 0x5c, 0x07, 0xf5, 0x7e, 0x46, 0xfd, 0x49, 0xa8, 0xcb, 0x95, 0x5c, 0xad, 0xd8, 0x7c, 0x51, 0xdf, |
| 601 | 0xcb, 0x5f, 0xbf, 0xe6, 0x34, 0x59, 0xab, 0xf0, 0x0b, 0x50, 0x03, 0x46, 0x83, 0xfb, 0x50, 0xcf, |
| 602 | 0x55, 0x72, 0x35, 0x8d, 0xac, 0x2d, 0xfc, 0x35, 0x9c, 0x04, 0x8b, 0x68, 0x16, 0xb0, 0x50, 0x57, |
| 603 | 0x44, 0xa0, 0x97, 0x07, 0x81, 0x6c, 0xc1, 0x93, 0x8d, 0x0e, 0x1b, 0x50, 0xde, 0xad, 0x57, 0xcf, |
| 604 | 0x57, 0xa4, 0x5a, 0xb1, 0xf9, 0xe6, 0xc0, 0x73, 0x20, 0x64, 0x57, 0x89, 0x8a, 0x94, 0xc2, 0xac, |
| 605 | 0x89, 0x1b, 0xa0, 0x86, 0x2b, 0x16, 0x79, 0x0f, 0xba, 0x5a, 0x91, 0x6a, 0xe5, 0x23, 0x89, 0x07, |
| 606 | 0x82, 0x26, 0x6b, 0x59, 0xf5, 0x0f, 0x15, 0xf2, 0xa2, 0x29, 0xdc, 0x00, 0xe5, 0xd3, 0x8c, 0x4d, |
| 607 | 0xc4, 0x40, 0xca, 0xcd, 0xd7, 0xc7, 0x5b, 0xaf, 0xdf, 0xcc, 0xd8, 0x84, 0x08, 0x21, 0xee, 0x42, |
| 608 | 0x71, 0xec, 0x2d, 0x27, 0x33, 0xe6, 0xf9, 0xb3, 0x68, 0xa5, 0xcb, 0xc2, 0xaf, 0xfa, 0x2f, 0x7e, |
| 609 | 0x57, 0x5b, 0x25, 0xc9, 0xba, 0xf1, 0x19, 0xb2, 0x78, 0x7e, 0x47, 0x97, 0x7a, 0xae, 0x22, 0xd5, |
| 610 | 0xf2, 0x64, 0x6d, 0xa5, 0xef, 0xa3, 0x64, 0xde, 0xe7, 0x15, 0x14, 0xf8, 0x72, 0x8c, 0xe2, 0xa5, |
| 611 | 0x2f, 0xfa, 0xd3, 0xc8, 0x09, 0xb7, 0x87, 0x4b, 0x1f, 0x7f, 0x01, 0x45, 0x31, 0xfc, 0xd1, 0x8c, |
| 612 | 0x4d, 0xe8, 0x83, 0x7e, 0x22, 0x62, 0x81, 0x80, 0x4c, 0x8e, 0xf0, 0x3c, 0x0b, 0x6f, 0xfc, 0x89, |
| 613 | 0x4e, 0xf4, 0x42, 0x45, 0xaa, 0x15, 0xc8, 0xda, 0xca, 0xbe, 0x95, 0xf6, 0xc8, 0xb7, 0x7a, 0x0d, |
| 614 | 0xda, 0xc7, 0x30, 0x60, 0x23, 0x51, 0x1f, 0x88, 0x3a, 0x0a, 0x1c, 0xb0, 0x78, 0x8d, 0x5f, 0x42, |
| 615 | 0x69, 0x42, 0xef, 0xbd, 0xd8, 0x8f, 0x46, 0x3f, 0x79, 0x7e, 0x4c, 0xf5, 0xa2, 0x10, 0x9c, 0xae, |
| 616 | 0xc1, 0x1f, 0x38, 0x56, 0xfd, 0x53, 0x06, 0x85, 0x4f, 0x12, 0x23, 0x38, 0x75, 0x6f, 0x1d, 0x63, |
| 617 | 0x34, 0xb4, 0x6e, 0x2c, 0xfb, 0xbd, 0x85, 0x9e, 0xe0, 0x33, 0x28, 0x0a, 0xa4, 0x6b, 0x0f, 0x3b, |
| 618 | 0x7d, 0x03, 0x49, 0xb8, 0x0c, 0x20, 0x80, 0xeb, 0xbe, 0xdd, 0x76, 0x91, 0x9c, 0xda, 0xa6, 0xe5, |
| 619 | 0x5e, 0x5e, 0xa0, 0x5c, 0xea, 0x30, 0x4c, 0x00, 0x25, 0x2b, 0x68, 0x35, 0x51, 0x3e, 0xcd, 0x71, |
| 620 | 0x6d, 0x7e, 0x30, 0xba, 0x97, 0x17, 0x48, 0xdd, 0x45, 0x5a, 0x4d, 0x74, 0x82, 0x4b, 0xa0, 0x09, |
| 621 | 0xa4, 0x63, 0xdb, 0x7d, 0x54, 0x48, 0x63, 0x0e, 0x5c, 0x62, 0x5a, 0x3d, 0xa4, 0xa5, 0x31, 0x7b, |
| 622 | 0xc4, 0x1e, 0x3a, 0x08, 0xd2, 0x08, 0xef, 0x8c, 0xc1, 0xa0, 0xdd, 0x33, 0x50, 0x31, 0x55, 0x74, |
| 623 | 0x6e, 0x5d, 0x63, 0x80, 0x4e, 0x77, 0xca, 0x6a, 0x35, 0x51, 0x29, 0x4d, 0x61, 0x58, 0xc3, 0x77, |
| 624 | 0xa8, 0x8c, 0x9f, 0x42, 0x29, 0x49, 0xb1, 0x29, 0xe2, 0x6c, 0x0f, 0xba, 0xbc, 0x40, 0x68, 0x5b, |
| 625 | 0x48, 0x12, 0xe5, 0xe9, 0x0e, 0x70, 0x79, 0x81, 0x70, 0x35, 0x82, 0x62, 0x66, 0xb7, 0xf0, 0x4b, |
| 626 | 0x78, 0x76, 0xd5, 0x26, 0x5d, 0xd3, 0x6a, 0xf7, 0x4d, 0xf7, 0x36, 0x33, 0x57, 0x1d, 0x9e, 0x67, |
| 627 | 0x09, 0xdb, 0x71, 0x4d, 0xdb, 0x6a, 0xf7, 0x91, 0xb4, 0xcf, 0x10, 0xe3, 0xfb, 0xa1, 0x49, 0x8c, |
| 628 | 0x2e, 0x92, 0x0f, 0x19, 0xc7, 0x68, 0xbb, 0x46, 0x17, 0xe5, 0xaa, 0x7f, 0x4b, 0xa0, 0x18, 0x2c, |
| 629 | 0x9e, 0x1f, 0x3d, 0x23, 0xdf, 0x80, 0x46, 0x59, 0x3c, 0x4f, 0x9e, 0x3f, 0xb9, 0x24, 0xe7, 0x07, |
| 630 | 0x4b, 0xc5, 0xbd, 0xc5, 0x32, 0x90, 0xad, 0x38, 0xbb, 0x8c, 0xb9, 0xff, 0x7d, 0x38, 0x94, 0xcf, |
| 631 | 0x3b, 0x1c, 0xf9, 0xc7, 0x1d, 0x8e, 0x8f, 0xa0, 0xa5, 0x2d, 0x1c, 0x9d, 0xc2, 0xf6, 0x87, 0x2d, |
| 632 | 0xef, 0xfc, 0xb0, 0xff, 0x7b, 0x8f, 0xd5, 0xef, 0x40, 0x4d, 0xa0, 0xa3, 0x89, 0xde, 0x42, 0x7e, |
| 633 | 0x33, 0x6a, 0xde, 0xf8, 0xf3, 0x83, 0x70, 0x6d, 0xb6, 0x22, 0x89, 0xe4, 0x6d, 0x1d, 0xd4, 0xa4, |
| 634 | 0x0f, 0xbe, 0x6c, 0x83, 0x5b, 0xcb, 0x6d, 0x7f, 0x18, 0x39, 0xc4, 0x76, 0xed, 0x26, 0x7a, 0xb2, |
| 635 | 0x0f, 0xb5, 0x90, 0xd4, 0xf9, 0x05, 0x9e, 0x8d, 0x83, 0xf9, 0x7e, 0xc4, 0x8e, 0xc6, 0x3f, 0x21, |
| 636 | 0x0e, 0xb7, 0x1c, 0xe9, 0xc7, 0xc6, 0x9a, 0x9d, 0x06, 0xbe, 0xc7, 0xa6, 0xf5, 0x60, 0x39, 0x6d, |
| 637 | 0x4c, 0x29, 0x13, 0xda, 0xed, 0xc7, 0x68, 0xc1, 0x0f, 0xd5, 0xb7, 0xe2, 0xef, 0x5f, 0x92, 0xf4, |
| 638 | 0x9b, 0x9c, 0xeb, 0x39, 0x9d, 0xdf, 0xe5, 0x37, 0xbd, 0xc4, 0xd5, 0xd9, 0x94, 0xfa, 0x9e, 0xfa, |
| 639 | 0xfe, 0x0d, 0x0b, 0x7e, 0x66, 0x3c, 0x41, 0x78, 0xa7, 0x0a, 0xff, 0xd6, 0x3f, 0x01, 0x00, 0x00, |
| 640 | 0xff, 0xff, 0x6d, 0x2b, 0xc0, 0xd8, 0x24, 0x07, 0x00, 0x00, |
| 641 | } |