Documentation ¶
Overview ¶
Package picotest holds generated types for testing.
Index ¶
- type Address
- type AllTypes
- func (m *AllTypes) Decode(c *picobuf.Decoder)
- func (m *AllTypes) Encode(c *picobuf.Encoder) bool
- func (m *AllTypes) GetBool() (v bool)
- func (m *AllTypes) GetBools() (v []bool)
- func (m *AllTypes) GetBytes() (v []byte)
- func (m *AllTypes) GetBytess() (v [][]byte)
- func (m *AllTypes) GetDouble() (v float64)
- func (m *AllTypes) GetDoubles() (v []float64)
- func (m *AllTypes) GetFixed32() (v uint32)
- func (m *AllTypes) GetFixed32S() (v []uint32)
- func (m *AllTypes) GetFixed64() (v uint64)
- func (m *AllTypes) GetFixed64S() (v []uint64)
- func (m *AllTypes) GetFloat() (v float32)
- func (m *AllTypes) GetFloats() (v []float32)
- func (m *AllTypes) GetInt32() (v int32)
- func (m *AllTypes) GetInt32S() (v []int32)
- func (m *AllTypes) GetInt64() (v int64)
- func (m *AllTypes) GetInt64S() (v []int64)
- func (m *AllTypes) GetMessage() (v *Message)
- func (m *AllTypes) GetMessages() (v []*Message)
- func (m *AllTypes) GetSfixed32() (v int32)
- func (m *AllTypes) GetSfixed32S() (v []int32)
- func (m *AllTypes) GetSfixed64() (v int64)
- func (m *AllTypes) GetSfixed64S() (v []int64)
- func (m *AllTypes) GetSint32() (v int32)
- func (m *AllTypes) GetSint32S() (v []int32)
- func (m *AllTypes) GetSint64() (v int64)
- func (m *AllTypes) GetSint64S() (v []int64)
- func (m *AllTypes) GetString_() (v string)
- func (m *AllTypes) GetStrings() (v []string)
- func (m *AllTypes) GetUint32() (v uint32)
- func (m *AllTypes) GetUint32S() (v []uint32)
- func (m *AllTypes) GetUint64() (v uint64)
- func (m *AllTypes) GetUint64S() (v []uint64)
- type Basic
- func (m *Basic) Decode(c *picobuf.Decoder)
- func (m *Basic) Encode(c *picobuf.Encoder) bool
- func (m *Basic) GetByte0() (v int32)
- func (m *Basic) GetByte1() (v int32)
- func (m *Basic) GetByte100() (v int32)
- func (m *Basic) GetByte255() (v int32)
- func (m *Basic) GetBytesNumbers() (v []byte)
- func (m *Basic) GetBytesZero() (v []byte)
- func (m *Basic) GetStringEmpty() (v string)
- func (m *Basic) GetStringHello() (v string)
- type CustomBytes
- func (m *CustomBytes) Decode(c *picobuf.Decoder)
- func (m *CustomBytes) Encode(c *picobuf.Encoder) bool
- func (m *CustomBytes) GetOpt() (v *pic.ID)
- func (m *CustomBytes) GetPresentBasic() (v pic.ID)
- func (m *CustomBytes) GetPresentOpt() (v pic.ID)
- func (m *CustomBytes) GetPresentRep() (v []pic.ID)
- func (m *CustomBytes) GetRep() (v []pic.ID)
- func (m *CustomBytes) GetValue() (v pic.ID)
- type CustomMessageTypes
- func (m *CustomMessageTypes) Decode(c *picobuf.Decoder)
- func (m *CustomMessageTypes) Encode(c *picobuf.Encoder) bool
- func (m *CustomMessageTypes) GetCustomType() (v *pic.Timestamp)
- func (m *CustomMessageTypes) GetCustomTypeCast() (v *time.Time)
- func (m *CustomMessageTypes) GetNormal() (v *Timestamp)
- func (m *CustomMessageTypes) GetPresentCustomType() (v pic.Timestamp)
- func (m *CustomMessageTypes) GetPresentCustomTypeCast() (v time.Time)
- func (m *CustomMessageTypes) GetRepeatedCustomType() (v []*pic.Timestamp)
- func (m *CustomMessageTypes) GetRepeatedCustomTypeCast() (v []*time.Time)
- func (m *CustomMessageTypes) GetRepeatedPresentCustomType() (v []pic.Timestamp)
- func (m *CustomMessageTypes) GetRepeatedPresentCustomTypeCast() (v []time.Time)
- type KnownMessage
- type Map
- type Message
- type Person
- type Piece
- type Tag
- func (m *Tag) Decode(c *picobuf.Decoder)
- func (m *Tag) Encode(c *picobuf.Encoder) bool
- func (m *Tag) GetBool() (v bool)
- func (m *Tag) GetBytes() (v []byte)
- func (m *Tag) GetDouble() (v float64)
- func (m *Tag) GetDurationNs() (v int64)
- func (m *Tag) GetInt64() (v int64)
- func (m *Tag) GetKey() (v string)
- func (m *Tag) GetString_() (v []byte)
- func (m *Tag) GetTimestamp() (v *Timestamp)
- func (m *Tag) GetValue() (v isTag_Value)
- type Tag_Bool
- type Tag_Bytes
- type Tag_Double
- type Tag_DurationNs
- type Tag_Int64
- type Tag_String_
- type Tag_Timestamp
- type Timestamp
- type UnknownMessage
- type VariationsMessage
- func (m *VariationsMessage) Decode(c *picobuf.Decoder)
- func (m *VariationsMessage) Encode(c *picobuf.Encoder) bool
- func (m *VariationsMessage) GetOpt() (v *Message)
- func (m *VariationsMessage) GetPresentBasic() (v Message)
- func (m *VariationsMessage) GetPresentOpt() (v Message)
- func (m *VariationsMessage) GetPresentRep() (v []Message)
- func (m *VariationsMessage) GetRep() (v []*Message)
- func (m *VariationsMessage) GetValue() (v *Message)
- type VariationsScalar
- func (m *VariationsScalar) Decode(c *picobuf.Decoder)
- func (m *VariationsScalar) Encode(c *picobuf.Encoder) bool
- func (m *VariationsScalar) GetOpt() (v *string)
- func (m *VariationsScalar) GetOptBytes() (v *[]byte)
- func (m *VariationsScalar) GetPresentBasic() (v string)
- func (m *VariationsScalar) GetPresentOpt() (v string)
- func (m *VariationsScalar) GetPresentRep() (v []string)
- func (m *VariationsScalar) GetRep() (v []string)
- func (m *VariationsScalar) GetValue() (v string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllTypes ¶
type AllTypes struct { Int32 int32 `json:"int32,omitempty"` Int64 int64 `json:"int64,omitempty"` Uint32 uint32 `json:"uint32,omitempty"` Uint64 uint64 `json:"uint64,omitempty"` Sint32 int32 `json:"sint32,omitempty"` Sint64 int64 `json:"sint64,omitempty"` Fixed32 uint32 `json:"fixed32,omitempty"` Fixed64 uint64 `json:"fixed64,omitempty"` Sfixed32 int32 `json:"sfixed32,omitempty"` Sfixed64 int64 `json:"sfixed64,omitempty"` Float float32 `json:"float,omitempty"` Double float64 `json:"double,omitempty"` Bool bool `json:"bool,omitempty"` String_ string `json:"string,omitempty"` Bytes []byte `json:"bytes,omitempty"` Message *Message `json:"message,omitempty"` Int32S []int32 `json:"int32s,omitempty"` Int64S []int64 `json:"int64s,omitempty"` Uint32S []uint32 `json:"uint32s,omitempty"` Uint64S []uint64 `json:"uint64s,omitempty"` Sint32S []int32 `json:"sint32s,omitempty"` Sint64S []int64 `json:"sint64s,omitempty"` Fixed32S []uint32 `json:"fixed32s,omitempty"` Fixed64S []uint64 `json:"fixed64s,omitempty"` Sfixed32S []int32 `json:"sfixed32s,omitempty"` Sfixed64S []int64 `json:"sfixed64s,omitempty"` Floats []float32 `json:"floats,omitempty"` Doubles []float64 `json:"doubles,omitempty"` Bools []bool `json:"bools,omitempty"` Strings []string `json:"strings,omitempty"` Bytess [][]byte `json:"bytess,omitempty"` Messages []*Message `json:"messages,omitempty"` }
func (*AllTypes) GetDoubles ¶ added in v0.0.4
func (*AllTypes) GetFixed32 ¶ added in v0.0.4
func (*AllTypes) GetFixed32S ¶ added in v0.0.4
func (*AllTypes) GetFixed64 ¶ added in v0.0.4
func (*AllTypes) GetFixed64S ¶ added in v0.0.4
func (*AllTypes) GetMessage ¶ added in v0.0.4
func (*AllTypes) GetMessages ¶ added in v0.0.4
func (*AllTypes) GetSfixed32 ¶ added in v0.0.4
func (*AllTypes) GetSfixed32S ¶ added in v0.0.4
func (*AllTypes) GetSfixed64 ¶ added in v0.0.4
func (*AllTypes) GetSfixed64S ¶ added in v0.0.4
func (*AllTypes) GetSint32S ¶ added in v0.0.4
func (*AllTypes) GetSint64S ¶ added in v0.0.4
func (*AllTypes) GetString_ ¶ added in v0.0.4
func (*AllTypes) GetStrings ¶ added in v0.0.4
func (*AllTypes) GetUint32S ¶ added in v0.0.4
func (*AllTypes) GetUint64S ¶ added in v0.0.4
type Basic ¶
type Basic struct { Byte0 int32 `json:"byte0,omitempty"` Byte1 int32 `json:"byte1,omitempty"` Byte100 int32 `json:"byte100,omitempty"` Byte255 int32 `json:"byte255,omitempty"` StringEmpty string `json:"string_empty,omitempty"` StringHello string `json:"string_hello,omitempty"` BytesZero []byte `json:"bytes_zero,omitempty"` BytesNumbers []byte `json:"bytes_numbers,omitempty"` }
func (*Basic) GetByte100 ¶ added in v0.0.4
func (*Basic) GetByte255 ¶ added in v0.0.4
func (*Basic) GetBytesNumbers ¶ added in v0.0.4
func (*Basic) GetBytesZero ¶ added in v0.0.4
func (*Basic) GetStringEmpty ¶ added in v0.0.4
func (*Basic) GetStringHello ¶ added in v0.0.4
type CustomBytes ¶
type CustomBytes struct { Value pic.ID `json:"value,omitempty"` Opt *pic.ID `json:"opt,omitempty"` Rep []pic.ID `json:"rep,omitempty"` PresentBasic pic.ID `json:"present_basic,omitempty"` PresentOpt pic.ID `json:"present_opt,omitempty"` PresentRep []pic.ID `json:"present_rep,omitempty"` }
func (*CustomBytes) Decode ¶
func (m *CustomBytes) Decode(c *picobuf.Decoder)
func (*CustomBytes) GetOpt ¶ added in v0.0.4
func (m *CustomBytes) GetOpt() (v *pic.ID)
func (*CustomBytes) GetPresentBasic ¶ added in v0.0.4
func (m *CustomBytes) GetPresentBasic() (v pic.ID)
func (*CustomBytes) GetPresentOpt ¶ added in v0.0.4
func (m *CustomBytes) GetPresentOpt() (v pic.ID)
func (*CustomBytes) GetPresentRep ¶ added in v0.0.4
func (m *CustomBytes) GetPresentRep() (v []pic.ID)
func (*CustomBytes) GetRep ¶ added in v0.0.4
func (m *CustomBytes) GetRep() (v []pic.ID)
func (*CustomBytes) GetValue ¶ added in v0.0.4
func (m *CustomBytes) GetValue() (v pic.ID)
type CustomMessageTypes ¶
type CustomMessageTypes struct { Normal *Timestamp `json:"normal,omitempty"` CustomType *pic.Timestamp `json:"custom_type,omitempty"` PresentCustomType pic.Timestamp `json:"present_custom_type,omitempty"` CustomTypeCast *time.Time `json:"custom_type_cast,omitempty"` PresentCustomTypeCast time.Time `json:"present_custom_type_cast,omitempty"` RepeatedCustomType []*pic.Timestamp `json:"repeated_custom_type,omitempty"` RepeatedPresentCustomType []pic.Timestamp `json:"repeated_present_custom_type,omitempty"` RepeatedCustomTypeCast []*time.Time `json:"repeated_custom_type_cast,omitempty"` RepeatedPresentCustomTypeCast []time.Time `json:"repeated_present_custom_type_cast,omitempty"` }
func (*CustomMessageTypes) Decode ¶
func (m *CustomMessageTypes) Decode(c *picobuf.Decoder)
func (*CustomMessageTypes) GetCustomType ¶ added in v0.0.4
func (m *CustomMessageTypes) GetCustomType() (v *pic.Timestamp)
func (*CustomMessageTypes) GetCustomTypeCast ¶ added in v0.0.4
func (m *CustomMessageTypes) GetCustomTypeCast() (v *time.Time)
func (*CustomMessageTypes) GetNormal ¶ added in v0.0.4
func (m *CustomMessageTypes) GetNormal() (v *Timestamp)
func (*CustomMessageTypes) GetPresentCustomType ¶ added in v0.0.4
func (m *CustomMessageTypes) GetPresentCustomType() (v pic.Timestamp)
func (*CustomMessageTypes) GetPresentCustomTypeCast ¶ added in v0.0.4
func (m *CustomMessageTypes) GetPresentCustomTypeCast() (v time.Time)
func (*CustomMessageTypes) GetRepeatedCustomType ¶ added in v0.0.4
func (m *CustomMessageTypes) GetRepeatedCustomType() (v []*pic.Timestamp)
func (*CustomMessageTypes) GetRepeatedCustomTypeCast ¶ added in v0.0.4
func (m *CustomMessageTypes) GetRepeatedCustomTypeCast() (v []*time.Time)
func (*CustomMessageTypes) GetRepeatedPresentCustomType ¶ added in v0.0.4
func (m *CustomMessageTypes) GetRepeatedPresentCustomType() (v []pic.Timestamp)
func (*CustomMessageTypes) GetRepeatedPresentCustomTypeCast ¶ added in v0.0.4
func (m *CustomMessageTypes) GetRepeatedPresentCustomTypeCast() (v []time.Time)
type KnownMessage ¶ added in v0.0.2
type KnownMessage struct { First int64 `json:"first,omitempty"` Second int64 `json:"second,omitempty"` Third int64 `json:"third,omitempty"` Fourth int64 `json:"fourth,omitempty"` XXX_unrecognized []byte }
func (*KnownMessage) Decode ¶ added in v0.0.2
func (m *KnownMessage) Decode(c *picobuf.Decoder)
func (*KnownMessage) Encode ¶ added in v0.0.2
func (m *KnownMessage) Encode(c *picobuf.Encoder) bool
func (*KnownMessage) GetFirst ¶ added in v0.0.4
func (m *KnownMessage) GetFirst() (v int64)
func (*KnownMessage) GetFourth ¶ added in v0.0.4
func (m *KnownMessage) GetFourth() (v int64)
func (*KnownMessage) GetSecond ¶ added in v0.0.4
func (m *KnownMessage) GetSecond() (v int64)
func (*KnownMessage) GetThird ¶ added in v0.0.4
func (m *KnownMessage) GetThird() (v int64)
type Person ¶
type Person struct { Name string `json:"name,omitempty"` Address *Address `json:"address,omitempty"` }
func (*Person) GetAddress ¶ added in v0.0.4
type Tag ¶ added in v0.0.2
type Tag struct { Key string `json:"key,omitempty"` // Types that are assignable to Value: // // *Tag_String_ // *Tag_Int64 // *Tag_Double // *Tag_Bytes // *Tag_Bool // *Tag_DurationNs // *Tag_Timestamp Value isTag_Value }
func (*Tag) GetDurationNs ¶ added in v0.0.4
func (*Tag) GetString_ ¶ added in v0.0.4
func (*Tag) GetTimestamp ¶ added in v0.0.4
type Tag_Double ¶ added in v0.0.2
type Tag_Double struct {
Double float64
}
type Tag_DurationNs ¶ added in v0.0.2
type Tag_DurationNs struct {
DurationNs int64
}
type Tag_String_ ¶ added in v0.0.2
type Tag_String_ struct {
String_ []byte
}
type Tag_Timestamp ¶ added in v0.0.2
type Tag_Timestamp struct {
Timestamp *Timestamp
}
type Timestamp ¶
type Timestamp struct { Seconds int64 `json:"seconds,omitempty"` Nanos int32 `json:"nanos,omitempty"` }
func (*Timestamp) GetSeconds ¶ added in v0.0.4
type UnknownMessage ¶ added in v0.0.2
type UnknownMessage struct { Second int64 `json:"second,omitempty"` Fourth int64 `json:"fourth,omitempty"` XXX_unrecognized []byte }
func (*UnknownMessage) Decode ¶ added in v0.0.2
func (m *UnknownMessage) Decode(c *picobuf.Decoder)
func (*UnknownMessage) Encode ¶ added in v0.0.2
func (m *UnknownMessage) Encode(c *picobuf.Encoder) bool
func (*UnknownMessage) GetFourth ¶ added in v0.0.4
func (m *UnknownMessage) GetFourth() (v int64)
func (*UnknownMessage) GetSecond ¶ added in v0.0.4
func (m *UnknownMessage) GetSecond() (v int64)
type VariationsMessage ¶
type VariationsMessage struct { Value *Message `json:"value,omitempty"` Opt *Message `json:"opt,omitempty"` Rep []*Message `json:"rep,omitempty"` PresentBasic Message `json:"present_basic,omitempty"` PresentOpt Message `json:"present_opt,omitempty"` PresentRep []Message `json:"present_rep,omitempty"` }
func (*VariationsMessage) Decode ¶
func (m *VariationsMessage) Decode(c *picobuf.Decoder)
func (*VariationsMessage) GetOpt ¶ added in v0.0.4
func (m *VariationsMessage) GetOpt() (v *Message)
func (*VariationsMessage) GetPresentBasic ¶ added in v0.0.4
func (m *VariationsMessage) GetPresentBasic() (v Message)
func (*VariationsMessage) GetPresentOpt ¶ added in v0.0.4
func (m *VariationsMessage) GetPresentOpt() (v Message)
func (*VariationsMessage) GetPresentRep ¶ added in v0.0.4
func (m *VariationsMessage) GetPresentRep() (v []Message)
func (*VariationsMessage) GetRep ¶ added in v0.0.4
func (m *VariationsMessage) GetRep() (v []*Message)
func (*VariationsMessage) GetValue ¶ added in v0.0.4
func (m *VariationsMessage) GetValue() (v *Message)
type VariationsScalar ¶
type VariationsScalar struct { Value string `json:"value,omitempty"` Opt *string `json:"opt,omitempty"` Rep []string `json:"rep,omitempty"` PresentBasic string `json:"present_basic,omitempty"` PresentOpt string `json:"present_opt,omitempty"` PresentRep []string `json:"present_rep,omitempty"` OptBytes *[]byte `json:"opt_bytes,omitempty"` }
func (*VariationsScalar) Decode ¶
func (m *VariationsScalar) Decode(c *picobuf.Decoder)
func (*VariationsScalar) GetOpt ¶ added in v0.0.4
func (m *VariationsScalar) GetOpt() (v *string)
func (*VariationsScalar) GetOptBytes ¶ added in v0.0.4
func (m *VariationsScalar) GetOptBytes() (v *[]byte)
func (*VariationsScalar) GetPresentBasic ¶ added in v0.0.4
func (m *VariationsScalar) GetPresentBasic() (v string)
func (*VariationsScalar) GetPresentOpt ¶ added in v0.0.4
func (m *VariationsScalar) GetPresentOpt() (v string)
func (*VariationsScalar) GetPresentRep ¶ added in v0.0.4
func (m *VariationsScalar) GetPresentRep() (v []string)
func (*VariationsScalar) GetRep ¶ added in v0.0.4
func (m *VariationsScalar) GetRep() (v []string)
func (*VariationsScalar) GetValue ¶ added in v0.0.4
func (m *VariationsScalar) GetValue() (v string)
Click to show internal directories.
Click to hide internal directories.