github.com/gogo/protobuf@v1.3.2/test/issue435/issue435.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: issue435.proto 3 4 package issue435 5 6 import ( 7 fmt "fmt" 8 _ "github.com/gogo/protobuf/gogoproto" 9 proto "github.com/gogo/protobuf/proto" 10 math "math" 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package 23 24 type Message struct { 25 NonnullableOptional SubMessage `protobuf:"bytes,1,opt,name=nonnullable_optional,json=nonnullableOptional" json:"nonnullable_optional"` 26 NonnullableRepeated []SubMessage `protobuf:"bytes,2,rep,name=nonnullable_repeated,json=nonnullableRepeated" json:"nonnullable_repeated"` 27 XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 XXX_unrecognized []byte `json:"-"` 29 XXX_sizecache int32 `json:"-"` 30 } 31 32 func (m *Message) Reset() { *m = Message{} } 33 func (m *Message) String() string { return proto.CompactTextString(m) } 34 func (*Message) ProtoMessage() {} 35 func (*Message) Descriptor() ([]byte, []int) { 36 return fileDescriptor_dba67e55f800df0d, []int{0} 37 } 38 func (m *Message) XXX_Unmarshal(b []byte) error { 39 return xxx_messageInfo_Message.Unmarshal(m, b) 40 } 41 func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 return xxx_messageInfo_Message.Marshal(b, m, deterministic) 43 } 44 func (m *Message) XXX_Merge(src proto.Message) { 45 xxx_messageInfo_Message.Merge(m, src) 46 } 47 func (m *Message) XXX_Size() int { 48 return xxx_messageInfo_Message.Size(m) 49 } 50 func (m *Message) XXX_DiscardUnknown() { 51 xxx_messageInfo_Message.DiscardUnknown(m) 52 } 53 54 var xxx_messageInfo_Message proto.InternalMessageInfo 55 56 func (m *Message) GetNonnullableOptional() SubMessage { 57 if m != nil { 58 return m.NonnullableOptional 59 } 60 return SubMessage{} 61 } 62 63 func (m *Message) GetNonnullableRepeated() []SubMessage { 64 if m != nil { 65 return m.NonnullableRepeated 66 } 67 return nil 68 } 69 70 type SubMessage struct { 71 Value *int64 `protobuf:"varint,1,opt,name=value,def=7" json:"value,omitempty"` 72 XXX_NoUnkeyedLiteral struct{} `json:"-"` 73 XXX_unrecognized []byte `json:"-"` 74 XXX_sizecache int32 `json:"-"` 75 } 76 77 func (m *SubMessage) Reset() { *m = SubMessage{} } 78 func (m *SubMessage) String() string { return proto.CompactTextString(m) } 79 func (*SubMessage) ProtoMessage() {} 80 func (*SubMessage) Descriptor() ([]byte, []int) { 81 return fileDescriptor_dba67e55f800df0d, []int{1} 82 } 83 func (m *SubMessage) XXX_Unmarshal(b []byte) error { 84 return xxx_messageInfo_SubMessage.Unmarshal(m, b) 85 } 86 func (m *SubMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 return xxx_messageInfo_SubMessage.Marshal(b, m, deterministic) 88 } 89 func (m *SubMessage) XXX_Merge(src proto.Message) { 90 xxx_messageInfo_SubMessage.Merge(m, src) 91 } 92 func (m *SubMessage) XXX_Size() int { 93 return xxx_messageInfo_SubMessage.Size(m) 94 } 95 func (m *SubMessage) XXX_DiscardUnknown() { 96 xxx_messageInfo_SubMessage.DiscardUnknown(m) 97 } 98 99 var xxx_messageInfo_SubMessage proto.InternalMessageInfo 100 101 const Default_SubMessage_Value int64 = 7 102 103 func (m *SubMessage) GetValue() int64 { 104 if m != nil && m.Value != nil { 105 return *m.Value 106 } 107 return Default_SubMessage_Value 108 } 109 110 func init() { 111 proto.RegisterType((*Message)(nil), "issue435.Message") 112 proto.RegisterType((*SubMessage)(nil), "issue435.SubMessage") 113 } 114 115 func init() { proto.RegisterFile("issue435.proto", fileDescriptor_dba67e55f800df0d) } 116 117 var fileDescriptor_dba67e55f800df0d = []byte{ 118 // 189 bytes of a gzipped FileDescriptorProto 119 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x2c, 0x2e, 0x2e, 120 0x4d, 0x35, 0x31, 0x36, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0x74, 121 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 122 0xc1, 0x0a, 0x92, 0x4a, 0xd3, 0xc0, 0x3c, 0x30, 0x07, 0xcc, 0x82, 0x68, 0x54, 0x5a, 0xce, 0xc8, 123 0xc5, 0xee, 0x9b, 0x5a, 0x5c, 0x9c, 0x98, 0x9e, 0x2a, 0xe4, 0xcb, 0x25, 0x92, 0x97, 0x9f, 0x97, 124 0x57, 0x9a, 0x93, 0x93, 0x98, 0x94, 0x93, 0x1a, 0x9f, 0x5f, 0x50, 0x92, 0x99, 0x9f, 0x97, 0x98, 125 0x23, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa2, 0x07, 0xb7, 0x33, 0xb8, 0x34, 0x09, 0xaa, 126 0xc7, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0x61, 0x24, 0x7d, 0xfe, 0x50, 0x6d, 0xe8, 0xc6, 127 0x15, 0xa5, 0x16, 0xa4, 0x26, 0x96, 0xa4, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x93, 0x60, 0x5c, 0x10, 128 0x54, 0x9b, 0x92, 0x2a, 0x17, 0x17, 0x42, 0xa1, 0x90, 0x38, 0x17, 0x6b, 0x59, 0x62, 0x4e, 0x69, 129 0x2a, 0xd8, 0x71, 0xcc, 0x56, 0x8c, 0xe6, 0x41, 0x10, 0xbe, 0x13, 0x57, 0x14, 0x3c, 0x2c, 0x00, 130 0x01, 0x00, 0x00, 0xff, 0xff, 0x92, 0xfe, 0x57, 0x69, 0x26, 0x01, 0x00, 0x00, 131 }