required - ActiveState ActiveGo 1.8
...

Package required

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

Overview ▾

Package required is a generated protocol buffer package.

It is generated from these files:

requiredexample.proto

It has these top-level messages:

RequiredExample
NidOptNative
NinOptNative
NestedNinOptNative

Index ▾

Variables
type NestedNinOptNative
    func NewPopulatedNestedNinOptNative(r randyRequiredexample, easy bool) *NestedNinOptNative
    func (*NestedNinOptNative) Descriptor() ([]byte, []int)
    func (m *NestedNinOptNative) GetNestedNinOpts() []*NinOptNative
    func (m *NestedNinOptNative) Marshal() (dAtA []byte, err error)
    func (m *NestedNinOptNative) MarshalTo(dAtA []byte) (int, error)
    func (*NestedNinOptNative) ProtoMessage()
    func (m *NestedNinOptNative) Reset()
    func (m *NestedNinOptNative) Size() (n int)
    func (m *NestedNinOptNative) String() string
    func (m *NestedNinOptNative) Unmarshal(dAtA []byte) error
type NidOptNative
    func NewPopulatedNidOptNative(r randyRequiredexample, easy bool) *NidOptNative
    func (*NidOptNative) Descriptor() ([]byte, []int)
    func (m *NidOptNative) GetField1() float64
    func (m *NidOptNative) GetField10() int32
    func (m *NidOptNative) GetField11() uint64
    func (m *NidOptNative) GetField12() int64
    func (m *NidOptNative) GetField13() bool
    func (m *NidOptNative) GetField14() string
    func (m *NidOptNative) GetField15() []byte
    func (m *NidOptNative) GetField2() float32
    func (m *NidOptNative) GetField3() int32
    func (m *NidOptNative) GetField4() int64
    func (m *NidOptNative) GetField5() uint32
    func (m *NidOptNative) GetField6() uint64
    func (m *NidOptNative) GetField7() int32
    func (m *NidOptNative) GetField8() int64
    func (m *NidOptNative) GetField9() uint32
    func (m *NidOptNative) Marshal() (dAtA []byte, err error)
    func (m *NidOptNative) MarshalTo(dAtA []byte) (int, error)
    func (*NidOptNative) ProtoMessage()
    func (m *NidOptNative) Reset()
    func (m *NidOptNative) Size() (n int)
    func (m *NidOptNative) String() string
    func (m *NidOptNative) Unmarshal(dAtA []byte) error
type NinOptNative
    func NewPopulatedNinOptNative(r randyRequiredexample, easy bool) *NinOptNative
    func (*NinOptNative) Descriptor() ([]byte, []int)
    func (m *NinOptNative) GetField1() float64
    func (m *NinOptNative) GetField10() int32
    func (m *NinOptNative) GetField11() uint64
    func (m *NinOptNative) GetField12() int64
    func (m *NinOptNative) GetField13() bool
    func (m *NinOptNative) GetField14() string
    func (m *NinOptNative) GetField15() []byte
    func (m *NinOptNative) GetField2() float32
    func (m *NinOptNative) GetField3() int32
    func (m *NinOptNative) GetField4() int64
    func (m *NinOptNative) GetField5() uint32
    func (m *NinOptNative) GetField6() uint64
    func (m *NinOptNative) GetField7() int32
    func (m *NinOptNative) GetField8() int64
    func (m *NinOptNative) GetField9() uint32
    func (m *NinOptNative) Marshal() (dAtA []byte, err error)
    func (m *NinOptNative) MarshalTo(dAtA []byte) (int, error)
    func (*NinOptNative) ProtoMessage()
    func (m *NinOptNative) Reset()
    func (m *NinOptNative) Size() (n int)
    func (m *NinOptNative) String() string
    func (m *NinOptNative) Unmarshal(dAtA []byte) error
