github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/import_public/importing/importing.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: import_public/importing/importing.proto
     3  
     4  package importing
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	_ "github.com/gogo/protobuf/protoc-gen-gogo/testdata/import_public"
    10  	sub "github.com/gogo/protobuf/protoc-gen-gogo/testdata/import_public/sub"
    11  	math "math"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  type M struct {
    26  	// Message type defined in a file publicly imported by a file we import.
    27  	M                    *sub.M   `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
    28  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    29  	XXX_unrecognized     []byte   `json:"-"`
    30  	XXX_sizecache        int32    `json:"-"`
    31  }
    32  
    33  func (m *M) Reset()         { *m = M{} }
    34  func (m *M) String() string { return proto.CompactTextString(m) }
    35  func (*M) ProtoMessage()    {}
    36  func (*M) Descriptor() ([]byte, []int) {
    37  	return fileDescriptor_36b835b3b8f6171a, []int{0}
    38  }
    39  func (m *M) XXX_Unmarshal(b []byte) error {
    40  	return xxx_messageInfo_M.Unmarshal(m, b)
    41  }
    42  func (m *M) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    43  	return xxx_messageInfo_M.Marshal(b, m, deterministic)
    44  }
    45  func (m *M) XXX_Merge(src proto.Message) {
    46  	xxx_messageInfo_M.Merge(m, src)
    47  }
    48  func (m *M) XXX_Size() int {
    49  	return xxx_messageInfo_M.Size(m)
    50  }
    51  func (m *M) XXX_DiscardUnknown() {
    52  	xxx_messageInfo_M.DiscardUnknown(m)
    53  }
    54  
    55  var xxx_messageInfo_M proto.InternalMessageInfo
    56  
    57  func (m *M) GetM() *sub.M {
    58  	if m != nil {
    59  		return m.M
    60  	}
    61  	return nil
    62  }
    63  
    64  func init() {
    65  	proto.RegisterType((*M)(nil), "goproto.test.import_public.importing.M")
    66  }
    67  
    68  func init() {
    69  	proto.RegisterFile("import_public/importing/importing.proto", fileDescriptor_36b835b3b8f6171a)
    70  }
    71  
    72  var fileDescriptor_36b835b3b8f6171a = []byte{
    73  	// 153 bytes of a gzipped FileDescriptorProto
    74  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0xcc, 0x2d, 0xc8,
    75  	0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x87, 0xf0, 0x32, 0xf3, 0xd2, 0x11,
    76  	0x2c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x95, 0xf4, 0x7c, 0x30, 0x43, 0xaf, 0x24, 0xb5,
    77  	0xb8, 0x44, 0x0f, 0x45, 0x97, 0x1e, 0x5c, 0xad, 0x94, 0x28, 0xaa, 0x71, 0x89, 0x10, 0xcd, 0x4a,
    78  	0x26, 0x5c, 0x8c, 0xbe, 0x42, 0xfa, 0x5c, 0x8c, 0xb9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46,
    79  	0x8a, 0x7a, 0x78, 0x4c, 0x2b, 0x2e, 0x4d, 0xd2, 0xf3, 0x0d, 0x62, 0xcc, 0x75, 0xf2, 0x8e, 0xf2,
    80  	0x4c, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc,
    81  	0x4b, 0xd7, 0x07, 0x6b, 0x4b, 0x2a, 0x4d, 0x83, 0x30, 0x92, 0x75, 0xd3, 0x53, 0xf3, 0x74, 0xd3,
    82  	0xf3, 0xf5, 0x41, 0xe6, 0xa4, 0x24, 0x96, 0x24, 0xea, 0xe3, 0xf0, 0x0f, 0x20, 0x00, 0x00, 0xff,
    83  	0xff, 0xd8, 0x7e, 0x58, 0x1c, 0xe9, 0x00, 0x00, 0x00,
    84  }