google.golang.org/grpc@v1.72.2/testdata/grpc_testing_not_regenerated/simple_message_v1.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: simple.proto 3 4 package grpc_testing_not_regenerated 5 6 import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 24 // SimpleMessage is used to hold string data. 25 type SimpleMessage struct { 26 Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 27 XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 XXX_unrecognized []byte `json:"-"` 29 XXX_sizecache int32 `json:"-"` 30 } 31 32 func (m *SimpleMessage) Reset() { *m = SimpleMessage{} } 33 func (m *SimpleMessage) String() string { return proto.CompactTextString(m) } 34 func (*SimpleMessage) ProtoMessage() {} 35 func (*SimpleMessage) Descriptor() ([]byte, []int) { 36 return fileDescriptor_5ffd045dd4d042c1, []int{0} 37 } 38 39 func (m *SimpleMessage) XXX_Unmarshal(b []byte) error { 40 return xxx_messageInfo_SimpleMessage.Unmarshal(m, b) 41 } 42 func (m *SimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 43 return xxx_messageInfo_SimpleMessage.Marshal(b, m, deterministic) 44 } 45 func (m *SimpleMessage) XXX_Merge(src proto.Message) { 46 xxx_messageInfo_SimpleMessage.Merge(m, src) 47 } 48 func (m *SimpleMessage) XXX_Size() int { 49 return xxx_messageInfo_SimpleMessage.Size(m) 50 } 51 func (m *SimpleMessage) XXX_DiscardUnknown() { 52 xxx_messageInfo_SimpleMessage.DiscardUnknown(m) 53 } 54 55 var xxx_messageInfo_SimpleMessage proto.InternalMessageInfo 56 57 func (m *SimpleMessage) GetData() string { 58 if m != nil { 59 return m.Data 60 } 61 return "" 62 } 63 64 func init() { 65 proto.RegisterType((*SimpleMessage)(nil), "grpc.testdata.grpc_testing_not_regenerated.SimpleMessage") 66 } 67 68 func init() { 69 proto.RegisterFile("simple.proto", fileDescriptor_5ffd045dd4d042c1) 70 } 71 72 var fileDescriptor_5ffd045dd4d042c1 = []byte{ 73 // 142 bytes of a gzipped FileDescriptorProto 74 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0xce, 0xcc, 0x2d, 75 0xc8, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xd2, 0x4a, 0x2f, 0x2a, 0x48, 0xd6, 0x2b, 76 0x49, 0x2d, 0x2e, 0x49, 0x49, 0x2c, 0x49, 0xd4, 0x03, 0xf1, 0xe2, 0x41, 0xbc, 0xcc, 0xbc, 0xf4, 77 0xf8, 0xbc, 0xfc, 0x92, 0xf8, 0xa2, 0xd4, 0xf4, 0xd4, 0xbc, 0xd4, 0xa2, 0xc4, 0x92, 0xd4, 0x14, 78 0x25, 0x65, 0x2e, 0xde, 0x60, 0xb0, 0x5e, 0xdf, 0xd4, 0xe2, 0xe2, 0xc4, 0xf4, 0x54, 0x21, 0x21, 79 0x2e, 0x16, 0x90, 0x2e, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0xdb, 0xc9, 0x2e, 0xca, 80 0x26, 0x3d, 0x3f, 0x3f, 0x3d, 0x27, 0x55, 0x2f, 0x3d, 0x3f, 0x27, 0x31, 0x2f, 0x5d, 0x2f, 0xbf, 81 0x28, 0x5d, 0x1f, 0x64, 0xac, 0x3e, 0xcc, 0x12, 0x7d, 0x7c, 0x96, 0x24, 0xb1, 0x81, 0xdd, 0x65, 82 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x80, 0xd6, 0x07, 0xa7, 0x00, 0x00, 0x00, 83 }