| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: comments/comments.proto |
| |
| // COMMENT: package goproto.protoc.comments; |
| |
| package comments |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| // COMMENT: Message1 |
| type Message1 struct { |
| // COMMENT: Field1A |
| Field1A *string `protobuf:"bytes,1,opt,name=Field1A" json:"Field1A,omitempty"` |
| // COMMENT: Oneof1A |
| // |
| // Types that are valid to be assigned to Oneof1A: |
| // COMMENT: Oneof1AField1 |
| // *Message1_Oneof1AField1 |
| Oneof1A isMessage1_Oneof1A `protobuf_oneof:"Oneof1a"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Message1) Reset() { *m = Message1{} } |
| func (m *Message1) String() string { return proto.CompactTextString(m) } |
| func (*Message1) ProtoMessage() {} |
| func (*Message1) Descriptor() ([]byte, []int) { |
| return fileDescriptor_885e8293f1fab554, []int{0} |
| } |
| |
| func (m *Message1) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Message1.Unmarshal(m, b) |
| } |
| func (m *Message1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Message1.Marshal(b, m, deterministic) |
| } |
| func (m *Message1) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Message1.Merge(m, src) |
| } |
| func (m *Message1) XXX_Size() int { |
| return xxx_messageInfo_Message1.Size(m) |
| } |
| func (m *Message1) XXX_DiscardUnknown() { |
| xxx_messageInfo_Message1.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Message1 proto.InternalMessageInfo |
| |
| func (m *Message1) GetField1A() string { |
| if m != nil && m.Field1A != nil { |
| return *m.Field1A |
| } |
| return "" |
| } |
| |
| type isMessage1_Oneof1A interface { |
| isMessage1_Oneof1A() |
| } |
| |
| type Message1_Oneof1AField1 struct { |
| Oneof1AField1 string `protobuf:"bytes,2,opt,name=Oneof1AField1,oneof"` |
| } |
| |
| func (*Message1_Oneof1AField1) isMessage1_Oneof1A() {} |
| |
| func (m *Message1) GetOneof1A() isMessage1_Oneof1A { |
| if m != nil { |
| return m.Oneof1A |
| } |
| return nil |
| } |
| |
| func (m *Message1) GetOneof1AField1() string { |
| if x, ok := m.GetOneof1A().(*Message1_Oneof1AField1); ok { |
| return x.Oneof1AField1 |
| } |
| return "" |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| func (*Message1) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
| return _Message1_OneofMarshaler, _Message1_OneofUnmarshaler, _Message1_OneofSizer, []interface{}{ |
| (*Message1_Oneof1AField1)(nil), |
| } |
| } |
| |
| func _Message1_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*Message1) |
| // Oneof1a |
| switch x := m.Oneof1A.(type) { |
| case *Message1_Oneof1AField1: |
| b.EncodeVarint(2<<3 | proto.WireBytes) |
| b.EncodeStringBytes(x.Oneof1AField1) |
| case nil: |
| default: |
| return fmt.Errorf("Message1.Oneof1A has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _Message1_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*Message1) |
| switch tag { |
| case 2: // Oneof1a.Oneof1AField1 |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeStringBytes() |
| m.Oneof1A = &Message1_Oneof1AField1{x} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _Message1_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*Message1) |
| // Oneof1a |
| switch x := m.Oneof1A.(type) { |
| case *Message1_Oneof1AField1: |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(len(x.Oneof1AField1))) |
| n += len(x.Oneof1AField1) |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| // COMMENT: Message1A |
| type Message1_Message1A struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Message1_Message1A) Reset() { *m = Message1_Message1A{} } |
| func (m *Message1_Message1A) String() string { return proto.CompactTextString(m) } |
| func (*Message1_Message1A) ProtoMessage() {} |
| func (*Message1_Message1A) Descriptor() ([]byte, []int) { |
| return fileDescriptor_885e8293f1fab554, []int{0, 0} |
| } |
| |
| func (m *Message1_Message1A) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Message1_Message1A.Unmarshal(m, b) |
| } |
| func (m *Message1_Message1A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Message1_Message1A.Marshal(b, m, deterministic) |
| } |
| func (m *Message1_Message1A) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Message1_Message1A.Merge(m, src) |
| } |
| func (m *Message1_Message1A) XXX_Size() int { |
| return xxx_messageInfo_Message1_Message1A.Size(m) |
| } |
| func (m *Message1_Message1A) XXX_DiscardUnknown() { |
| xxx_messageInfo_Message1_Message1A.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Message1_Message1A proto.InternalMessageInfo |
| |
| // COMMENT: Message1B |
| type Message1_Message1B struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Message1_Message1B) Reset() { *m = Message1_Message1B{} } |
| func (m *Message1_Message1B) String() string { return proto.CompactTextString(m) } |
| func (*Message1_Message1B) ProtoMessage() {} |
| func (*Message1_Message1B) Descriptor() ([]byte, []int) { |
| return fileDescriptor_885e8293f1fab554, []int{0, 1} |
| } |
| |
| func (m *Message1_Message1B) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Message1_Message1B.Unmarshal(m, b) |
| } |
| func (m *Message1_Message1B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Message1_Message1B.Marshal(b, m, deterministic) |
| } |
| func (m *Message1_Message1B) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Message1_Message1B.Merge(m, src) |
| } |
| func (m *Message1_Message1B) XXX_Size() int { |
| return xxx_messageInfo_Message1_Message1B.Size(m) |
| } |
| func (m *Message1_Message1B) XXX_DiscardUnknown() { |
| xxx_messageInfo_Message1_Message1B.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Message1_Message1B proto.InternalMessageInfo |
| |
| // COMMENT: Message2 |
| type Message2 struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Message2) Reset() { *m = Message2{} } |
| func (m *Message2) String() string { return proto.CompactTextString(m) } |
| func (*Message2) ProtoMessage() {} |
| func (*Message2) Descriptor() ([]byte, []int) { |
| return fileDescriptor_885e8293f1fab554, []int{1} |
| } |
| |
| func (m *Message2) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Message2.Unmarshal(m, b) |
| } |
| func (m *Message2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Message2.Marshal(b, m, deterministic) |
| } |
| func (m *Message2) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Message2.Merge(m, src) |
| } |
| func (m *Message2) XXX_Size() int { |
| return xxx_messageInfo_Message2.Size(m) |
| } |
| func (m *Message2) XXX_DiscardUnknown() { |
| xxx_messageInfo_Message2.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Message2 proto.InternalMessageInfo |
| |
| // COMMENT: Message2A |
| type Message2_Message2A struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Message2_Message2A) Reset() { *m = Message2_Message2A{} } |
| func (m *Message2_Message2A) String() string { return proto.CompactTextString(m) } |
| func (*Message2_Message2A) ProtoMessage() {} |
| func (*Message2_Message2A) Descriptor() ([]byte, []int) { |
| return fileDescriptor_885e8293f1fab554, []int{1, 0} |
| } |
| |
| func (m *Message2_Message2A) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Message2_Message2A.Unmarshal(m, b) |
| } |
| func (m *Message2_Message2A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Message2_Message2A.Marshal(b, m, deterministic) |
| } |
| func (m *Message2_Message2A) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Message2_Message2A.Merge(m, src) |
| } |
| func (m *Message2_Message2A) XXX_Size() int { |
| return xxx_messageInfo_Message2_Message2A.Size(m) |
| } |
| func (m *Message2_Message2A) XXX_DiscardUnknown() { |
| xxx_messageInfo_Message2_Message2A.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Message2_Message2A proto.InternalMessageInfo |
| |
| // COMMENT: Message2B |
| type Message2_Message2B struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Message2_Message2B) Reset() { *m = Message2_Message2B{} } |
| func (m *Message2_Message2B) String() string { return proto.CompactTextString(m) } |
| func (*Message2_Message2B) ProtoMessage() {} |
| func (*Message2_Message2B) Descriptor() ([]byte, []int) { |
| return fileDescriptor_885e8293f1fab554, []int{1, 1} |
| } |
| |
| func (m *Message2_Message2B) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Message2_Message2B.Unmarshal(m, b) |
| } |
| func (m *Message2_Message2B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Message2_Message2B.Marshal(b, m, deterministic) |
| } |
| func (m *Message2_Message2B) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Message2_Message2B.Merge(m, src) |
| } |
| func (m *Message2_Message2B) XXX_Size() int { |
| return xxx_messageInfo_Message2_Message2B.Size(m) |
| } |
| func (m *Message2_Message2B) XXX_DiscardUnknown() { |
| xxx_messageInfo_Message2_Message2B.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Message2_Message2B proto.InternalMessageInfo |
| |
| func init() { |
| proto.RegisterType((*Message1)(nil), "goproto.protoc.comments.Message1") |
| proto.RegisterType((*Message1_Message1A)(nil), "goproto.protoc.comments.Message1.Message1A") |
| proto.RegisterType((*Message1_Message1B)(nil), "goproto.protoc.comments.Message1.Message1B") |
| proto.RegisterType((*Message2)(nil), "goproto.protoc.comments.Message2") |
| proto.RegisterType((*Message2_Message2A)(nil), "goproto.protoc.comments.Message2.Message2A") |
| proto.RegisterType((*Message2_Message2B)(nil), "goproto.protoc.comments.Message2.Message2B") |
| } |
| |
| func init() { proto.RegisterFile("comments/comments.proto", fileDescriptor_885e8293f1fab554) } |
| |
| var fileDescriptor_885e8293f1fab554 = []byte{ |
| // 191 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xce, 0xcf, 0xcd, |
| 0x4d, 0xcd, 0x2b, 0x29, 0xd6, 0x87, 0x31, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0xd3, |
| 0xf3, 0xc1, 0x0c, 0x08, 0x37, 0x59, 0x0f, 0x26, 0xad, 0x54, 0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