Documentation ¶
Index ¶
- Variables
- type Primitives
- func (x *Primitives) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Primitives) GetFieldA() []byte
- func (x *Primitives) GetFieldAux() *Primitives_Aux
- func (x *Primitives) GetFieldB() string
- func (x *Primitives) GetFieldC() bool
- func (x *Primitives) GetFieldD() int32
- func (x *Primitives) GetFieldE() uint32
- func (x *Primitives) GetFieldF() int64
- func (x *Primitives) GetFieldG() uint64
- func (x *Primitives) GetFieldH() Primitives_SomeEnum
- func (x *Primitives) GetFieldI() uint64
- func (x *Primitives) GetFieldJ() float64
- func (x *Primitives) GetFieldK() uint32
- func (x *Primitives) GetFieldM() isPrimitives_FieldM
- func (x *Primitives) GetFieldMa() []byte
- func (x *Primitives) GetFieldMe() uint32
- func (x *Primitives) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Primitives) MarshalJSON() ([]byte, error)
- func (x *Primitives) MarshalProtobuf(dst []byte) []byte
- func (x *Primitives) SetFieldA(v []byte)
- func (x *Primitives) SetFieldAux(v *Primitives_Aux)
- func (x *Primitives) SetFieldB(v string)
- func (x *Primitives) SetFieldC(v bool)
- func (x *Primitives) SetFieldD(v int32)
- func (x *Primitives) SetFieldE(v uint32)
- func (x *Primitives) SetFieldF(v int64)
- func (x *Primitives) SetFieldG(v uint64)
- func (x *Primitives) SetFieldH(v Primitives_SomeEnum)
- func (x *Primitives) SetFieldI(v uint64)
- func (x *Primitives) SetFieldJ(v float64)
- func (x *Primitives) SetFieldK(v uint32)
- func (x *Primitives) SetFieldM(v isPrimitives_FieldM)
- func (x *Primitives) SetFieldMa(v *Primitives_FieldMa)
- func (x *Primitives) SetFieldMe(v *Primitives_FieldMe)
- func (x *Primitives) StableSize() (size int)
- func (x *Primitives) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Primitives) UnmarshalJSON(data []byte) error
- func (x *Primitives) UnmarshalProtobuf(src []byte) (err error)
- type Primitives_Aux
- func (x *Primitives_Aux) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *Primitives_Aux) GetInnerField() uint32
- func (x *Primitives_Aux) MarshalEasyJSON(out *jwriter.Writer)
- func (x *Primitives_Aux) MarshalJSON() ([]byte, error)
- func (x *Primitives_Aux) MarshalProtobuf(dst []byte) []byte
- func (x *Primitives_Aux) SetInnerField(v uint32)
- func (x *Primitives_Aux) StableSize() (size int)
- func (x *Primitives_Aux) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *Primitives_Aux) UnmarshalJSON(data []byte) error
- func (x *Primitives_Aux) UnmarshalProtobuf(src []byte) (err error)
- type Primitives_FieldAux
- type Primitives_FieldMa
- type Primitives_FieldMe
- type Primitives_SomeEnum
- type RepPrimitives
- func (x *RepPrimitives) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *RepPrimitives) GetFieldA() [][]byte
- func (x *RepPrimitives) GetFieldAux() []RepPrimitives_Aux
- func (x *RepPrimitives) GetFieldB() []string
- func (x *RepPrimitives) GetFieldC() []int32
- func (x *RepPrimitives) GetFieldD() []uint32
- func (x *RepPrimitives) GetFieldE() []int64
- func (x *RepPrimitives) GetFieldF() []uint64
- func (x *RepPrimitives) GetFieldFu() []uint64
- func (x *RepPrimitives) MarshalEasyJSON(out *jwriter.Writer)
- func (x *RepPrimitives) MarshalJSON() ([]byte, error)
- func (x *RepPrimitives) MarshalProtobuf(dst []byte) []byte
- func (x *RepPrimitives) SetFieldA(v [][]byte)
- func (x *RepPrimitives) SetFieldAux(v []RepPrimitives_Aux)
- func (x *RepPrimitives) SetFieldB(v []string)
- func (x *RepPrimitives) SetFieldC(v []int32)
- func (x *RepPrimitives) SetFieldD(v []uint32)
- func (x *RepPrimitives) SetFieldE(v []int64)
- func (x *RepPrimitives) SetFieldF(v []uint64)
- func (x *RepPrimitives) SetFieldFu(v []uint64)
- func (x *RepPrimitives) StableSize() (size int)
- func (x *RepPrimitives) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *RepPrimitives) UnmarshalJSON(data []byte) error
- func (x *RepPrimitives) UnmarshalProtobuf(src []byte) (err error)
- type RepPrimitives_Aux
- func (x *RepPrimitives_Aux) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *RepPrimitives_Aux) GetInnerField() uint32
- func (x *RepPrimitives_Aux) MarshalEasyJSON(out *jwriter.Writer)
- func (x *RepPrimitives_Aux) MarshalJSON() ([]byte, error)
- func (x *RepPrimitives_Aux) MarshalProtobuf(dst []byte) []byte
- func (x *RepPrimitives_Aux) SetInnerField(v uint32)
- func (x *RepPrimitives_Aux) StableSize() (size int)
- func (x *RepPrimitives_Aux) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *RepPrimitives_Aux) UnmarshalJSON(data []byte) error
- func (x *RepPrimitives_Aux) UnmarshalProtobuf(src []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
var ( Primitives_SomeEnum_name = map[int32]string{ 0: "UNKNOWN", 1: "POSITIVE", -1: "NEGATIVE", } Primitives_SomeEnum_value = map[string]int32{ "UNKNOWN": 0, "POSITIVE": 1, "NEGATIVE": -1, } )
Functions ¶
This section is empty.
Types ¶
type Primitives ¶
type Primitives struct { FieldA []byte `json:"fieldA"` FieldB string `json:"fieldB"` FieldC bool `json:"fieldC"` FieldD int32 `json:"fieldD"` FieldE uint32 `json:"fieldE"` FieldF int64 `json:"fieldF"` FieldG uint64 `json:"fieldG"` FieldI uint64 `json:"fieldI"` FieldJ float64 `json:"fieldJ"` FieldK uint32 `json:"fieldK"` FieldH Primitives_SomeEnum `json:"fieldH"` FieldM isPrimitives_FieldM }
func (*Primitives) EmitProtobuf ¶
func (x *Primitives) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Primitives) GetFieldA ¶
func (x *Primitives) GetFieldA() []byte
func (*Primitives) GetFieldAux ¶
func (x *Primitives) GetFieldAux() *Primitives_Aux
func (*Primitives) GetFieldB ¶
func (x *Primitives) GetFieldB() string
func (*Primitives) GetFieldC ¶
func (x *Primitives) GetFieldC() bool
func (*Primitives) GetFieldD ¶
func (x *Primitives) GetFieldD() int32
func (*Primitives) GetFieldE ¶
func (x *Primitives) GetFieldE() uint32
func (*Primitives) GetFieldF ¶
func (x *Primitives) GetFieldF() int64
func (*Primitives) GetFieldG ¶
func (x *Primitives) GetFieldG() uint64
func (*Primitives) GetFieldH ¶
func (x *Primitives) GetFieldH() Primitives_SomeEnum
func (*Primitives) GetFieldI ¶
func (x *Primitives) GetFieldI() uint64
func (*Primitives) GetFieldJ ¶
func (x *Primitives) GetFieldJ() float64
func (*Primitives) GetFieldK ¶
func (x *Primitives) GetFieldK() uint32
func (*Primitives) GetFieldM ¶
func (x *Primitives) GetFieldM() isPrimitives_FieldM
func (*Primitives) GetFieldMa ¶
func (x *Primitives) GetFieldMa() []byte
func (*Primitives) GetFieldMe ¶
func (x *Primitives) GetFieldMe() uint32
func (*Primitives) MarshalEasyJSON ¶
func (x *Primitives) MarshalEasyJSON(out *jwriter.Writer)
func (*Primitives) MarshalJSON ¶
func (x *Primitives) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*Primitives) MarshalProtobuf ¶
func (x *Primitives) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Primitives) SetFieldA ¶
func (x *Primitives) SetFieldA(v []byte)
func (*Primitives) SetFieldAux ¶
func (x *Primitives) SetFieldAux(v *Primitives_Aux)
func (*Primitives) SetFieldB ¶
func (x *Primitives) SetFieldB(v string)
func (*Primitives) SetFieldC ¶
func (x *Primitives) SetFieldC(v bool)
func (*Primitives) SetFieldD ¶
func (x *Primitives) SetFieldD(v int32)
func (*Primitives) SetFieldE ¶
func (x *Primitives) SetFieldE(v uint32)
func (*Primitives) SetFieldF ¶
func (x *Primitives) SetFieldF(v int64)
func (*Primitives) SetFieldG ¶
func (x *Primitives) SetFieldG(v uint64)
func (*Primitives) SetFieldH ¶
func (x *Primitives) SetFieldH(v Primitives_SomeEnum)
func (*Primitives) SetFieldI ¶
func (x *Primitives) SetFieldI(v uint64)
func (*Primitives) SetFieldJ ¶
func (x *Primitives) SetFieldJ(v float64)
func (*Primitives) SetFieldK ¶
func (x *Primitives) SetFieldK(v uint32)
func (*Primitives) SetFieldM ¶
func (x *Primitives) SetFieldM(v isPrimitives_FieldM)
func (*Primitives) SetFieldMa ¶
func (x *Primitives) SetFieldMa(v *Primitives_FieldMa)
func (*Primitives) SetFieldMe ¶
func (x *Primitives) SetFieldMe(v *Primitives_FieldMe)
func (*Primitives) StableSize ¶
func (x *Primitives) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Primitives) UnmarshalEasyJSON ¶
func (x *Primitives) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*Primitives) UnmarshalJSON ¶
func (x *Primitives) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Primitives) UnmarshalProtobuf ¶
func (x *Primitives) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type Primitives_Aux ¶
type Primitives_Aux struct {
InnerField uint32 `json:"innerField"`
}
func (*Primitives_Aux) EmitProtobuf ¶
func (x *Primitives_Aux) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*Primitives_Aux) GetInnerField ¶
func (x *Primitives_Aux) GetInnerField() uint32
func (*Primitives_Aux) MarshalEasyJSON ¶
func (x *Primitives_Aux) MarshalEasyJSON(out *jwriter.Writer)
func (*Primitives_Aux) MarshalJSON ¶
func (x *Primitives_Aux) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*Primitives_Aux) MarshalProtobuf ¶
func (x *Primitives_Aux) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*Primitives_Aux) SetInnerField ¶
func (x *Primitives_Aux) SetInnerField(v uint32)
func (*Primitives_Aux) StableSize ¶
func (x *Primitives_Aux) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*Primitives_Aux) UnmarshalEasyJSON ¶
func (x *Primitives_Aux) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*Primitives_Aux) UnmarshalJSON ¶
func (x *Primitives_Aux) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*Primitives_Aux) UnmarshalProtobuf ¶
func (x *Primitives_Aux) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type Primitives_FieldAux ¶
type Primitives_FieldAux struct {
FieldAux *Primitives_Aux
}
type Primitives_FieldMa ¶
type Primitives_FieldMa struct {
FieldMa []byte
}
func (*Primitives_FieldMa) GetFieldMa ¶
func (x *Primitives_FieldMa) GetFieldMa() []byte
func (*Primitives_FieldMa) SetFieldMa ¶
func (x *Primitives_FieldMa) SetFieldMa(v []byte)
type Primitives_FieldMe ¶
type Primitives_FieldMe struct {
FieldMe uint32
}
func (*Primitives_FieldMe) GetFieldMe ¶
func (x *Primitives_FieldMe) GetFieldMe() uint32
func (*Primitives_FieldMe) SetFieldMe ¶
func (x *Primitives_FieldMe) SetFieldMe(v uint32)
type Primitives_SomeEnum ¶
type Primitives_SomeEnum int32
const ( Primitives_UNKNOWN Primitives_SomeEnum = 0 Primitives_POSITIVE Primitives_SomeEnum = 1 Primitives_NEGATIVE Primitives_SomeEnum = -1 )
func (*Primitives_SomeEnum) FromString ¶
func (x *Primitives_SomeEnum) FromString(s string) bool
func (Primitives_SomeEnum) String ¶
func (x Primitives_SomeEnum) String() string
type RepPrimitives ¶
type RepPrimitives struct { FieldA [][]byte `json:"fieldA"` FieldB []string `json:"fieldB"` FieldC []int32 `json:"fieldC"` FieldD []uint32 `json:"fieldD"` FieldE []int64 `json:"fieldE"` FieldF []uint64 `json:"fieldF"` FieldFu []uint64 `json:"fieldFu"` FieldAux []RepPrimitives_Aux `json:"fieldAux"` }
func (*RepPrimitives) EmitProtobuf ¶
func (x *RepPrimitives) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*RepPrimitives) GetFieldA ¶
func (x *RepPrimitives) GetFieldA() [][]byte
func (*RepPrimitives) GetFieldAux ¶
func (x *RepPrimitives) GetFieldAux() []RepPrimitives_Aux
func (*RepPrimitives) GetFieldB ¶
func (x *RepPrimitives) GetFieldB() []string
func (*RepPrimitives) GetFieldC ¶
func (x *RepPrimitives) GetFieldC() []int32
func (*RepPrimitives) GetFieldD ¶
func (x *RepPrimitives) GetFieldD() []uint32
func (*RepPrimitives) GetFieldE ¶
func (x *RepPrimitives) GetFieldE() []int64
func (*RepPrimitives) GetFieldF ¶
func (x *RepPrimitives) GetFieldF() []uint64
func (*RepPrimitives) GetFieldFu ¶
func (x *RepPrimitives) GetFieldFu() []uint64
func (*RepPrimitives) MarshalEasyJSON ¶
func (x *RepPrimitives) MarshalEasyJSON(out *jwriter.Writer)
func (*RepPrimitives) MarshalJSON ¶
func (x *RepPrimitives) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*RepPrimitives) MarshalProtobuf ¶
func (x *RepPrimitives) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*RepPrimitives) SetFieldA ¶
func (x *RepPrimitives) SetFieldA(v [][]byte)
func (*RepPrimitives) SetFieldAux ¶
func (x *RepPrimitives) SetFieldAux(v []RepPrimitives_Aux)
func (*RepPrimitives) SetFieldB ¶
func (x *RepPrimitives) SetFieldB(v []string)
func (*RepPrimitives) SetFieldC ¶
func (x *RepPrimitives) SetFieldC(v []int32)
func (*RepPrimitives) SetFieldD ¶
func (x *RepPrimitives) SetFieldD(v []uint32)
func (*RepPrimitives) SetFieldE ¶
func (x *RepPrimitives) SetFieldE(v []int64)
func (*RepPrimitives) SetFieldF ¶
func (x *RepPrimitives) SetFieldF(v []uint64)
func (*RepPrimitives) SetFieldFu ¶
func (x *RepPrimitives) SetFieldFu(v []uint64)
func (*RepPrimitives) StableSize ¶
func (x *RepPrimitives) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*RepPrimitives) UnmarshalEasyJSON ¶
func (x *RepPrimitives) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*RepPrimitives) UnmarshalJSON ¶
func (x *RepPrimitives) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*RepPrimitives) UnmarshalProtobuf ¶
func (x *RepPrimitives) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type RepPrimitives_Aux ¶
type RepPrimitives_Aux struct {
InnerField uint32 `json:"innerField"`
}
func (*RepPrimitives_Aux) EmitProtobuf ¶
func (x *RepPrimitives_Aux) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*RepPrimitives_Aux) GetInnerField ¶
func (x *RepPrimitives_Aux) GetInnerField() uint32
func (*RepPrimitives_Aux) MarshalEasyJSON ¶
func (x *RepPrimitives_Aux) MarshalEasyJSON(out *jwriter.Writer)
func (*RepPrimitives_Aux) MarshalJSON ¶
func (x *RepPrimitives_Aux) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*RepPrimitives_Aux) MarshalProtobuf ¶
func (x *RepPrimitives_Aux) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*RepPrimitives_Aux) SetInnerField ¶
func (x *RepPrimitives_Aux) SetInnerField(v uint32)
func (*RepPrimitives_Aux) StableSize ¶
func (x *RepPrimitives_Aux) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*RepPrimitives_Aux) UnmarshalEasyJSON ¶
func (x *RepPrimitives_Aux) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*RepPrimitives_Aux) UnmarshalJSON ¶
func (x *RepPrimitives_Aux) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*RepPrimitives_Aux) UnmarshalProtobuf ¶
func (x *RepPrimitives_Aux) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.