...

Source file src/github.com/gogo/protobuf/test/enumprefix/enumprefix.pb.go

Documentation: github.com/gogo/protobuf/test/enumprefix

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: enumprefix.proto
     3  
     4  package enumprefix
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	test "github.com/gogo/protobuf/test"
    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 MyMessage struct {
    26  	TheField             test.TheTestEnum `protobuf:"varint,1,opt,name=TheField,enum=test.TheTestEnum" json:"TheField"`
    27  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    28  	XXX_unrecognized     []byte           `json:"-"`
    29  	XXX_sizecache        int32            `json:"-"`
    30  }
    31  
    32  func (m *MyMessage) Reset()         { *m = MyMessage{} }
    33  func (m *MyMessage) String() string { return proto.CompactTextString(m) }
    34  func (*MyMessage) ProtoMessage()    {}
    35  func (*MyMessage) Descriptor() ([]byte, []int) {
    36  	return fileDescriptor_d0d23e6cb4323eb3, []int{0}
    37  }
    38  func (m *MyMessage) XXX_Unmarshal(b []byte) error {
    39  	return xxx_messageInfo_MyMessage.Unmarshal(m, b)
    40  }
    41  func (m *MyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    42  	return xxx_messageInfo_MyMessage.Marshal(b, m, deterministic)
    43  }
    44  func (m *MyMessage) XXX_Merge(src proto.Message) {
    45  	xxx_messageInfo_MyMessage.Merge(m, src)
    46  }
    47  func (m *MyMessage) XXX_Size() int {
    48  	return xxx_messageInfo_MyMessage.Size(m)
    49  }
    50  func (m *MyMessage) XXX_DiscardUnknown() {
    51  	xxx_messageInfo_MyMessage.DiscardUnknown(m)
    52  }
    53  
    54  var xxx_messageInfo_MyMessage proto.InternalMessageInfo
    55  
    56  func (m *MyMessage) GetTheField() test.TheTestEnum {
    57  	if m != nil {
    58  		return m.TheField
    59  	}
    60  	return test.A
    61  }
    62  
    63  func init() {
    64  	proto.RegisterType((*MyMessage)(nil), "enumprefix.MyMessage")
    65  }
    66  
    67  func init() { proto.RegisterFile("enumprefix.proto", fileDescriptor_d0d23e6cb4323eb3) }
    68  
    69  var fileDescriptor_d0d23e6cb4323eb3 = []byte{
    70  	// 149 bytes of a gzipped FileDescriptorProto
    71  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x48, 0xcd, 0x2b, 0xcd,
    72  	0x2d, 0x28, 0x4a, 0x4d, 0xcb, 0xac, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x42, 0x88,
    73  	0x48, 0x69, 0xa7, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xa7,
    74  	0xe7, 0xeb, 0x83, 0x95, 0x24, 0x95, 0xa6, 0xe9, 0x97, 0xa4, 0x16, 0x97, 0xe8, 0x97, 0x64, 0xa4,
    75  	0x82, 0x68, 0x88, 0x46, 0x29, 0x5d, 0x9c, 0x8a, 0x41, 0x3c, 0x30, 0x07, 0xcc, 0x82, 0x28, 0x57,
    76  	0x72, 0xe0, 0xe2, 0xf4, 0xad, 0xf4, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x15, 0x32, 0xe6, 0xe2,
    77  	0x08, 0xc9, 0x48, 0x75, 0xcb, 0x4c, 0xcd, 0x49, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x33, 0x12,
    78  	0xd4, 0x03, 0x1b, 0x1d, 0x92, 0x91, 0x1a, 0x92, 0x5a, 0x5c, 0xe2, 0x9a, 0x57, 0x9a, 0xeb, 0xc4,
    79  	0x72, 0xe2, 0x9e, 0x3c, 0x43, 0x10, 0x5c, 0x21, 0x20, 0x00, 0x00, 0xff, 0xff, 0xda, 0xd1, 0x3c,
    80  	0x03, 0xbc, 0x00, 0x00, 0x00,
    81  }
    82  

View as plain text