type RequiredExample
    func NewPopulatedRequiredExample(r randyRequiredexample, easy bool) *RequiredExample
    func (*RequiredExample) Descriptor() ([]byte, []int)
    func (m *RequiredExample) GetTheOptionalString() string
    func (m *RequiredExample) GetTheRepeatedStrings() []string
    func (m *RequiredExample) GetTheRequiredString() string
    func (m *RequiredExample) Marshal() (dAtA []byte, err error)
    func (m *RequiredExample) MarshalTo(dAtA []byte) (int, error)
    func (*RequiredExample) ProtoMessage()
    func (m *RequiredExample) Reset()
    func (m *RequiredExample) Size() (n int)
    func (m *RequiredExample) String() string
    func (m *RequiredExample) Unmarshal(dAtA []byte) error

Package files

requiredexample.pb.go

Variables

var (
    ErrInvalidLengthRequiredexample = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowRequiredexample   = fmt.Errorf("proto: integer overflow")
)

type NestedNinOptNative

type NestedNinOptNative struct {
    NestedNinOpts    []*NinOptNative `protobuf:"bytes,1,rep,name=NestedNinOpts" json:"NestedNinOpts,omitempty"`
    XXX_unrecognized []byte          `json:"-"`
}

func NewPopulatedNestedNinOptNative

func NewPopulatedNestedNinOptNative(r randyRequiredexample, easy bool) *NestedNinOptNative

func (*NestedNinOptNative) Descriptor

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

func (*NestedNinOptNative) GetNestedNinOpts

func (m *NestedNinOptNative) GetNestedNinOpts() []*NinOptNative

func (*NestedNinOptNative) Marshal

func (m *NestedNinOptNative) Marshal() (dAtA []byte, err error)

func (*NestedNinOptNative) MarshalTo

func (m *NestedNinOptNative) MarshalTo(dAtA []byte) (int, error)

func (*NestedNinOptNative) ProtoMessage

func (*NestedNinOptNative) ProtoMessage()

func (*NestedNinOptNative) Reset

func (m *NestedNinOptNative) Reset()

func (*NestedNinOptNative) Size

func (m *NestedNinOptNative) Size() (n int)

func (*NestedNinOptNative) String

func (m *NestedNinOptNative) String() string

func (*NestedNinOptNative) Unmarshal

func (m *NestedNinOptNative) Unmarshal(dAtA []byte) error

type NidOptNative

type NidOptNative struct {
    Field1           float64 `protobuf:"fixed64,1,req,name=Field1" json:"Field1"`
    Field2           float32 `protobuf:"fixed32,2,req,name=Field2" json:"Field2"`
    Field3           int32   `protobuf:"varint,3,req,name=Field3" json:"Field3"`
    Field4           int64   `protobuf:"varint,4,req,name=Field4" json:"Field4"`
    Field5           uint32  `protobuf:"varint,5,req,name=Field5" json:"Field5"`
    Field6           uint64  `protobuf:"varint,6,req,name=Field6" json:"Field6"`
    Field7           int32   `protobuf:"zigzag32,7,req,name=Field7" json:"Field7"`
    Field8           int64   `protobuf:"zigzag64,8,req,name=Field8" json:"Field8"`
    Field9           uint32  `protobuf:"fixed32,9,req,name=Field9" json:"Field9"`
    Field10          int32   `protobuf:"fixed32,10,req,name=Field10" json:"Field10"`
    Field11          uint64  `protobuf:"fixed64,11,req,name=Field11" json:"Field11"`
    Field12          int64   `protobuf:"fixed64,12,req,name=Field12" json:"Field12"`
    Field13          bool    `protobuf:"varint,13,req,name=Field13" json:"Field13"`
    Field14          string  `protobuf:"bytes,14,req,name=Field14" json:"Field14"`
    Field15          []byte  `protobuf:"bytes,15,req,name=Field15" json:"Field15"`
    XXX_unrecognized []byte  `json:"-"`
}

