...

Package tags

import "github.com/gogo/protobuf/test/tags"
Overview
Index

Overview ▾

type Inside

type Inside struct {
    Field1               *string  `protobuf:"bytes,1,opt,name=Field1" json:"MyField1" xml:",chardata"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedInside

func NewPopulatedInside(r randyTags, easy bool) *Inside

func (*Inside) Descriptor

func (*Inside) Descriptor() ([]byte, []int)

func (*Inside) GetField1

func (m *Inside) GetField1() string

func (*Inside) ProtoMessage

func (*Inside) ProtoMessage()

func (*Inside) Reset

func (m *Inside) Reset()

func (*Inside) String

func (m *Inside) String() string

func (*Inside) XXX_DiscardUnknown

func (m *Inside) XXX_DiscardUnknown()

func (*Inside) XXX_Marshal

func (m *Inside) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Inside) XXX_Merge

func (m *Inside) XXX_Merge(src proto.Message)

func (*Inside) XXX_Size

func (m *Inside) XXX_Size() int

func (*Inside) XXX_Unmarshal

func (m *Inside) XXX_Unmarshal(b []byte) error

type Outside

type Outside struct {
    *Inside `protobuf:"bytes,1,opt,name=Inside,embedded=Inside" json:""`
    Field2  *string `protobuf:"bytes,2,opt,name=Field2" json:"MyField2" xml:",comment"`
    // Types that are valid to be assigned to Filed:
    //	*Outside_Field3
    Filed                isOutside_Filed `protobuf_oneof:"filed"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

func NewPopulatedOutside

func NewPopulatedOutside(r randyTags, easy bool) *Outside

func (*Outside) Descriptor

func (*Outside) Descriptor() ([]byte, []int)

func (*Outside) GetField2

func (m *Outside) GetField2() string

func (*Outside) GetField3

func (m *Outside) GetField3() string

func (*Outside) GetFiled

func (m *Outside) GetFiled() isOutside_Filed

func (*Outside) ProtoMessage

func (*Outside) ProtoMessage()

func (*Outside) Reset

func (m *Outside) Reset()

func (*Outside) String

func (m *Outside) String() string

func (*Outside) XXX_DiscardUnknown

func (m *Outside) XXX_DiscardUnknown()

func (*Outside) XXX_Marshal

func (m *Outside) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Outside) XXX_Merge

func (m *Outside) XXX_Merge(src proto.Message)

func (*Outside) XXX_OneofWrappers

func (*Outside) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Outside) XXX_Size

func (m *Outside) XXX_Size() int

func (*Outside) XXX_Unmarshal

func (m *Outside) XXX_Unmarshal(b []byte) error

type Outside_Field3

type Outside_Field3 struct {
    Field3 string `protobuf:"bytes,3,opt,name=Field3,oneof" json:"MyField3" xml:",comment"`
}

func NewPopulatedOutside_Field3

func NewPopulatedOutside_Field3(r randyTags, easy bool) *Outside_Field3