github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/imports/test_a_1/m1.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: imports/test_a_1/m1.proto
     3  
     4  package test_a_1
     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 E1 int32
    24  
    25  const (
    26  	E1_E1_ZERO E1 = 0
    27  )
    28  
    29  var E1_name = map[int32]string{
    30  	0: "E1_ZERO",
    31  }
    32  
    33  var E1_value = map[string]int32{
    34  	"E1_ZERO": 0,
    35  }
    36  
    37  func (x E1) String() string {
    38  	return proto.EnumName(E1_name, int32(x))
    39  }
    40  
    41  func (E1) EnumDescriptor() ([]byte, []int) {
    42  	return fileDescriptor_c1091de3fa870a14, []int{0}
    43  }
    44  
    45  type M1 struct {
    46  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    47  	XXX_unrecognized     []byte   `json:"-"`
    48  	XXX_sizecache        int32    `json:"-"`
    49  }
    50  
    51  func (m *M1) Reset()         { *m = M1{} }
    52  func (m *M1) String() string { return proto.CompactTextString(m) }
    53  func (*M1) ProtoMessage()    {}
    54  func (*M1) Descriptor() ([]byte, []int) {
    55  	return fileDescriptor_c1091de3fa870a14, []int{0}
    56  }
    57  func (m *M1) XXX_Unmarshal(b []byte) error {
    58  	return xxx_messageInfo_M1.Unmarshal(m, b)
    59  }
    60  func (m *M1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    61  	return xxx_messageInfo_M1.Marshal(b, m, deterministic)
    62  }
    63  func (m *M1) XXX_Merge(src proto.Message) {
    64  	xxx_messageInfo_M1.Merge(m, src)
    65  }
    66  func (m *M1) XXX_Size() int {
    67  	return xxx_messageInfo_M1.Size(m)
    68  }
    69  func (m *M1) XXX_DiscardUnknown() {
    70  	xxx_messageInfo_M1.DiscardUnknown(m)
    71  }
    72  
    73  var xxx_messageInfo_M1 proto.InternalMessageInfo
    74  
    75  type M1_1 struct {
    76  	M1                   *M1      `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"`
    77  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    78  	XXX_unrecognized     []byte   `json:"-"`
    79  	XXX_sizecache        int32    `json:"-"`
    80  }
    81  
    82  func (m *M1_1) Reset()         { *m = M1_1{} }
    83  func (m *M1_1) String() string { return proto.CompactTextString(m) }
    84  func (*M1_1) ProtoMessage()    {}
    85  func (*M1_1) Descriptor() ([]byte, []int) {
    86  	return fileDescriptor_c1091de3fa870a14, []int{1}
    87  }
    88  func (m *M1_1) XXX_Unmarshal(b []byte) error {
    89  	return xxx_messageInfo_M1_1.Unmarshal(m, b)
    90  }
    91  func (m *M1_1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    92  	return xxx_messageInfo_M1_1.Marshal(b, m, deterministic)
    93  }
    94  func (m *M1_1) XXX_Merge(src proto.Message) {
    95  	xxx_messageInfo_M1_1.Merge(m, src)
    96  }
    97  func (m *M1_1) XXX_Size() int {
    98  	return xxx_messageInfo_M1_1.Size(m)
    99  }
   100  func (m *M1_1) XXX_DiscardUnknown() {
   101  	xxx_messageInfo_M1_1.DiscardUnknown(m)
   102  }
   103  
   104  var xxx_messageInfo_M1_1 proto.InternalMessageInfo
   105  
   106  func (m *M1_1) GetM1() *M1 {
   107  	if m != nil {
   108  		return m.M1
   109  	}
   110  	return nil
   111  }
   112  
   113  func init() {
   114  	proto.RegisterEnum("test.a.E1", E1_name, E1_value)
   115  	proto.RegisterType((*M1)(nil), "test.a.M1")
   116  	proto.RegisterType((*M1_1)(nil), "test.a.M1_1")
   117  }
   118  
   119  func init() { proto.RegisterFile("imports/test_a_1/m1.proto", fileDescriptor_c1091de3fa870a14) }
   120  
   121  var fileDescriptor_c1091de3fa870a14 = []byte{
   122  	// 163 bytes of a gzipped FileDescriptorProto
   123  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2d, 0xc8,
   124  	0x2f, 0x2a, 0x29, 0xd6, 0x2f, 0x49, 0x2d, 0x2e, 0x89, 0x4f, 0x8c, 0x37, 0xd4, 0xcf, 0x35, 0xd4,
   125  	0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x09, 0xe9, 0x25, 0x2a, 0xb1, 0x70, 0x31, 0xf9,
   126  	0x1a, 0x2a, 0x29, 0x71, 0xb1, 0xf8, 0x1a, 0xc6, 0x1b, 0x0a, 0x49, 0x71, 0x31, 0xe5, 0x1a, 0x4a,
   127  	0x30, 0x2a, 0x30, 0x6a, 0x70, 0x1b, 0x71, 0xe9, 0x41, 0x94, 0xe8, 0xf9, 0x1a, 0x06, 0x31, 0xe5,
   128  	0x1a, 0x6a, 0x09, 0x72, 0x31, 0xb9, 0x1a, 0x0a, 0x71, 0x73, 0xb1, 0xbb, 0x1a, 0xc6, 0x47, 0xb9,
   129  	0x06, 0xf9, 0x0b, 0x30, 0x38, 0xb9, 0x44, 0x39, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25,
   130  	0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xa7, 0xe7, 0xeb, 0x83, 0x4d, 0x4f, 0x2a, 0x4d, 0x83, 0x30, 0x92,
   131  	0x75, 0xd3, 0x53, 0xf3, 0x74, 0xc1, 0x12, 0x20, 0xc3, 0x52, 0x12, 0x4b, 0x12, 0xf5, 0xd1, 0xdd,
   132  	0x94, 0xc4, 0x06, 0x56, 0x6a, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xfe, 0xd5, 0x3e, 0x41, 0xae,
   133  	0x00, 0x00, 0x00,
   134  }