github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/extension_extra/extension_extra.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: extension_extra/extension_extra.proto 3 4 package extension_extra 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 22 23 type ExtraMessage struct { 24 Width *int32 `protobuf:"varint,1,opt,name=width" json:"width,omitempty"` 25 XXX_NoUnkeyedLiteral struct{} `json:"-"` 26 XXX_unrecognized []byte `json:"-"` 27 XXX_sizecache int32 `json:"-"` 28 } 29 30 func (m *ExtraMessage) Reset() { *m = ExtraMessage{} } 31 func (m *ExtraMessage) String() string { return proto.CompactTextString(m) } 32 func (*ExtraMessage) ProtoMessage() {} 33 func (*ExtraMessage) Descriptor() ([]byte, []int) { 34 return fileDescriptor_fce75f5a63502cd5, []int{0} 35 } 36 func (m *ExtraMessage) XXX_Unmarshal(b []byte) error { 37 return xxx_messageInfo_ExtraMessage.Unmarshal(m, b) 38 } 39 func (m *ExtraMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 40 return xxx_messageInfo_ExtraMessage.Marshal(b, m, deterministic) 41 } 42 func (m *ExtraMessage) XXX_Merge(src proto.Message) { 43 xxx_messageInfo_ExtraMessage.Merge(m, src) 44 } 45 func (m *ExtraMessage) XXX_Size() int { 46 return xxx_messageInfo_ExtraMessage.Size(m) 47 } 48 func (m *ExtraMessage) XXX_DiscardUnknown() { 49 xxx_messageInfo_ExtraMessage.DiscardUnknown(m) 50 } 51 52 var xxx_messageInfo_ExtraMessage proto.InternalMessageInfo 53 54 func (m *ExtraMessage) GetWidth() int32 { 55 if m != nil && m.Width != nil { 56 return *m.Width 57 } 58 return 0 59 } 60 61 func init() { 62 proto.RegisterType((*ExtraMessage)(nil), "extension_extra.ExtraMessage") 63 } 64 65 func init() { 66 proto.RegisterFile("extension_extra/extension_extra.proto", fileDescriptor_fce75f5a63502cd5) 67 } 68 69 var fileDescriptor_fce75f5a63502cd5 = []byte{ 70 // 130 bytes of a gzipped FileDescriptorProto 71 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xad, 0x28, 0x49, 72 0xcd, 0x2b, 0xce, 0xcc, 0xcf, 0x8b, 0x4f, 0xad, 0x28, 0x29, 0x4a, 0xd4, 0x47, 0xe3, 0xeb, 0x15, 73 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0xf1, 0xa3, 0x09, 0x2b, 0xa9, 0x70, 0xf1, 0xb8, 0x82, 0x18, 0xbe, 74 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0x42, 0x22, 0x5c, 0xac, 0xe5, 0x99, 0x29, 0x25, 0x19, 0x12, 75 0x8c, 0x0a, 0x8c, 0x1a, 0xac, 0x41, 0x10, 0x8e, 0x93, 0x73, 0x94, 0x63, 0x7a, 0x66, 0x49, 0x46, 76 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x7a, 0xbe, 0x3e, 0xd8, 0xbc, 0xa4, 0xd2, 77 0x34, 0x08, 0x23, 0x59, 0x37, 0x3d, 0x35, 0x4f, 0x17, 0x2c, 0x51, 0x92, 0x5a, 0x5c, 0x92, 0x92, 78 0x58, 0x82, 0xe1, 0x02, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x01, 0x1c, 0x4a, 0xa3, 0x00, 79 0x00, 0x00, 80 }