1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/protobuf/type.proto
5 Package ptype is a generated protocol buffer package.
7 It is generated from these files:
8 google/protobuf/type.proto
10 It has these top-level messages:
19 import proto "github.com/golang/protobuf/proto"
22 import google_protobuf "github.com/golang/protobuf/ptypes/any"
23 import google_protobuf1 "google.golang.org/genproto/protobuf/source_context"
25 // Reference imports to suppress errors if they are not otherwise used.
30 // This is a compile-time assertion to ensure that this generated file
31 // is compatible with the proto package it is being compiled against.
32 // A compilation error at this line likely means your copy of the
33 // proto package needs to be updated.
34 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
36 // The syntax in which a protocol buffer element is defined.
41 Syntax_SYNTAX_PROTO2 Syntax = 0
43 Syntax_SYNTAX_PROTO3 Syntax = 1
46 var Syntax_name = map[int32]string{
50 var Syntax_value = map[string]int32{
55 func (x Syntax) String() string {
56 return proto.EnumName(Syntax_name, int32(x))
58 func (Syntax) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
64 // Field type unknown.
65 Field_TYPE_UNKNOWN Field_Kind = 0
67 Field_TYPE_DOUBLE Field_Kind = 1
69 Field_TYPE_FLOAT Field_Kind = 2
71 Field_TYPE_INT64 Field_Kind = 3
73 Field_TYPE_UINT64 Field_Kind = 4
75 Field_TYPE_INT32 Field_Kind = 5
76 // Field type fixed64.
77 Field_TYPE_FIXED64 Field_Kind = 6
78 // Field type fixed32.
79 Field_TYPE_FIXED32 Field_Kind = 7
81 Field_TYPE_BOOL Field_Kind = 8
83 Field_TYPE_STRING Field_Kind = 9
84 // Field type group. Proto2 syntax only, and deprecated.
85 Field_TYPE_GROUP Field_Kind = 10
86 // Field type message.
87 Field_TYPE_MESSAGE Field_Kind = 11
89 Field_TYPE_BYTES Field_Kind = 12
91 Field_TYPE_UINT32 Field_Kind = 13
93 Field_TYPE_ENUM Field_Kind = 14
94 // Field type sfixed32.
95 Field_TYPE_SFIXED32 Field_Kind = 15
96 // Field type sfixed64.
97 Field_TYPE_SFIXED64 Field_Kind = 16
99 Field_TYPE_SINT32 Field_Kind = 17
100 // Field type sint64.
101 Field_TYPE_SINT64 Field_Kind = 18
104 var Field_Kind_name = map[int32]string{
125 var Field_Kind_value = map[string]int32{
147 func (x Field_Kind) String() string {
148 return proto.EnumName(Field_Kind_name, int32(x))
150 func (Field_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
152 // Whether a field is optional, required, or repeated.
153 type Field_Cardinality int32
156 // For fields with unknown cardinality.
157 Field_CARDINALITY_UNKNOWN Field_Cardinality = 0
158 // For optional fields.
159 Field_CARDINALITY_OPTIONAL Field_Cardinality = 1
160 // For required fields. Proto2 syntax only.
161 Field_CARDINALITY_REQUIRED Field_Cardinality = 2
162 // For repeated fields.
163 Field_CARDINALITY_REPEATED Field_Cardinality = 3
166 var Field_Cardinality_name = map[int32]string{
167 0: "CARDINALITY_UNKNOWN",
168 1: "CARDINALITY_OPTIONAL",
169 2: "CARDINALITY_REQUIRED",
170 3: "CARDINALITY_REPEATED",
172 var Field_Cardinality_value = map[string]int32{
173 "CARDINALITY_UNKNOWN": 0,
174 "CARDINALITY_OPTIONAL": 1,
175 "CARDINALITY_REQUIRED": 2,
176 "CARDINALITY_REPEATED": 3,
179 func (x Field_Cardinality) String() string {
180 return proto.EnumName(Field_Cardinality_name, int32(x))
182 func (Field_Cardinality) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 1} }
184 // A protocol buffer message type.
186 // The fully qualified message name.
187 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
188 // The list of fields.
189 Fields []*Field `protobuf:"bytes,2,rep,name=fields" json:"fields,omitempty"`
190 // The list of types appearing in `oneof` definitions in this type.
191 Oneofs []string `protobuf:"bytes,3,rep,name=oneofs" json:"oneofs,omitempty"`
192 // The protocol buffer options.
193 Options []*Option `protobuf:"bytes,4,rep,name=options" json:"options,omitempty"`
194 // The source context.
195 SourceContext *google_protobuf1.SourceContext `protobuf:"bytes,5,opt,name=source_context,json=sourceContext" json:"source_context,omitempty"`
196 // The source syntax.
197 Syntax Syntax `protobuf:"varint,6,opt,name=syntax,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
200 func (m *Type) Reset() { *m = Type{} }
201 func (m *Type) String() string { return proto.CompactTextString(m) }
202 func (*Type) ProtoMessage() {}
203 func (*Type) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
205 func (m *Type) GetName() string {
212 func (m *Type) GetFields() []*Field {
219 func (m *Type) GetOneofs() []string {
226 func (m *Type) GetOptions() []*Option {
233 func (m *Type) GetSourceContext() *google_protobuf1.SourceContext {
235 return m.SourceContext
240 func (m *Type) GetSyntax() Syntax {
244 return Syntax_SYNTAX_PROTO2
247 // A single field of a message type.
250 Kind Field_Kind `protobuf:"varint,1,opt,name=kind,enum=google.protobuf.Field_Kind" json:"kind,omitempty"`
251 // The field cardinality.
252 Cardinality Field_Cardinality `protobuf:"varint,2,opt,name=cardinality,enum=google.protobuf.Field_Cardinality" json:"cardinality,omitempty"`
254 Number int32 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"`
256 Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
257 // The field type URL, without the scheme, for message or enumeration
258 // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
259 TypeUrl string `protobuf:"bytes,6,opt,name=type_url,json=typeUrl" json:"type_url,omitempty"`
260 // The index of the field type in `Type.oneofs`, for message or enumeration
261 // types. The first type has index 1; zero means the type is not in the list.
262 OneofIndex int32 `protobuf:"varint,7,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"`
263 // Whether to use alternative packed wire representation.
264 Packed bool `protobuf:"varint,8,opt,name=packed" json:"packed,omitempty"`
265 // The protocol buffer options.
266 Options []*Option `protobuf:"bytes,9,rep,name=options" json:"options,omitempty"`
267 // The field JSON name.
268 JsonName string `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"`
269 // The string value of the default value of this field. Proto2 syntax only.
270 DefaultValue string `protobuf:"bytes,11,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
273 func (m *Field) Reset() { *m = Field{} }
274 func (m *Field) String() string { return proto.CompactTextString(m) }
275 func (*Field) ProtoMessage() {}
276 func (*Field) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
278 func (m *Field) GetKind() Field_Kind {
282 return Field_TYPE_UNKNOWN
285 func (m *Field) GetCardinality() Field_Cardinality {
289 return Field_CARDINALITY_UNKNOWN
292 func (m *Field) GetNumber() int32 {
299 func (m *Field) GetName() string {
306 func (m *Field) GetTypeUrl() string {
313 func (m *Field) GetOneofIndex() int32 {
320 func (m *Field) GetPacked() bool {
327 func (m *Field) GetOptions() []*Option {
334 func (m *Field) GetJsonName() string {
341 func (m *Field) GetDefaultValue() string {
343 return m.DefaultValue
348 // Enum type definition.
351 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
352 // Enum value definitions.
353 Enumvalue []*EnumValue `protobuf:"bytes,2,rep,name=enumvalue" json:"enumvalue,omitempty"`
354 // Protocol buffer options.
355 Options []*Option `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"`
356 // The source context.
357 SourceContext *google_protobuf1.SourceContext `protobuf:"bytes,4,opt,name=source_context,json=sourceContext" json:"source_context,omitempty"`
358 // The source syntax.
359 Syntax Syntax `protobuf:"varint,5,opt,name=syntax,enum=google.protobuf.Syntax" json:"syntax,omitempty"`
362 func (m *Enum) Reset() { *m = Enum{} }
363 func (m *Enum) String() string { return proto.CompactTextString(m) }
364 func (*Enum) ProtoMessage() {}
365 func (*Enum) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
367 func (m *Enum) GetName() string {
374 func (m *Enum) GetEnumvalue() []*EnumValue {
381 func (m *Enum) GetOptions() []*Option {
388 func (m *Enum) GetSourceContext() *google_protobuf1.SourceContext {
390 return m.SourceContext
395 func (m *Enum) GetSyntax() Syntax {
399 return Syntax_SYNTAX_PROTO2
402 // Enum value definition.
403 type EnumValue struct {
405 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
406 // Enum value number.
407 Number int32 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"`
408 // Protocol buffer options.
409 Options []*Option `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"`
412 func (m *EnumValue) Reset() { *m = EnumValue{} }
413 func (m *EnumValue) String() string { return proto.CompactTextString(m) }
414 func (*EnumValue) ProtoMessage() {}
415 func (*EnumValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
417 func (m *EnumValue) GetName() string {
424 func (m *EnumValue) GetNumber() int32 {
431 func (m *EnumValue) GetOptions() []*Option {
438 // A protocol buffer option, which can be attached to a message, field,
441 // The option's name. For protobuf built-in options (options defined in
442 // descriptor.proto), this is the short name. For example, `"map_entry"`.
443 // For custom options, it should be the fully-qualified name. For example,
444 // `"google.api.http"`.
445 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
446 // The option's value packed in an Any message. If the value is a primitive,
447 // the corresponding wrapper type defined in google/protobuf/wrappers.proto
448 // should be used. If the value is an enum, it should be stored as an int32
449 // value using the google.protobuf.Int32Value type.
450 Value *google_protobuf.Any `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
453 func (m *Option) Reset() { *m = Option{} }
454 func (m *Option) String() string { return proto.CompactTextString(m) }
455 func (*Option) ProtoMessage() {}
456 func (*Option) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
458 func (m *Option) GetName() string {
465 func (m *Option) GetValue() *google_protobuf.Any {
473 proto.RegisterType((*Type)(nil), "google.protobuf.Type")
474 proto.RegisterType((*Field)(nil), "google.protobuf.Field")
475 proto.RegisterType((*Enum)(nil), "google.protobuf.Enum")
476 proto.RegisterType((*EnumValue)(nil), "google.protobuf.EnumValue")
477 proto.RegisterType((*Option)(nil), "google.protobuf.Option")
478 proto.RegisterEnum("google.protobuf.Syntax", Syntax_name, Syntax_value)
479 proto.RegisterEnum("google.protobuf.Field_Kind", Field_Kind_name, Field_Kind_value)
480 proto.RegisterEnum("google.protobuf.Field_Cardinality", Field_Cardinality_name, Field_Cardinality_value)
483 func init() { proto.RegisterFile("google/protobuf/type.proto", fileDescriptor0) }
485 var fileDescriptor0 = []byte{
486 // 810 bytes of a gzipped FileDescriptorProto
487 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x8e, 0xda, 0x56,
488 0x14, 0x8e, 0x8d, 0xf1, 0xe0, 0xc3, 0xc0, 0xdc, 0xdc, 0x44, 0x89, 0x33, 0x91, 0x52, 0x44, 0xbb,
489 0x40, 0x59, 0x80, 0x0a, 0xa3, 0x51, 0xa5, 0xae, 0x60, 0xf0, 0x50, 0x6b, 0x88, 0xed, 0x5e, 0x4c,
490 0x93, 0xe9, 0x06, 0x79, 0xe0, 0x0e, 0x22, 0x31, 0xd7, 0x08, 0xdb, 0xed, 0xb0, 0xe8, 0x23, 0xf4,
491 0x25, 0xba, 0xec, 0xba, 0x0f, 0xd1, 0x47, 0xea, 0xae, 0xd5, 0xbd, 0x06, 0x63, 0x7e, 0x2a, 0x4d,
492 0x9b, 0xcd, 0x68, 0xce, 0xf7, 0x7d, 0xe7, 0xf7, 0x1e, 0x8e, 0xe1, 0x7c, 0x1a, 0x04, 0x53, 0x9f,
493 0x36, 0x16, 0xcb, 0x20, 0x0a, 0xee, 0xe2, 0xfb, 0x46, 0xb4, 0x5a, 0xd0, 0xba, 0xb0, 0xf0, 0x59,
494 0xc2, 0xd5, 0x37, 0xdc, 0xf9, 0xab, 0x7d, 0xb1, 0xc7, 0x56, 0x09, 0x7b, 0xfe, 0xd5, 0x3e, 0x15,
495 0x06, 0xf1, 0x72, 0x4c, 0x47, 0xe3, 0x80, 0x45, 0xf4, 0x21, 0x4a, 0x54, 0xd5, 0x5f, 0x65, 0x50,
496 0xdc, 0xd5, 0x82, 0x62, 0x0c, 0x0a, 0xf3, 0xe6, 0x54, 0x97, 0x2a, 0x52, 0x4d, 0x23, 0xe2, 0x7f,
497 0x5c, 0x07, 0xf5, 0x7e, 0x46, 0xfd, 0x49, 0xa8, 0xcb, 0x95, 0x5c, 0xad, 0xd8, 0x7c, 0x51, 0xdf,
498 0xcb, 0x5f, 0xbf, 0xe6, 0x34, 0x59, 0xab, 0xf0, 0x0b, 0x50, 0x03, 0x46, 0x83, 0xfb, 0x50, 0xcf,
499 0x55, 0x72, 0x35, 0x8d, 0xac, 0x2d, 0xfc, 0x35, 0x9c, 0x04, 0x8b, 0x68, 0x16, 0xb0, 0x50, 0x57,
500 0x44, 0xa0, 0x97, 0x07, 0x81, 0x6c, 0xc1, 0x93, 0x8d, 0x0e, 0x1b, 0x50, 0xde, 0xad, 0x57, 0xcf,
501 0x57, 0xa4, 0x5a, 0xb1, 0xf9, 0xe6, 0xc0, 0x73, 0x20, 0x64, 0x57, 0x89, 0x8a, 0x94, 0xc2, 0xac,
502 0x89, 0x1b, 0xa0, 0x86, 0x2b, 0x16, 0x79, 0x0f, 0xba, 0x5a, 0x91, 0x6a, 0xe5, 0x23, 0x89, 0x07,
503 0x82, 0x26, 0x6b, 0x59, 0xf5, 0x0f, 0x15, 0xf2, 0xa2, 0x29, 0xdc, 0x00, 0xe5, 0xd3, 0x8c, 0x4d,
504 0xc4, 0x40, 0xca, 0xcd, 0xd7, 0xc7, 0x5b, 0xaf, 0xdf, 0xcc, 0xd8, 0x84, 0x08, 0x21, 0xee, 0x42,
505 0x71, 0xec, 0x2d, 0x27, 0x33, 0xe6, 0xf9, 0xb3, 0x68, 0xa5, 0xcb, 0xc2, 0xaf, 0xfa, 0x2f, 0x7e,
506 0x57, 0x5b, 0x25, 0xc9, 0xba, 0xf1, 0x19, 0xb2, 0x78, 0x7e, 0x47, 0x97, 0x7a, 0xae, 0x22, 0xd5,
507 0xf2, 0x64, 0x6d, 0xa5, 0xef, 0xa3, 0x64, 0xde, 0xe7, 0x15, 0x14, 0xf8, 0x72, 0x8c, 0xe2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