func NewPopulatedNidOptNative

func NewPopulatedNidOptNative(r randyRequiredexample, easy bool) *NidOptNative

func (*NidOptNative) Descriptor

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

func (*NidOptNative) GetField1

func (m *NidOptNative) GetField1() float64

func (*NidOptNative) GetField10

func (m *NidOptNative) GetField10() int32

func (*NidOptNative) GetField11

func (m *NidOptNative) GetField11() uint64

func (*NidOptNative) GetField12

func (m *NidOptNative) GetField12() int64

func (*NidOptNative) GetField13

func (m *NidOptNative) GetField13() bool

func (*NidOptNative) GetField14

func (m *NidOptNative) GetField14() string

func (*NidOptNative) GetField15

func (m *NidOptNative) GetField15() []byte

func (*NidOptNative) GetField2

func (m *NidOptNative) GetField2() float32

func (*NidOptNative) GetField3

func (m *NidOptNative) GetField3() int32

func (*NidOptNative) GetField4

func (m *NidOptNative) GetField4() int64

func (*NidOptNative) GetField5

func (m *NidOptNative) GetField5() uint32

func (*NidOptNative) GetField6

func (m *NidOptNative) GetField6() uint64

func (*NidOptNative) GetField7

func (m *NidOptNative) GetField7() int32

func (*NidOptNative) GetField8

func (m *NidOptNative) GetField8() int64

func (*NidOptNative) GetField9

func (m *NidOptNative) GetField9() uint32

func (*NidOptNative) Marshal

func (m *NidOptNative) Marshal() (dAtA []byte, err error)

func (*NidOptNative) MarshalTo

func (m *NidOptNative) MarshalTo(dAtA []byte) (int, error)

func (*NidOptNative) ProtoMessage

func (*NidOptNative) ProtoMessage()

func (*NidOptNative) Reset

func (m *NidOptNative) Reset()

func (*NidOptNative) Size

func (m *NidOptNative) Size() (n int)

func (*NidOptNative) String

func (m *NidOptNative) String() string

func (*NidOptNative) Unmarshal

func (m *NidOptNative) Unmarshal(dAtA []byte) error

type NinOptNative

type NinOptNative struct {
    Field1           *float64 `protobuf:"fixed64,1,req,name=Field1" json:"Field1,omitempty"`
    Field2           *float32 `protobuf:"fixed32,2,req,name=Field2" json:"Field2,omitempty"`
    Field3           *int32   `protobuf:"varint,3,req,name=Field3" json:"Field3,omitempty"`
    Field4           *int64   `protobuf:"varint,4,req,name=Field4" json:"Field4,omitempty"`
    Field5           *uint32  `protobuf:"varint,5,req,name=Field5" json:"Field5,omitempty"`
    Field6           *uint64  `protobuf:"varint,6,req,name=Field6" json:"Field6,omitempty"`
    Field7           *int32   `protobuf:"zigzag32,7,req,name=Field7" json:"Field7,omitempty"`
    Field8           *int64   `protobuf:"zigzag64,8,req,name=Field8" json:"Field8,omitempty"`
    Field9           *uint32  `protobuf:"fixed32,9,req,name=Field9" json:"Field9,omitempty"`
    Field10          *int32   `protobuf:"fixed32,10,req,name=Field10" json:"Field10,omitempty"`
    Field11          *uint64  `protobuf:"fixed64,11,req,name=Field11" json:"Field11,omitempty"`
    Field12          *int64   `protobuf:"fixed64,12,req,name=Field12" json:"Field12,omitempty"`
    Field13          *bool    `protobuf:"varint,13,req,name=Field13" json:"Field13,omitempty"`
    Field14          *string  `protobuf:"bytes,14,req,name=Field14" json:"Field14,omitempty"`
    Field15          []byte   `protobuf:"bytes,15,req,name=Field15" json:"Field15,omitempty"`
    XXX_unrecognized []byte   `json:"-"`
}

