github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-grpc-middleware/testing/gogotestproto/fields.pb.go (about) 1 // Code generated by protoc-gen-gogo. 2 // source: fields.proto 3 // DO NOT EDIT! 4 5 /* 6 Package mwitkow_testproto is a generated protocol buffer package. 7 8 This file is used for testing discovery of log fields from requests using reflection and gogo proto more tags. 9 10 It is generated from these files: 11 fields.proto 12 13 It has these top-level messages: 14 Metadata 15 PingId 16 Ping 17 PingRequest 18 Pong 19 PongRequest 20 */ 21 package mwitkow_testproto 22 23 import proto "github.com/golang/protobuf/proto" 24 import fmt "fmt" 25 import math "math" 26 import _ "github.com/gogo/protobuf/gogoproto" 27 28 // Reference imports to suppress errors if they are not otherwise used. 29 var _ = proto.Marshal 30 var _ = fmt.Errorf 31 var _ = math.Inf 32 33 // This is a compile-time assertion to ensure that this generated file 34 // is compatible with the proto package it is being compiled against. 35 // A compilation error at this line likely means your copy of the 36 // proto package needs to be updated. 37 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 38 39 type Metadata struct { 40 Tags []string `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty" log_field:"meta_tags"` 41 } 42 43 func (m *Metadata) Reset() { *m = Metadata{} } 44 func (m *Metadata) String() string { return proto.CompactTextString(m) } 45 func (*Metadata) ProtoMessage() {} 46 func (*Metadata) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{0} } 47 48 type PingId struct { 49 Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" log_field:"ping_id"` 50 } 51 52 func (m *PingId) Reset() { *m = PingId{} } 53 func (m *PingId) String() string { return proto.CompactTextString(m) } 54 func (*PingId) ProtoMessage() {} 55 func (*PingId) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{1} } 56 57 type Ping struct { 58 Id *PingId `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` 59 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 60 } 61 62 func (m *Ping) Reset() { *m = Ping{} } 63 func (m *Ping) String() string { return proto.CompactTextString(m) } 64 func (*Ping) ProtoMessage() {} 65 func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{2} } 66 67 func (m *Ping) GetId() *PingId { 68 if m != nil { 69 return m.Id 70 } 71 return nil 72 } 73 74 type PingRequest struct { 75 Ping *Ping `protobuf:"bytes,1,opt,name=ping" json:"ping,omitempty"` 76 Meta *Metadata `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"` 77 } 78 79 func (m *PingRequest) Reset() { *m = PingRequest{} } 80 func (m *PingRequest) String() string { return proto.CompactTextString(m) } 81 func (*PingRequest) ProtoMessage() {} 82 func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{3} } 83 84 func (m *PingRequest) GetPing() *Ping { 85 if m != nil { 86 return m.Ping 87 } 88 return nil 89 } 90 91 func (m *PingRequest) GetMeta() *Metadata { 92 if m != nil { 93 return m.Meta 94 } 95 return nil 96 } 97 98 type Pong struct { 99 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" log_field:"pong_id"` 100 } 101 102 func (m *Pong) Reset() { *m = Pong{} } 103 func (m *Pong) String() string { return proto.CompactTextString(m) } 104 func (*Pong) ProtoMessage() {} 105 func (*Pong) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{4} } 106 107 type PongRequest struct { 108 Pong *Pong `protobuf:"bytes,1,opt,name=pong" json:"pong,omitempty"` 109 Meta *Metadata `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"` 110 } 111 112 func (m *PongRequest) Reset() { *m = PongRequest{} } 113 func (m *PongRequest) String() string { return proto.CompactTextString(m) } 114 func (*PongRequest) ProtoMessage() {} 115 func (*PongRequest) Descriptor() ([]byte, []int) { return fileDescriptorFields, []int{5} } 116 117 func (m *PongRequest) GetPong() *Pong { 118 if m != nil { 119 return m.Pong 120 } 121 return nil 122 } 123 124 func (m *PongRequest) GetMeta() *Metadata { 125 if m != nil { 126 return m.Meta 127 } 128 return nil 129 } 130 131 func init() { 132 proto.RegisterType((*Metadata)(nil), "mwitkow.testproto.Metadata") 133 proto.RegisterType((*PingId)(nil), "mwitkow.testproto.PingId") 134 proto.RegisterType((*Ping)(nil), "mwitkow.testproto.Ping") 135 proto.RegisterType((*PingRequest)(nil), "mwitkow.testproto.PingRequest") 136 proto.RegisterType((*Pong)(nil), "mwitkow.testproto.Pong") 137 proto.RegisterType((*PongRequest)(nil), "mwitkow.testproto.PongRequest") 138 } 139 140 func init() { proto.RegisterFile("fields.proto", fileDescriptorFields) } 141 142 var fileDescriptorFields = []byte{ 143 // 304 bytes of a gzipped FileDescriptorProto 144 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x50, 0x41, 0x4e, 0xeb, 0x30, 145 0x14, 0xfc, 0xe9, 0x77, 0x2b, 0xea, 0xb2, 0xc1, 0x80, 0xda, 0x82, 0x44, 0x2b, 0x6f, 0x28, 0x42, 146 0x4d, 0x44, 0x59, 0xc1, 0xb2, 0x1b, 0xc4, 0x02, 0xa9, 0xf2, 0x05, 0x22, 0x07, 0xbb, 0xc6, 0x6a, 147 0x92, 0x57, 0x88, 0x43, 0xaf, 0xc2, 0xe9, 0xba, 0xe1, 0x06, 0x3d, 0x01, 0xf2, 0x0b, 0xa0, 0xa0, 148 0x02, 0x0b, 0x76, 0x9e, 0xf7, 0x66, 0xe6, 0xcd, 0x98, 0xee, 0xce, 0xad, 0x4e, 0x55, 0x11, 0x2e, 149 0x9f, 0xc0, 0x01, 0xdb, 0xcb, 0x56, 0xd6, 0x2d, 0x60, 0x15, 0x3a, 0x5d, 0x38, 0x1c, 0x1d, 0x8d, 150 0x8d, 0x75, 0x0f, 0x65, 0x12, 0xde, 0x43, 0x16, 0x19, 0x30, 0x10, 0xe1, 0x38, 0x29, 0xe7, 0x88, 151 0x10, 0xe0, 0xab, 0x72, 0xe0, 0x57, 0x74, 0xe7, 0x4e, 0x3b, 0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