github.com/fananchong/cstruct-go@v0.0.0-20220616060855-b65d9a2f2e17/benchmarks/myproto1.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: myproto1.proto
     3  
     4  /*
     5  Package benchmarks is a generated protocol buffer package.
     6  
     7  It is generated from these files:
     8  	myproto1.proto
     9  
    10  It has these top-level messages:
    11  	Myproto2
    12  	Myproto1
    13  */
    14  package benchmarks
    15  
    16  import proto "github.com/golang/protobuf/proto"
    17  import fmt "fmt"
    18  import math "math"
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  
    25  // This is a compile-time assertion to ensure that this generated file
    26  // is compatible with the proto package it is being compiled against.
    27  // A compilation error at this line likely means your copy of the
    28  // proto package needs to be updated.
    29  const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
    30  
    31  type Myproto2 struct {
    32  	F3 float64 `protobuf:"fixed64,3,opt,name=F3" json:"F3,omitempty"`
    33  	F4 string  `protobuf:"bytes,4,opt,name=F4" json:"F4,omitempty"`
    34  }
    35  
    36  func (m *Myproto2) Reset()                    { *m = Myproto2{} }
    37  func (m *Myproto2) String() string            { return proto.CompactTextString(m) }
    38  func (*Myproto2) ProtoMessage()               {}
    39  func (*Myproto2) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
    40  
    41  func (m *Myproto2) GetF3() float64 {
    42  	if m != nil {
    43  		return m.F3
    44  	}
    45  	return 0
    46  }
    47  
    48  func (m *Myproto2) GetF4() string {
    49  	if m != nil {
    50  		return m.F4
    51  	}
    52  	return ""
    53  }
    54  
    55  type Myproto1 struct {
    56  	F1  bool        `protobuf:"varint,1,opt,name=F1" json:"F1,omitempty"`
    57  	F2  float32     `protobuf:"fixed32,2,opt,name=F2" json:"F2,omitempty"`
    58  	F3  float64     `protobuf:"fixed64,3,opt,name=F3" json:"F3,omitempty"`
    59  	F4  string      `protobuf:"bytes,4,opt,name=F4" json:"F4,omitempty"`
    60  	F5  []byte      `protobuf:"bytes,5,opt,name=F5,proto3" json:"F5,omitempty"`
    61  	F6  int32       `protobuf:"varint,6,opt,name=F6" json:"F6,omitempty"`
    62  	F7  int32       `protobuf:"varint,7,opt,name=F7" json:"F7,omitempty"`
    63  	F8  int32       `protobuf:"varint,8,opt,name=F8" json:"F8,omitempty"`
    64  	F9  int32       `protobuf:"varint,9,opt,name=F9" json:"F9,omitempty"`
    65  	F10 int64       `protobuf:"varint,10,opt,name=F10" json:"F10,omitempty"`
    66  	F11 int64       `protobuf:"varint,11,opt,name=F11" json:"F11,omitempty"`
    67  	F12 uint32      `protobuf:"varint,12,opt,name=F12" json:"F12,omitempty"`
    68  	F13 uint32      `protobuf:"varint,13,opt,name=F13" json:"F13,omitempty"`
    69  	F14 uint32      `protobuf:"varint,14,opt,name=F14" json:"F14,omitempty"`
    70  	F15 uint32      `protobuf:"varint,15,opt,name=F15" json:"F15,omitempty"`
    71  	F16 uint64      `protobuf:"varint,16,opt,name=F16" json:"F16,omitempty"`
    72  	F17 uint64      `protobuf:"varint,17,opt,name=F17" json:"F17,omitempty"`
    73  	S0  *Myproto2   `protobuf:"bytes,18,opt,name=S0" json:"S0,omitempty"`
    74  	F29 []string    `protobuf:"bytes,19,rep,name=F29" json:"F29,omitempty"`
    75  	F30 []*Myproto2 `protobuf:"bytes,20,rep,name=F30" json:"F30,omitempty"`
    76  }
    77  
    78  func (m *Myproto1) Reset()                    { *m = Myproto1{} }
    79  func (m *Myproto1) String() string            { return proto.CompactTextString(m) }
    80  func (*Myproto1) ProtoMessage()               {}
    81  func (*Myproto1) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
    82  
    83  func (m *Myproto1) GetF1() bool {
    84  	if m != nil {
    85  		return m.F1
    86  	}
    87  	return false
    88  }
    89  
    90  func (m *Myproto1) GetF2() float32 {
    91  	if m != nil {
    92  		return m.F2
    93  	}
    94  	return 0
    95  }
    96  
    97  func (m *Myproto1) GetF3() float64 {
    98  	if m != nil {
    99  		return m.F3
   100  	}
   101  	return 0
   102  }
   103  
   104  func (m *Myproto1) GetF4() string {
   105  	if m != nil {
   106  		return m.F4
   107  	}
   108  	return ""
   109  }
   110  
   111  func (m *Myproto1) GetF5() []byte {
   112  	if m != nil {
   113  		return m.F5
   114  	}
   115  	return nil
   116  }
   117  
   118  func (m *Myproto1) GetF6() int32 {
   119  	if m != nil {
   120  		return m.F6
   121  	}
   122  	return 0
   123  }
   124  
   125  func (m *Myproto1) GetF7() int32 {
   126  	if m != nil {
   127  		return m.F7
   128  	}
   129  	return 0
   130  }
   131  
   132  func (m *Myproto1) GetF8() int32 {
   133  	if m != nil {
   134  		return m.F8
   135  	}
   136  	return 0
   137  }
   138  
   139  func (m *Myproto1) GetF9() int32 {
   140  	if m != nil {
   141  		return m.F9
   142  	}
   143  	return 0
   144  }
   145  
   146  func (m *Myproto1) GetF10() int64 {
   147  	if m != nil {
   148  		return m.F10
   149  	}
   150  	return 0
   151  }
   152  
   153  func (m *Myproto1) GetF11() int64 {
   154  	if m != nil {
   155  		return m.F11
   156  	}
   157  	return 0
   158  }
   159  
   160  func (m *Myproto1) GetF12() uint32 {
   161  	if m != nil {
   162  		return m.F12
   163  	}
   164  	return 0
   165  }
   166  
   167  func (m *Myproto1) GetF13() uint32 {
   168  	if m != nil {
   169  		return m.F13
   170  	}
   171  	return 0
   172  }
   173  
   174  func (m *Myproto1) GetF14() uint32 {
   175  	if m != nil {
   176  		return m.F14
   177  	}
   178  	return 0
   179  }
   180  
   181  func (m *Myproto1) GetF15() uint32 {
   182  	if m != nil {
   183  		return m.F15
   184  	}
   185  	return 0
   186  }
   187  
   188  func (m *Myproto1) GetF16() uint64 {
   189  	if m != nil {
   190  		return m.F16
   191  	}
   192  	return 0
   193  }
   194  
   195  func (m *Myproto1) GetF17() uint64 {
   196  	if m != nil {
   197  		return m.F17
   198  	}
   199  	return 0
   200  }
   201  
   202  func (m *Myproto1) GetS0() *Myproto2 {
   203  	if m != nil {
   204  		return m.S0
   205  	}
   206  	return nil
   207  }
   208  
   209  func (m *Myproto1) GetF29() []string {
   210  	if m != nil {
   211  		return m.F29
   212  	}
   213  	return nil
   214  }
   215  
   216  func (m *Myproto1) GetF30() []*Myproto2 {
   217  	if m != nil {
   218  		return m.F30
   219  	}
   220  	return nil
   221  }
   222  
   223  func init() {
   224  	proto.RegisterType((*Myproto2)(nil), "benchmarks.Myproto2")
   225  	proto.RegisterType((*Myproto1)(nil), "benchmarks.Myproto1")
   226  }
   227  
   228  func init() { proto.RegisterFile("myproto1.proto", fileDescriptor0) }
   229  
   230  var fileDescriptor0 = []byte{
   231  	// 273 bytes of a gzipped FileDescriptorProto
   232  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0xd0, 0xcd, 0x4a, 0x03, 0x31,
   233  	0x10, 0xc0, 0x71, 0x26, 0x69, 0x6b, 0x9b, 0x7e, 0x58, 0x63, 0x0f, 0x73, 0x1c, 0x8a, 0xc8, 0xe0,
   234  	0x61, 0xd9, 0x24, 0xfb, 0xd1, 0x7d, 0x81, 0xdc, 0xbc, 0xa4, 0x4f, 0x60, 0x45, 0x10, 0xa4, 0x56,
   235  	0xaa, 0x17, 0x5f, 0xc1, 0xa7, 0x96, 0x4d, 0x36, 0x7a, 0x12, 0x4f, 0x9b, 0xff, 0x2f, 0xb3, 0xcb,
   236  	0x32, 0x6a, 0x75, 0xfc, 0x7c, 0x3b, 0x9f, 0x3e, 0x4e, 0xa6, 0x88, 0x0f, 0xad, 0x0e, 0x4f, 0xaf,
   237  	0x8f, 0xcf, 0xc7, 0x87, 0xf3, 0xcb, 0xfb, 0xf6, 0x4e, 0x4d, 0xef, 0xd3, 0xad, 0xd5, 0x2b, 0x25,
   238  	0xbc, 0x43, 0x49, 0xc0, 0x10, 0x84, 0x77, 0xb1, 0x2b, 0x1c, 0x11, 0xf0, 0x2c, 0x08, 0x5f, 0x6d,
   239  	0xbf, 0xe4, 0xcf, 0xb0, 0x89, 0x97, 0x06, 0x81, 0x80, 0xa7, 0x41, 0xf8, 0xd4, 0x16, 0x05, 0x01,
   240  	0x8b, 0x20, 0xfc, 0xbf, 0x1f, 0x8b, 0x5d, 0xe3, 0x98, 0x80, 0x17, 0x41, 0xf8, 0x3a, 0x76, 0x83,
   241  	0x13, 0x02, 0x1e, 0x07, 0xe1, 0x9b, 0xd8, 0x2d, 0x5e, 0x0c, 0xdd, 0xc6, 0xde, 0xe1, 0x74, 0xe8,
   242  	0x5d, 0xec, 0x0e, 0x67, 0x43, 0x77, 0x7a, 0xad, 0xa4, 0x37, 0x25, 0x2a, 0x02, 0x96, 0xa1, 0x3f,
   243  	0x26, 0x31, 0x38, 0xcf, 0x62, 0x92, 0x58, 0x5c, 0x10, 0xf0, 0xb2, 0x17, 0x9b, 0xc4, 0xe1, 0x32,
   244  	0x8b, 0x4b, 0x52, 0xe1, 0x2a, 0x4b, 0x95, 0xa4, 0xc6, 0xcb, 0x2c, 0x75, 0x92, 0x06, 0xd7, 0x04,
   245  	0x3c, 0xea, 0xa5, 0x49, 0xd2, 0xe2, 0x55, 0x96, 0x56, 0xdf, 0x28, 0xb1, 0x2f, 0x51, 0x13, 0xf0,
   246  	0xdc, 0x6e, 0x8a, 0xdf, 0x8d, 0x17, 0x79, 0xdd, 0x41, 0xec, 0xd3, 0x3f, 0xda, 0x0e, 0xaf, 0x49,
   247  	0xf2, 0x2c, 0xf4, 0x47, 0x7d, 0xab, 0xa4, 0x77, 0x25, 0x6e, 0x48, 0xfe, 0xf9, 0x62, 0x3f, 0x70,
   248  	0x98, 0xc4, 0x70, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x17, 0x7e, 0x06, 0x17, 0xdd, 0x01, 0x00,
   249  	0x00,
   250  }