func NewPopulatedNinOptNative

func NewPopulatedNinOptNative(r randyRequiredexample, easy bool) *NinOptNative

func (*NinOptNative) Descriptor

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

func (*NinOptNative) GetField1

func (m *NinOptNative) GetField1() float64

func (*NinOptNative) GetField10

func (m *NinOptNative) GetField10() int32

func (*NinOptNative) GetField11

func (m *NinOptNative) GetField11() uint64

func (*NinOptNative) GetField12

func (m *NinOptNative) GetField12() int64

func (*NinOptNative) GetField13

func (m *NinOptNative) GetField13() bool

func (*NinOptNative) GetField14

func (m *NinOptNative) GetField14() string

func (*NinOptNative) GetField15

func (m *NinOptNative) GetField15() []byte

func (*NinOptNative) GetField2

func (m *NinOptNative) GetField2() float32

func (*NinOptNative) GetField3

func (m *NinOptNative) GetField3() int32

func (*NinOptNative) GetField4

func (m *NinOptNative) GetField4() int64

func (*NinOptNative) GetField5

func (m *NinOptNative) GetField5() uint32

func (*NinOptNative) GetField6

func (m *NinOptNative) GetField6() uint64

func (*NinOptNative) GetField7

func (m *NinOptNative) GetField7() int32

func (*NinOptNative) GetField8

func (m *NinOptNative) GetField8() int64

func (*NinOptNative) GetField9

func (m *NinOptNative) GetField9() uint32

func (*NinOptNative) Marshal

func (m *NinOptNative) Marshal() (dAtA []byte, err error)

func (*NinOptNative) MarshalTo

func (m *NinOptNative) MarshalTo(dAtA []byte) (int, error)

func (*NinOptNative) ProtoMessage

func (*NinOptNative) ProtoMessage()

func (*NinOptNative) Reset

func (m *NinOptNative) Reset()

func (*NinOptNative) Size

func (m *NinOptNative) Size() (n int)

func (*NinOptNative) String

func (m *NinOptNative) String() string

func (*NinOptNative) Unmarshal

func (m *NinOptNative) Unmarshal(dAtA []byte) error

type RequiredExample

type RequiredExample struct {
    TheRequiredString  *string  `protobuf:"bytes,1,req,name=theRequiredString" json:"theRequiredString,omitempty"`
    TheOptionalString  *string  `protobuf:"bytes,2,opt,name=theOptionalString" json:"theOptionalString,omitempty"`
    TheRepeatedStrings []string `protobuf:"bytes,3,rep,name=theRepeatedStrings" json:"theRepeatedStrings,omitempty"`
    XXX_unrecognized   []byte   `json:"-"`
}

func NewPopulatedRequiredExample

func NewPopulatedRequiredExample(r randyRequiredexample, easy bool) *RequiredExample

func (*RequiredExample) Descriptor

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

func (*RequiredExample) GetTheOptionalString

func (m *RequiredExample) GetTheOptionalString() string

func (*RequiredExample) GetTheRepeatedStrings

func (m *RequiredExample) GetTheRepeatedStrings() []string

func (*RequiredExample) GetTheRequiredString

func (m *RequiredExample) GetTheRequiredString() string

func (*RequiredExample) Marshal

func (m *RequiredExample) Marshal() (dAtA []byte, err error)

func (*RequiredExample) MarshalTo

func (m *RequiredExample) MarshalTo(dAtA []byte) (int, error)

func (*RequiredExample) ProtoMessage

func (*RequiredExample) ProtoMessage()

func (*RequiredExample) Reset

func (m *RequiredExample) Reset()

func (*RequiredExample) Size

func (m *RequiredExample) Size() (n int)

func (*RequiredExample) String

func (m *RequiredExample) String() string

func (*RequiredExample) Unmarshal

func (m *RequiredExample) Unmarshal(dAtA []byte) error