github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/golang/protobuf/jsonpb/jsonpb_test_proto/test_objects.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: test_objects.proto
     3  // DO NOT EDIT!
     4  
     5  package jsonpb
     6  
     7  import proto "github.com/insionng/yougam/libraries/golang/protobuf/proto"
     8  import fmt "fmt"
     9  import math "math"
    10  import google_protobuf "github.com/insionng/yougam/libraries/golang/protobuf/ptypes/duration"
    11  import google_protobuf1 "github.com/insionng/yougam/libraries/golang/protobuf/ptypes/struct"
    12  import google_protobuf2 "github.com/insionng/yougam/libraries/golang/protobuf/ptypes/timestamp"
    13  import google_protobuf3 "github.com/insionng/yougam/libraries/golang/protobuf/ptypes/wrappers"
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  type Widget_Color int32
    21  
    22  const (
    23  	Widget_RED   Widget_Color = 0
    24  	Widget_GREEN Widget_Color = 1
    25  	Widget_BLUE  Widget_Color = 2
    26  )
    27  
    28  var Widget_Color_name = map[int32]string{
    29  	0: "RED",
    30  	1: "GREEN",
    31  	2: "BLUE",
    32  }
    33  var Widget_Color_value = map[string]int32{
    34  	"RED":   0,
    35  	"GREEN": 1,
    36  	"BLUE":  2,
    37  }
    38  
    39  func (x Widget_Color) Enum() *Widget_Color {
    40  	p := new(Widget_Color)
    41  	*p = x
    42  	return p
    43  }
    44  func (x Widget_Color) String() string {
    45  	return proto.EnumName(Widget_Color_name, int32(x))
    46  }
    47  func (x *Widget_Color) UnmarshalJSON(data []byte) error {
    48  	value, err := proto.UnmarshalJSONEnum(Widget_Color_value, data, "Widget_Color")
    49  	if err != nil {
    50  		return err
    51  	}
    52  	*x = Widget_Color(value)
    53  	return nil
    54  }
    55  func (Widget_Color) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{2, 0} }
    56  
    57  // Test message for holding primitive types.
    58  type Simple struct {
    59  	OBool            *bool    `protobuf:"varint,1,opt,name=o_bool,json=oBool" json:"o_bool,omitempty"`
    60  	OInt32           *int32   `protobuf:"varint,2,opt,name=o_int32,json=oInt32" json:"o_int32,omitempty"`
    61  	OInt64           *int64   `protobuf:"varint,3,opt,name=o_int64,json=oInt64" json:"o_int64,omitempty"`
    62  	OUint32          *uint32  `protobuf:"varint,4,opt,name=o_uint32,json=oUint32" json:"o_uint32,omitempty"`
    63  	OUint64          *uint64  `protobuf:"varint,5,opt,name=o_uint64,json=oUint64" json:"o_uint64,omitempty"`
    64  	OSint32          *int32   `protobuf:"zigzag32,6,opt,name=o_sint32,json=oSint32" json:"o_sint32,omitempty"`
    65  	OSint64          *int64   `protobuf:"zigzag64,7,opt,name=o_sint64,json=oSint64" json:"o_sint64,omitempty"`
    66  	OFloat           *float32 `protobuf:"fixed32,8,opt,name=o_float,json=oFloat" json:"o_float,omitempty"`
    67  	ODouble          *float64 `protobuf:"fixed64,9,opt,name=o_double,json=oDouble" json:"o_double,omitempty"`
    68  	OString          *string  `protobuf:"bytes,10,opt,name=o_string,json=oString" json:"o_string,omitempty"`
    69  	OBytes           []byte   `protobuf:"bytes,11,opt,name=o_bytes,json=oBytes" json:"o_bytes,omitempty"`
    70  	XXX_unrecognized []byte   `json:"-"`
    71  }
    72  
    73  func (m *Simple) Reset()                    { *m = Simple{} }
    74  func (m *Simple) String() string            { return proto.CompactTextString(m) }
    75  func (*Simple) ProtoMessage()               {}
    76  func (*Simple) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
    77  
    78  func (m *Simple) GetOBool() bool {
    79  	if m != nil && m.OBool != nil {
    80  		return *m.OBool
    81  	}
    82  	return false
    83  }
    84  
    85  func (m *Simple) GetOInt32() int32 {
    86  	if m != nil && m.OInt32 != nil {
    87  		return *m.OInt32
    88  	}
    89  	return 0
    90  }
    91  
    92  func (m *Simple) GetOInt64() int64 {
    93  	if m != nil && m.OInt64 != nil {
    94  		return *m.OInt64
    95  	}
    96  	return 0
    97  }
    98  
    99  func (m *Simple) GetOUint32() uint32 {
   100  	if m != nil && m.OUint32 != nil {
   101  		return *m.OUint32
   102  	}
   103  	return 0
   104  }
   105  
   106  func (m *Simple) GetOUint64() uint64 {
   107  	if m != nil && m.OUint64 != nil {
   108  		return *m.OUint64
   109  	}
   110  	return 0
   111  }
   112  
   113  func (m *Simple) GetOSint32() int32 {
   114  	if m != nil && m.OSint32 != nil {
   115  		return *m.OSint32
   116  	}
   117  	return 0
   118  }
   119  
   120  func (m *Simple) GetOSint64() int64 {
   121  	if m != nil && m.OSint64 != nil {
   122  		return *m.OSint64
   123  	}
   124  	return 0
   125  }
   126  
   127  func (m *Simple) GetOFloat() float32 {
   128  	if m != nil && m.OFloat != nil {
   129  		return *m.OFloat
   130  	}
   131  	return 0
   132  }
   133  
   134  func (m *Simple) GetODouble() float64 {
   135  	if m != nil && m.ODouble != nil {
   136  		return *m.ODouble
   137  	}
   138  	return 0
   139  }
   140  
   141  func (m *Simple) GetOString() string {
   142  	if m != nil && m.OString != nil {
   143  		return *m.OString
   144  	}
   145  	return ""
   146  }
   147  
   148  func (m *Simple) GetOBytes() []byte {
   149  	if m != nil {
   150  		return m.OBytes
   151  	}
   152  	return nil
   153  }
   154  
   155  // Test message for holding repeated primitives.
   156  type Repeats struct {
   157  	RBool            []bool    `protobuf:"varint,1,rep,name=r_bool,json=rBool" json:"r_bool,omitempty"`
   158  	RInt32           []int32   `protobuf:"varint,2,rep,name=r_int32,json=rInt32" json:"r_int32,omitempty"`
   159  	RInt64           []int64   `protobuf:"varint,3,rep,name=r_int64,json=rInt64" json:"r_int64,omitempty"`
   160  	RUint32          []uint32  `protobuf:"varint,4,rep,name=r_uint32,json=rUint32" json:"r_uint32,omitempty"`
   161  	RUint64          []uint64  `protobuf:"varint,5,rep,name=r_uint64,json=rUint64" json:"r_uint64,omitempty"`
   162  	RSint32          []int32   `protobuf:"zigzag32,6,rep,name=r_sint32,json=rSint32" json:"r_sint32,omitempty"`
   163  	RSint64          []int64   `protobuf:"zigzag64,7,rep,name=r_sint64,json=rSint64" json:"r_sint64,omitempty"`
   164  	RFloat           []float32 `protobuf:"fixed32,8,rep,name=r_float,json=rFloat" json:"r_float,omitempty"`
   165  	RDouble          []float64 `protobuf:"fixed64,9,rep,name=r_double,json=rDouble" json:"r_double,omitempty"`
   166  	RString          []string  `protobuf:"bytes,10,rep,name=r_string,json=rString" json:"r_string,omitempty"`
   167  	RBytes           [][]byte  `protobuf:"bytes,11,rep,name=r_bytes,json=rBytes" json:"r_bytes,omitempty"`
   168  	XXX_unrecognized []byte    `json:"-"`
   169  }
   170  
   171  func (m *Repeats) Reset()                    { *m = Repeats{} }
   172  func (m *Repeats) String() string            { return proto.CompactTextString(m) }
   173  func (*Repeats) ProtoMessage()               {}
   174  func (*Repeats) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
   175  
   176  func (m *Repeats) GetRBool() []bool {
   177  	if m != nil {
   178  		return m.RBool
   179  	}
   180  	return nil
   181  }
   182  
   183  func (m *Repeats) GetRInt32() []int32 {
   184  	if m != nil {
   185  		return m.RInt32
   186  	}
   187  	return nil
   188  }
   189  
   190  func (m *Repeats) GetRInt64() []int64 {
   191  	if m != nil {
   192  		return m.RInt64
   193  	}
   194  	return nil
   195  }
   196  
   197  func (m *Repeats) GetRUint32() []uint32 {
   198  	if m != nil {
   199  		return m.RUint32
   200  	}
   201  	return nil
   202  }
   203  
   204  func (m *Repeats) GetRUint64() []uint64 {
   205  	if m != nil {
   206  		return m.RUint64
   207  	}
   208  	return nil
   209  }
   210  
   211  func (m *Repeats) GetRSint32() []int32 {
   212  	if m != nil {
   213  		return m.RSint32
   214  	}
   215  	return nil
   216  }
   217  
   218  func (m *Repeats) GetRSint64() []int64 {
   219  	if m != nil {
   220  		return m.RSint64
   221  	}
   222  	return nil
   223  }
   224  
   225  func (m *Repeats) GetRFloat() []float32 {
   226  	if m != nil {
   227  		return m.RFloat
   228  	}
   229  	return nil
   230  }
   231  
   232  func (m *Repeats) GetRDouble() []float64 {
   233  	if m != nil {
   234  		return m.RDouble
   235  	}
   236  	return nil
   237  }
   238  
   239  func (m *Repeats) GetRString() []string {
   240  	if m != nil {
   241  		return m.RString
   242  	}
   243  	return nil
   244  }
   245  
   246  func (m *Repeats) GetRBytes() [][]byte {
   247  	if m != nil {
   248  		return m.RBytes
   249  	}
   250  	return nil
   251  }
   252  
   253  // Test message for holding enums and nested messages.
   254  type Widget struct {
   255  	Color            *Widget_Color  `protobuf:"varint,1,opt,name=color,enum=jsonpb.Widget_Color" json:"color,omitempty"`
   256  	RColor           []Widget_Color `protobuf:"varint,2,rep,name=r_color,json=rColor,enum=jsonpb.Widget_Color" json:"r_color,omitempty"`
   257  	Simple           *Simple        `protobuf:"bytes,10,opt,name=simple" json:"simple,omitempty"`
   258  	RSimple          []*Simple      `protobuf:"bytes,11,rep,name=r_simple,json=rSimple" json:"r_simple,omitempty"`
   259  	Repeats          *Repeats       `protobuf:"bytes,20,opt,name=repeats" json:"repeats,omitempty"`
   260  	RRepeats         []*Repeats     `protobuf:"bytes,21,rep,name=r_repeats,json=rRepeats" json:"r_repeats,omitempty"`
   261  	XXX_unrecognized []byte         `json:"-"`
   262  }
   263  
   264  func (m *Widget) Reset()                    { *m = Widget{} }
   265  func (m *Widget) String() string            { return proto.CompactTextString(m) }
   266  func (*Widget) ProtoMessage()               {}
   267  func (*Widget) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
   268  
   269  func (m *Widget) GetColor() Widget_Color {
   270  	if m != nil && m.Color != nil {
   271  		return *m.Color
   272  	}
   273  	return Widget_RED
   274  }
   275  
   276  func (m *Widget) GetRColor() []Widget_Color {
   277  	if m != nil {
   278  		return m.RColor
   279  	}
   280  	return nil
   281  }
   282  
   283  func (m *Widget) GetSimple() *Simple {
   284  	if m != nil {
   285  		return m.Simple
   286  	}
   287  	return nil
   288  }
   289  
   290  func (m *Widget) GetRSimple() []*Simple {
   291  	if m != nil {
   292  		return m.RSimple
   293  	}
   294  	return nil
   295  }
   296  
   297  func (m *Widget) GetRepeats() *Repeats {
   298  	if m != nil {
   299  		return m.Repeats
   300  	}
   301  	return nil
   302  }
   303  
   304  func (m *Widget) GetRRepeats() []*Repeats {
   305  	if m != nil {
   306  		return m.RRepeats
   307  	}
   308  	return nil
   309  }
   310  
   311  type Maps struct {
   312  	MInt64Str        map[int64]string `protobuf:"bytes,1,rep,name=m_int64_str,json=mInt64Str" json:"m_int64_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
   313  	MBoolSimple      map[bool]*Simple `protobuf:"bytes,2,rep,name=m_bool_simple,json=mBoolSimple" json:"m_bool_simple,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
   314  	XXX_unrecognized []byte           `json:"-"`
   315  }
   316  
   317  func (m *Maps) Reset()                    { *m = Maps{} }
   318  func (m *Maps) String() string            { return proto.CompactTextString(m) }
   319  func (*Maps) ProtoMessage()               {}
   320  func (*Maps) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
   321  
   322  func (m *Maps) GetMInt64Str() map[int64]string {
   323  	if m != nil {
   324  		return m.MInt64Str
   325  	}
   326  	return nil
   327  }
   328  
   329  func (m *Maps) GetMBoolSimple() map[bool]*Simple {
   330  	if m != nil {
   331  		return m.MBoolSimple
   332  	}
   333  	return nil
   334  }
   335  
   336  type MsgWithOneof struct {
   337  	// Types that are valid to be assigned to Union:
   338  	//	*MsgWithOneof_Title
   339  	//	*MsgWithOneof_Salary
   340  	//	*MsgWithOneof_Country
   341  	Union            isMsgWithOneof_Union `protobuf_oneof:"union"`
   342  	XXX_unrecognized []byte               `json:"-"`
   343  }
   344  
   345  func (m *MsgWithOneof) Reset()                    { *m = MsgWithOneof{} }
   346  func (m *MsgWithOneof) String() string            { return proto.CompactTextString(m) }
   347  func (*MsgWithOneof) ProtoMessage()               {}
   348  func (*MsgWithOneof) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
   349  
   350  type isMsgWithOneof_Union interface {
   351  	isMsgWithOneof_Union()
   352  }
   353  
   354  type MsgWithOneof_Title struct {
   355  	Title string `protobuf:"bytes,1,opt,name=title,oneof"`
   356  }
   357  type MsgWithOneof_Salary struct {
   358  	Salary int64 `protobuf:"varint,2,opt,name=salary,oneof"`
   359  }
   360  type MsgWithOneof_Country struct {
   361  	Country string `protobuf:"bytes,3,opt,name=Country,json=country,oneof"`
   362  }
   363  
   364  func (*MsgWithOneof_Title) isMsgWithOneof_Union()   {}
   365  func (*MsgWithOneof_Salary) isMsgWithOneof_Union()  {}
   366  func (*MsgWithOneof_Country) isMsgWithOneof_Union() {}
   367  
   368  func (m *MsgWithOneof) GetUnion() isMsgWithOneof_Union {
   369  	if m != nil {
   370  		return m.Union
   371  	}
   372  	return nil
   373  }
   374  
   375  func (m *MsgWithOneof) GetTitle() string {
   376  	if x, ok := m.GetUnion().(*MsgWithOneof_Title); ok {
   377  		return x.Title
   378  	}
   379  	return ""
   380  }
   381  
   382  func (m *MsgWithOneof) GetSalary() int64 {
   383  	if x, ok := m.GetUnion().(*MsgWithOneof_Salary); ok {
   384  		return x.Salary
   385  	}
   386  	return 0
   387  }
   388  
   389  func (m *MsgWithOneof) GetCountry() string {
   390  	if x, ok := m.GetUnion().(*MsgWithOneof_Country); ok {
   391  		return x.Country
   392  	}
   393  	return ""
   394  }
   395  
   396  // XXX_OneofFuncs is for the internal use of the proto package.
   397  func (*MsgWithOneof) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
   398  	return _MsgWithOneof_OneofMarshaler, _MsgWithOneof_OneofUnmarshaler, _MsgWithOneof_OneofSizer, []interface{}{
   399  		(*MsgWithOneof_Title)(nil),
   400  		(*MsgWithOneof_Salary)(nil),
   401  		(*MsgWithOneof_Country)(nil),
   402  	}
   403  }
   404  
   405  func _MsgWithOneof_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
   406  	m := msg.(*MsgWithOneof)
   407  	// union
   408  	switch x := m.Union.(type) {
   409  	case *MsgWithOneof_Title:
   410  		b.EncodeVarint(1<<3 | proto.WireBytes)
   411  		b.EncodeStringBytes(x.Title)
   412  	case *MsgWithOneof_Salary:
   413  		b.EncodeVarint(2<<3 | proto.WireVarint)
   414  		b.EncodeVarint(uint64(x.Salary))
   415  	case *MsgWithOneof_Country:
   416  		b.EncodeVarint(3<<3 | proto.WireBytes)
   417  		b.EncodeStringBytes(x.Country)
   418  	case nil:
   419  	default:
   420  		return fmt.Errorf("MsgWithOneof.Union has unexpected type %T", x)
   421  	}
   422  	return nil
   423  }
   424  
   425  func _MsgWithOneof_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
   426  	m := msg.(*MsgWithOneof)
   427  	switch tag {
   428  	case 1: // union.title
   429  		if wire != proto.WireBytes {
   430  			return true, proto.ErrInternalBadWireType
   431  		}
   432  		x, err := b.DecodeStringBytes()
   433  		m.Union = &MsgWithOneof_Title{x}
   434  		return true, err
   435  	case 2: // union.salary
   436  		if wire != proto.WireVarint {
   437  			return true, proto.ErrInternalBadWireType
   438  		}
   439  		x, err := b.DecodeVarint()
   440  		m.Union = &MsgWithOneof_Salary{int64(x)}
   441  		return true, err
   442  	case 3: // union.Country
   443  		if wire != proto.WireBytes {
   444  			return true, proto.ErrInternalBadWireType
   445  		}
   446  		x, err := b.DecodeStringBytes()
   447  		m.Union = &MsgWithOneof_Country{x}
   448  		return true, err
   449  	default:
   450  		return false, nil
   451  	}
   452  }
   453  
   454  func _MsgWithOneof_OneofSizer(msg proto.Message) (n int) {
   455  	m := msg.(*MsgWithOneof)
   456  	// union
   457  	switch x := m.Union.(type) {
   458  	case *MsgWithOneof_Title:
   459  		n += proto.SizeVarint(1<<3 | proto.WireBytes)
   460  		n += proto.SizeVarint(uint64(len(x.Title)))
   461  		n += len(x.Title)
   462  	case *MsgWithOneof_Salary:
   463  		n += proto.SizeVarint(2<<3 | proto.WireVarint)
   464  		n += proto.SizeVarint(uint64(x.Salary))
   465  	case *MsgWithOneof_Country:
   466  		n += proto.SizeVarint(3<<3 | proto.WireBytes)
   467  		n += proto.SizeVarint(uint64(len(x.Country)))
   468  		n += len(x.Country)
   469  	case nil:
   470  	default:
   471  		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
   472  	}
   473  	return n
   474  }
   475  
   476  type Real struct {
   477  	Value            *float64                  `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
   478  	XXX_extensions   map[int32]proto.Extension `json:"-"`
   479  	XXX_unrecognized []byte                    `json:"-"`
   480  }
   481  
   482  func (m *Real) Reset()                    { *m = Real{} }
   483  func (m *Real) String() string            { return proto.CompactTextString(m) }
   484  func (*Real) ProtoMessage()               {}
   485  func (*Real) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
   486  
   487  var extRange_Real = []proto.ExtensionRange{
   488  	{100, 536870911},
   489  }
   490  
   491  func (*Real) ExtensionRangeArray() []proto.ExtensionRange {
   492  	return extRange_Real
   493  }
   494  func (m *Real) ExtensionMap() map[int32]proto.Extension {
   495  	if m.XXX_extensions == nil {
   496  		m.XXX_extensions = make(map[int32]proto.Extension)
   497  	}
   498  	return m.XXX_extensions
   499  }
   500  
   501  func (m *Real) GetValue() float64 {
   502  	if m != nil && m.Value != nil {
   503  		return *m.Value
   504  	}
   505  	return 0
   506  }
   507  
   508  type Complex struct {
   509  	Imaginary        *float64                  `protobuf:"fixed64,1,opt,name=imaginary" json:"imaginary,omitempty"`
   510  	XXX_extensions   map[int32]proto.Extension `json:"-"`
   511  	XXX_unrecognized []byte                    `json:"-"`
   512  }
   513  
   514  func (m *Complex) Reset()                    { *m = Complex{} }
   515  func (m *Complex) String() string            { return proto.CompactTextString(m) }
   516  func (*Complex) ProtoMessage()               {}
   517  func (*Complex) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
   518  
   519  var extRange_Complex = []proto.ExtensionRange{
   520  	{100, 536870911},
   521  }
   522  
   523  func (*Complex) ExtensionRangeArray() []proto.ExtensionRange {
   524  	return extRange_Complex
   525  }
   526  func (m *Complex) ExtensionMap() map[int32]proto.Extension {
   527  	if m.XXX_extensions == nil {
   528  		m.XXX_extensions = make(map[int32]proto.Extension)
   529  	}
   530  	return m.XXX_extensions
   531  }
   532  
   533  func (m *Complex) GetImaginary() float64 {
   534  	if m != nil && m.Imaginary != nil {
   535  		return *m.Imaginary
   536  	}
   537  	return 0
   538  }
   539  
   540  var E_Complex_RealExtension = &proto.ExtensionDesc{
   541  	ExtendedType:  (*Real)(nil),
   542  	ExtensionType: (*Complex)(nil),
   543  	Field:         123,
   544  	Name:          "jsonpb.Complex.real_extension",
   545  	Tag:           "bytes,123,opt,name=real_extension,json=realExtension",
   546  }
   547  
   548  type KnownTypes struct {
   549  	Dur              *google_protobuf.Duration     `protobuf:"bytes,1,opt,name=dur" json:"dur,omitempty"`
   550  	St               *google_protobuf1.Struct      `protobuf:"bytes,12,opt,name=st" json:"st,omitempty"`
   551  	Ts               *google_protobuf2.Timestamp   `protobuf:"bytes,2,opt,name=ts" json:"ts,omitempty"`
   552  	Dbl              *google_protobuf3.DoubleValue `protobuf:"bytes,3,opt,name=dbl" json:"dbl,omitempty"`
   553  	Flt              *google_protobuf3.FloatValue  `protobuf:"bytes,4,opt,name=flt" json:"flt,omitempty"`
   554  	I64              *google_protobuf3.Int64Value  `protobuf:"bytes,5,opt,name=i64" json:"i64,omitempty"`
   555  	U64              *google_protobuf3.UInt64Value `protobuf:"bytes,6,opt,name=u64" json:"u64,omitempty"`
   556  	I32              *google_protobuf3.Int32Value  `protobuf:"bytes,7,opt,name=i32" json:"i32,omitempty"`
   557  	U32              *google_protobuf3.UInt32Value `protobuf:"bytes,8,opt,name=u32" json:"u32,omitempty"`
   558  	Bool             *google_protobuf3.BoolValue   `protobuf:"bytes,9,opt,name=bool" json:"bool,omitempty"`
   559  	Str              *google_protobuf3.StringValue `protobuf:"bytes,10,opt,name=str" json:"str,omitempty"`
   560  	Bytes            *google_protobuf3.BytesValue  `protobuf:"bytes,11,opt,name=bytes" json:"bytes,omitempty"`
   561  	XXX_unrecognized []byte                        `json:"-"`
   562  }
   563  
   564  func (m *KnownTypes) Reset()                    { *m = KnownTypes{} }
   565  func (m *KnownTypes) String() string            { return proto.CompactTextString(m) }
   566  func (*KnownTypes) ProtoMessage()               {}
   567  func (*KnownTypes) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
   568  
   569  func (m *KnownTypes) GetDur() *google_protobuf.Duration {
   570  	if m != nil {
   571  		return m.Dur
   572  	}
   573  	return nil
   574  }
   575  
   576  func (m *KnownTypes) GetSt() *google_protobuf1.Struct {
   577  	if m != nil {
   578  		return m.St
   579  	}
   580  	return nil
   581  }
   582  
   583  func (m *KnownTypes) GetTs() *google_protobuf2.Timestamp {
   584  	if m != nil {
   585  		return m.Ts
   586  	}
   587  	return nil
   588  }
   589  
   590  func (m *KnownTypes) GetDbl() *google_protobuf3.DoubleValue {
   591  	if m != nil {
   592  		return m.Dbl
   593  	}
   594  	return nil
   595  }
   596  
   597  func (m *KnownTypes) GetFlt() *google_protobuf3.FloatValue {
   598  	if m != nil {
   599  		return m.Flt
   600  	}
   601  	return nil
   602  }
   603  
   604  func (m *KnownTypes) GetI64() *google_protobuf3.Int64Value {
   605  	if m != nil {
   606  		return m.I64
   607  	}
   608  	return nil
   609  }
   610  
   611  func (m *KnownTypes) GetU64() *google_protobuf3.UInt64Value {
   612  	if m != nil {
   613  		return m.U64
   614  	}
   615  	return nil
   616  }
   617  
   618  func (m *KnownTypes) GetI32() *google_protobuf3.Int32Value {
   619  	if m != nil {
   620  		return m.I32
   621  	}
   622  	return nil
   623  }
   624  
   625  func (m *KnownTypes) GetU32() *google_protobuf3.UInt32Value {
   626  	if m != nil {
   627  		return m.U32
   628  	}
   629  	return nil
   630  }
   631  
   632  func (m *KnownTypes) GetBool() *google_protobuf3.BoolValue {
   633  	if m != nil {
   634  		return m.Bool
   635  	}
   636  	return nil
   637  }
   638  
   639  func (m *KnownTypes) GetStr() *google_protobuf3.StringValue {
   640  	if m != nil {
   641  		return m.Str
   642  	}
   643  	return nil
   644  }
   645  
   646  func (m *KnownTypes) GetBytes() *google_protobuf3.BytesValue {
   647  	if m != nil {
   648  		return m.Bytes
   649  	}
   650  	return nil
   651  }
   652  
   653  var E_Name = &proto.ExtensionDesc{
   654  	ExtendedType:  (*Real)(nil),
   655  	ExtensionType: (*string)(nil),
   656  	Field:         124,
   657  	Name:          "jsonpb.name",
   658  	Tag:           "bytes,124,opt,name=name",
   659  }
   660  
   661  func init() {
   662  	proto.RegisterType((*Simple)(nil), "jsonpb.Simple")
   663  	proto.RegisterType((*Repeats)(nil), "jsonpb.Repeats")
   664  	proto.RegisterType((*Widget)(nil), "jsonpb.Widget")
   665  	proto.RegisterType((*Maps)(nil), "jsonpb.Maps")
   666  	proto.RegisterType((*MsgWithOneof)(nil), "jsonpb.MsgWithOneof")
   667  	proto.RegisterType((*Real)(nil), "jsonpb.Real")
   668  	proto.RegisterType((*Complex)(nil), "jsonpb.Complex")
   669  	proto.RegisterType((*KnownTypes)(nil), "jsonpb.KnownTypes")
   670  	proto.RegisterEnum("jsonpb.Widget_Color", Widget_Color_name, Widget_Color_value)
   671  	proto.RegisterExtension(E_Complex_RealExtension)
   672  	proto.RegisterExtension(E_Name)
   673  }
   674  
   675  var fileDescriptor1 = []byte{
   676  	// 1008 bytes of a gzipped FileDescriptorProto
   677  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x95, 0xdf, 0x72, 0xdb, 0x44,
   678  	0x14, 0xc6, 0x2b, 0xad, 0x25, 0xd9, 0xeb, 0x24, 0x98, 0x9d, 0x94, 0xaa, 0x26, 0x80, 0xc6, 0x03,
   679  	0x45, 0x14, 0xea, 0x0e, 0x8a, 0xc7, 0xc3, 0x14, 0x6e, 0x48, 0x63, 0x28, 0x03, 0x29, 0x33, 0xeb,
   680  	0x86, 0x5e, 0x7a, 0xe4, 0x78, 0x6d, 0x54, 0x64, 0xad, 0x67, 0x77, 0x45, 0xea, 0x81, 0x8b, 0x3c,
   681  	0x04, 0xaf, 0x00, 0x8f, 0xc0, 0x25, 0xcf, 0xc6, 0x9c, 0x5d, 0xfd, 0x71, 0xec, 0xf8, 0x2a, 0x3e,
   682  	0x3a, 0xdf, 0xf9, 0xb2, 0xfa, 0xed, 0xd1, 0x39, 0x98, 0x28, 0x26, 0xd5, 0x84, 0x4f, 0xdf, 0xb0,
   683  	0x2b, 0x25, 0xfb, 0x2b, 0xc1, 0x15, 0x27, 0xee, 0x1b, 0xc9, 0xb3, 0xd5, 0xb4, 0xfb, 0xe1, 0x82,
   684  	0xf3, 0x45, 0xca, 0x9e, 0xea, 0xa7, 0xd3, 0x7c, 0xfe, 0x74, 0x96, 0x8b, 0x58, 0x25, 0x3c, 0x33,
   685  	0xba, 0xee, 0xc9, 0x76, 0x5e, 0x2a, 0x91, 0x5f, 0xa9, 0x22, 0xfb, 0xd1, 0x76, 0x56, 0x25, 0x4b,
   686  	0x26, 0x55, 0xbc, 0x5c, 0x15, 0x82, 0x1d, 0xfb, 0x6b, 0x11, 0xaf, 0x56, 0x4c, 0x14, 0xc7, 0xe8,
   687  	0xfd, 0x6d, 0x63, 0x77, 0x9c, 0x2c, 0x57, 0x29, 0x23, 0xf7, 0xb1, 0xcb, 0x27, 0x53, 0xce, 0x53,
   688  	0xdf, 0x0a, 0xac, 0xb0, 0x49, 0x1d, 0x7e, 0xc6, 0x79, 0x4a, 0x1e, 0x60, 0x8f, 0x4f, 0x92, 0x4c,
   689  	0x9d, 0x46, 0xbe, 0x1d, 0x58, 0xa1, 0x43, 0x5d, 0xfe, 0x03, 0x44, 0x55, 0x62, 0x38, 0xf0, 0x51,
   690  	0x60, 0x85, 0xc8, 0x24, 0x86, 0x03, 0xf2, 0x10, 0x37, 0xf9, 0x24, 0x37, 0x25, 0x8d, 0xc0, 0x0a,
   691  	0x0f, 0xa9, 0xc7, 0x2f, 0x75, 0x58, 0xa7, 0x86, 0x03, 0xdf, 0x09, 0xac, 0xb0, 0x51, 0xa4, 0xca,
   692  	0x2a, 0x69, 0xaa, 0xdc, 0xc0, 0x0a, 0xdf, 0xa5, 0x1e, 0x1f, 0x6f, 0x54, 0x49, 0x53, 0xe5, 0x05,
   693  	0x56, 0x48, 0x8a, 0xd4, 0x70, 0x60, 0x0e, 0x31, 0x4f, 0x79, 0xac, 0xfc, 0x66, 0x60, 0x85, 0x36,
   694  	0x75, 0xf9, 0x77, 0x10, 0x99, 0x9a, 0x19, 0xcf, 0xa7, 0x29, 0xf3, 0x5b, 0x81, 0x15, 0x5a, 0xd4,
   695  	0xe3, 0xe7, 0x3a, 0x2c, 0xec, 0x94, 0x48, 0xb2, 0x85, 0x8f, 0x03, 0x2b, 0x6c, 0x81, 0x9d, 0x0e,
   696  	0x8d, 0xdd, 0x74, 0xad, 0x98, 0xf4, 0xdb, 0x81, 0x15, 0x1e, 0x50, 0x97, 0x9f, 0x41, 0xd4, 0xfb,
   697  	0xc7, 0xc6, 0x1e, 0x65, 0x2b, 0x16, 0x2b, 0x09, 0xa0, 0x44, 0x09, 0x0a, 0x01, 0x28, 0x51, 0x82,
   698  	0x12, 0x15, 0x28, 0x04, 0xa0, 0x44, 0x05, 0x4a, 0x54, 0xa0, 0x10, 0x80, 0x12, 0x15, 0x28, 0x51,
   699  	0x83, 0x42, 0x00, 0x4a, 0xd4, 0xa0, 0x44, 0x0d, 0x0a, 0x01, 0x28, 0x51, 0x83, 0x12, 0x35, 0x28,
   700  	0x04, 0xa0, 0xc4, 0x78, 0xa3, 0xaa, 0x02, 0x85, 0x00, 0x94, 0xa8, 0x41, 0x89, 0x0a, 0x14, 0x02,
   701  	0x50, 0xa2, 0x02, 0x25, 0x6a, 0x50, 0x08, 0x40, 0x89, 0x1a, 0x94, 0xa8, 0x41, 0x21, 0x00, 0x25,
   702  	0x6a, 0x50, 0xa2, 0x02, 0x85, 0x00, 0x94, 0x30, 0xa0, 0xfe, 0xb5, 0xb1, 0xfb, 0x3a, 0x99, 0x2d,
   703  	0x98, 0x22, 0x8f, 0xb1, 0x73, 0xc5, 0x53, 0x2e, 0x74, 0x3f, 0x1d, 0x45, 0xc7, 0x7d, 0xd3, 0xf2,
   704  	0x7d, 0x93, 0xee, 0x3f, 0x87, 0x1c, 0x35, 0x12, 0xf2, 0x04, 0xfc, 0x8c, 0x1a, 0xe0, 0xed, 0x53,
   705  	0xbb, 0x42, 0xff, 0x25, 0x8f, 0xb0, 0x2b, 0x75, 0xd7, 0xea, 0x0b, 0x6c, 0x47, 0x47, 0xa5, 0xda,
   706  	0xf4, 0x32, 0x2d, 0xb2, 0xe4, 0x33, 0x03, 0x44, 0x2b, 0xe1, 0x9c, 0xbb, 0x4a, 0x00, 0x54, 0x48,
   707  	0x3d, 0x61, 0x2e, 0xd8, 0x3f, 0xd6, 0x9e, 0xef, 0x94, 0xca, 0xe2, 0xde, 0x69, 0x99, 0x27, 0x5f,
   708  	0xe0, 0x96, 0x98, 0x94, 0xe2, 0xfb, 0xda, 0x76, 0x47, 0xdc, 0x14, 0xc5, 0xaf, 0xde, 0x27, 0xd8,
   709  	0x31, 0x87, 0xf6, 0x30, 0xa2, 0xa3, 0xf3, 0xce, 0x3d, 0xd2, 0xc2, 0xce, 0xf7, 0x74, 0x34, 0x7a,
   710  	0xd9, 0xb1, 0x48, 0x13, 0x37, 0xce, 0x7e, 0xba, 0x1c, 0x75, 0xec, 0xde, 0x5f, 0x36, 0x6e, 0x5c,
   711  	0xc4, 0x2b, 0x49, 0xbe, 0xc6, 0xed, 0xa5, 0x69, 0x17, 0x60, 0xaf, 0x7b, 0xac, 0x1d, 0xbd, 0x5f,
   712  	0xfa, 0x83, 0xa4, 0x7f, 0xa1, 0xfb, 0x67, 0xac, 0xc4, 0x28, 0x53, 0x62, 0x4d, 0x5b, 0xcb, 0x32,
   713  	0x26, 0xdf, 0xe2, 0xc3, 0xa5, 0xee, 0xcd, 0xf2, 0xad, 0x6d, 0x5d, 0xfe, 0xc1, 0xed, 0x72, 0xe8,
   714  	0x57, 0xf3, 0xda, 0xc6, 0xa0, 0xbd, 0xac, 0x9f, 0x74, 0xbf, 0xc1, 0x47, 0xb7, 0xfd, 0x49, 0x07,
   715  	0xa3, 0xdf, 0xd8, 0x5a, 0x5f, 0x23, 0xa2, 0xf0, 0x93, 0x1c, 0x63, 0xe7, 0xf7, 0x38, 0xcd, 0x99,
   716  	0x1e, 0x09, 0x2d, 0x6a, 0x82, 0x67, 0xf6, 0x57, 0x56, 0xf7, 0x25, 0xee, 0x6c, 0xdb, 0x6f, 0xd6,
   717  	0x37, 0x4d, 0xfd, 0xc7, 0x9b, 0xf5, 0xbb, 0x97, 0x52, 0xfb, 0xf5, 0x18, 0x3e, 0xb8, 0x90, 0x8b,
   718  	0xd7, 0x89, 0xfa, 0xf5, 0xe7, 0x8c, 0xf1, 0x39, 0x79, 0x0f, 0x3b, 0x2a, 0x51, 0x29, 0xd3, 0x6e,
   719  	0xad, 0x17, 0xf7, 0xa8, 0x09, 0x89, 0x8f, 0x5d, 0x19, 0xa7, 0xb1, 0x58, 0x6b, 0x4b, 0xf4, 0xe2,
   720  	0x1e, 0x2d, 0x62, 0xd2, 0xc5, 0xde, 0x73, 0x9e, 0xc3, 0x41, 0xf4, 0x9c, 0x82, 0x1a, 0xef, 0xca,
   721  	0x3c, 0x38, 0xf3, 0xb0, 0x93, 0x67, 0x09, 0xcf, 0x7a, 0x8f, 0x70, 0x83, 0xb2, 0x38, 0xad, 0x5f,
   722  	0xcc, 0xd2, 0x33, 0xc3, 0x04, 0x8f, 0x9b, 0xcd, 0x59, 0xe7, 0xe6, 0xe6, 0xe6, 0xc6, 0xee, 0x5d,
   723  	0x83, 0x19, 0x9c, 0xf1, 0x2d, 0x39, 0xc1, 0xad, 0x64, 0x19, 0x2f, 0x92, 0x0c, 0xfe, 0xa9, 0x91,
   724  	0xd7, 0x0f, 0xea, 0x92, 0xe8, 0x1c, 0x1f, 0x09, 0x16, 0xa7, 0x13, 0xf6, 0x56, 0xb1, 0x4c, 0x26,
   725  	0x3c, 0x23, 0x07, 0x75, 0xb3, 0xc4, 0xa9, 0xff, 0xc7, 0xed, 0x6e, 0x2b, 0xec, 0xe9, 0x21, 0x14,
   726  	0x8d, 0xca, 0x9a, 0xde, 0x7f, 0x0d, 0x8c, 0x7f, 0xcc, 0xf8, 0x75, 0xf6, 0x6a, 0xbd, 0x62, 0x92,
   727  	0x7c, 0x8e, 0xd1, 0x2c, 0x37, 0x5f, 0x56, 0x3b, 0x7a, 0xd8, 0x37, 0x53, 0xbe, 0x5f, 0x4e, 0xf9,
   728  	0xfe, 0x79, 0xb1, 0x44, 0x28, 0xa8, 0xc8, 0xa7, 0xd8, 0x96, 0xca, 0x3f, 0xd0, 0xda, 0x07, 0x3b,
   729  	0xda, 0xb1, 0x5e, 0x28, 0xd4, 0x96, 0xf0, 0xc5, 0xda, 0x4a, 0x16, 0x77, 0xd2, 0xdd, 0x11, 0xbe,
   730  	0x2a, 0x77, 0x0b, 0xb5, 0x95, 0x24, 0x7d, 0x8c, 0x66, 0xd3, 0x54, 0x23, 0x6d, 0x47, 0x27, 0xbb,
   731  	0x27, 0xd0, 0x23, 0xe4, 0x17, 0xc0, 0x47, 0x41, 0x48, 0x9e, 0x60, 0x34, 0x4f, 0x95, 0x5e, 0x08,
   732  	0xd0, 0xce, 0xdb, 0x7a, 0x3d, 0x8c, 0x0a, 0xf9, 0x3c, 0x55, 0x20, 0x4f, 0x8a, 0x25, 0x71, 0x97,
   733  	0x5c, 0x37, 0x68, 0x21, 0x4f, 0x86, 0x03, 0x38, 0x4d, 0x3e, 0x1c, 0xe8, 0xc5, 0x71, 0xd7, 0x69,
   734  	0x2e, 0x37, 0xf5, 0xf9, 0x70, 0xa0, 0xed, 0x4f, 0x23, 0xbd, 0x4d, 0xf6, 0xd8, 0x9f, 0x46, 0xa5,
   735  	0xfd, 0x69, 0xa4, 0xed, 0x4f, 0x23, 0xbd, 0x62, 0xf6, 0xd9, 0x57, 0xfa, 0x5c, 0xeb, 0x1b, 0x7a,
   736  	0x41, 0xb4, 0xf6, 0xa0, 0x84, 0x2f, 0xc4, 0xc8, 0xb5, 0x0e, 0xfc, 0xe1, 0x5b, 0xc7, 0x7b, 0xfc,
   737  	0xcd, 0xd0, 0x2d, 0xfc, 0xa5, 0x12, 0xe4, 0x4b, 0xec, 0xd4, 0x5b, 0xea, 0xae, 0x17, 0xd0, 0xc3,
   738  	0xd8, 0x14, 0x18, 0xe5, 0xb3, 0x00, 0x37, 0xb2, 0x78, 0xc9, 0xb6, 0x9a, 0xef, 0x4f, 0xfd, 0xfd,
   739  	0xea, 0xcc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x39, 0x6b, 0x15, 0x0e, 0xa7, 0x08, 0x00, 0x00,
   740  }