Documentation
¶
Index ¶
- Variables
- type ContainersOfContainers
- func (v *ContainersOfContainers) Decode(sr stream.Reader) error
- func (v *ContainersOfContainers) Encode(sw stream.Writer) error
- func (v *ContainersOfContainers) Equals(rhs *ContainersOfContainers) bool
- func (v *ContainersOfContainers) FromWire(w wire.Value) error
- func (v *ContainersOfContainers) GetListOfLists() (o [][]int32)
- func (v *ContainersOfContainers) GetListOfMaps() (o []map[int32]int32)
- func (v *ContainersOfContainers) GetListOfSets() (o []map[int32]struct{})
- func (v *ContainersOfContainers) GetMapOfListToSet() (o []struct{ ... })
- func (v *ContainersOfContainers) GetMapOfMapToInt() (o []struct{ ... })
- func (v *ContainersOfContainers) GetMapOfSetToListOfDouble() (o []struct{ ... })
- func (v *ContainersOfContainers) GetSetOfLists() (o [][]string)
- func (v *ContainersOfContainers) GetSetOfMaps() (o []map[string]string)
- func (v *ContainersOfContainers) GetSetOfSets() (o []map[string]struct{})
- func (v *ContainersOfContainers) IsSetListOfLists() bool
- func (v *ContainersOfContainers) IsSetListOfMaps() bool
- func (v *ContainersOfContainers) IsSetListOfSets() bool
- func (v *ContainersOfContainers) IsSetMapOfListToSet() bool
- func (v *ContainersOfContainers) IsSetMapOfMapToInt() bool
- func (v *ContainersOfContainers) IsSetMapOfSetToListOfDouble() bool
- func (v *ContainersOfContainers) IsSetSetOfLists() bool
- func (v *ContainersOfContainers) IsSetSetOfMaps() bool
- func (v *ContainersOfContainers) IsSetSetOfSets() bool
- func (v *ContainersOfContainers) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ContainersOfContainers) String() string
- func (v *ContainersOfContainers) ToWire() (wire.Value, error)
- type EnumContainers
- func (v *EnumContainers) Decode(sr stream.Reader) error
- func (v *EnumContainers) Encode(sw stream.Writer) error
- func (v *EnumContainers) Equals(rhs *EnumContainers) bool
- func (v *EnumContainers) FromWire(w wire.Value) error
- func (v *EnumContainers) GetListOfEnums() (o []enums.EnumDefault)
- func (v *EnumContainers) GetMapOfEnums() (o map[enums.EnumWithDuplicateValues]int32)
- func (v *EnumContainers) GetSetOfEnums() (o map[enums.EnumWithValues]struct{})
- func (v *EnumContainers) IsSetListOfEnums() bool
- func (v *EnumContainers) IsSetMapOfEnums() bool
- func (v *EnumContainers) IsSetSetOfEnums() bool
- func (v *EnumContainers) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *EnumContainers) String() string
- func (v *EnumContainers) ToWire() (wire.Value, error)
- type ListOfConflictingEnums
- func (v *ListOfConflictingEnums) Decode(sr stream.Reader) error
- func (v *ListOfConflictingEnums) Encode(sw stream.Writer) error
- func (v *ListOfConflictingEnums) Equals(rhs *ListOfConflictingEnums) bool
- func (v *ListOfConflictingEnums) FromWire(w wire.Value) error
- func (v *ListOfConflictingEnums) GetOtherRecords() (o []enums.RecordType)
- func (v *ListOfConflictingEnums) GetRecords() (o []enum_conflict.RecordType)
- func (v *ListOfConflictingEnums) IsSetOtherRecords() bool
- func (v *ListOfConflictingEnums) IsSetRecords() bool
- func (v *ListOfConflictingEnums) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ListOfConflictingEnums) String() string
- func (v *ListOfConflictingEnums) ToWire() (wire.Value, error)
- type ListOfConflictingUUIDs
- func (v *ListOfConflictingUUIDs) Decode(sr stream.Reader) error
- func (v *ListOfConflictingUUIDs) Encode(sw stream.Writer) error
- func (v *ListOfConflictingUUIDs) Equals(rhs *ListOfConflictingUUIDs) bool
- func (v *ListOfConflictingUUIDs) FromWire(w wire.Value) error
- func (v *ListOfConflictingUUIDs) GetOtherUUIDs() (o []uuid_conflict.UUID)
- func (v *ListOfConflictingUUIDs) GetUuids() (o []*typedefs.UUID)
- func (v *ListOfConflictingUUIDs) IsSetOtherUUIDs() bool
- func (v *ListOfConflictingUUIDs) IsSetUuids() bool
- func (v *ListOfConflictingUUIDs) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ListOfConflictingUUIDs) String() string
- func (v *ListOfConflictingUUIDs) ToWire() (wire.Value, error)
- type ListOfOptionalPrimitives
- func (v *ListOfOptionalPrimitives) Decode(sr stream.Reader) error
- func (v *ListOfOptionalPrimitives) Encode(sw stream.Writer) error
- func (v *ListOfOptionalPrimitives) Equals(rhs *ListOfOptionalPrimitives) bool
- func (v *ListOfOptionalPrimitives) FromWire(w wire.Value) error
- func (v *ListOfOptionalPrimitives) GetListOfStrings() (o []string)
- func (v *ListOfOptionalPrimitives) IsSetListOfStrings() bool
- func (v *ListOfOptionalPrimitives) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ListOfOptionalPrimitives) String() string
- func (v *ListOfOptionalPrimitives) ToWire() (wire.Value, error)
- type ListOfRequiredPrimitives
- func (v *ListOfRequiredPrimitives) Decode(sr stream.Reader) error
- func (v *ListOfRequiredPrimitives) Encode(sw stream.Writer) error
- func (v *ListOfRequiredPrimitives) Equals(rhs *ListOfRequiredPrimitives) bool
- func (v *ListOfRequiredPrimitives) FromWire(w wire.Value) error
- func (v *ListOfRequiredPrimitives) GetListOfStrings() (o []string)
- func (v *ListOfRequiredPrimitives) IsSetListOfStrings() bool
- func (v *ListOfRequiredPrimitives) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ListOfRequiredPrimitives) String() string
- func (v *ListOfRequiredPrimitives) ToWire() (wire.Value, error)
- type MapOfBinaryAndString
- func (v *MapOfBinaryAndString) Decode(sr stream.Reader) error
- func (v *MapOfBinaryAndString) Encode(sw stream.Writer) error
- func (v *MapOfBinaryAndString) Equals(rhs *MapOfBinaryAndString) bool
- func (v *MapOfBinaryAndString) FromWire(w wire.Value) error
- func (v *MapOfBinaryAndString) GetBinaryToString() (o []struct{ ... })
- func (v *MapOfBinaryAndString) GetStringToBinary() (o map[string][]byte)
- func (v *MapOfBinaryAndString) IsSetBinaryToString() bool
- func (v *MapOfBinaryAndString) IsSetStringToBinary() bool
- func (v *MapOfBinaryAndString) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *MapOfBinaryAndString) String() string
- func (v *MapOfBinaryAndString) ToWire() (wire.Value, error)
- type PrimitiveContainers
- func (v *PrimitiveContainers) Decode(sr stream.Reader) error
- func (v *PrimitiveContainers) Encode(sw stream.Writer) error
- func (v *PrimitiveContainers) Equals(rhs *PrimitiveContainers) bool
- func (v *PrimitiveContainers) FromWire(w wire.Value) error
- func (v *PrimitiveContainers) GetListOfBinary() (o [][]byte)
- func (v *PrimitiveContainers) GetListOfInts() (o []int64)
- func (v *PrimitiveContainers) GetMapOfIntToString() (o map[int32]string)
- func (v *PrimitiveContainers) GetMapOfStringToBool() (o map[string]bool)
- func (v *PrimitiveContainers) GetSetOfBytes() (o map[int8]struct{})
- func (v *PrimitiveContainers) GetSetOfStrings() (o map[string]struct{})
- func (v *PrimitiveContainers) IsSetListOfBinary() bool
- func (v *PrimitiveContainers) IsSetListOfInts() bool
- func (v *PrimitiveContainers) IsSetMapOfIntToString() bool
- func (v *PrimitiveContainers) IsSetMapOfStringToBool() bool
- func (v *PrimitiveContainers) IsSetSetOfBytes() bool
- func (v *PrimitiveContainers) IsSetSetOfStrings() bool
- func (v *PrimitiveContainers) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *PrimitiveContainers) String() string
- func (v *PrimitiveContainers) ToWire() (wire.Value, error)
- type PrimitiveContainersRequired
- func (v *PrimitiveContainersRequired) Decode(sr stream.Reader) error
- func (v *PrimitiveContainersRequired) Encode(sw stream.Writer) error
- func (v *PrimitiveContainersRequired) Equals(rhs *PrimitiveContainersRequired) bool
- func (v *PrimitiveContainersRequired) FromWire(w wire.Value) error
- func (v *PrimitiveContainersRequired) GetListOfStrings() (o []string)
- func (v *PrimitiveContainersRequired) GetMapOfIntsToDoubles() (o map[int64]float64)
- func (v *PrimitiveContainersRequired) GetSetOfInts() (o map[int32]struct{})
- func (v *PrimitiveContainersRequired) IsSetListOfStrings() bool
- func (v *PrimitiveContainersRequired) IsSetMapOfIntsToDoubles() bool
- func (v *PrimitiveContainersRequired) IsSetSetOfInts() bool
- func (v *PrimitiveContainersRequired) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *PrimitiveContainersRequired) String() string
- func (v *PrimitiveContainersRequired) ToWire() (wire.Value, error)
Constants ¶
This section is empty.
Variables ¶
var ThriftModule = &thriftreflect.ThriftModule{ Name: "containers", Package: "go.uber.org/thriftrw/gen/internal/tests/containers", FilePath: "containers.thrift", SHA1: "b4682204a85cf94d3742f09ef77d1a386b6c2ee7", Includes: []*thriftreflect.ThriftModule{ enum_conflict.ThriftModule, enums.ThriftModule, typedefs.ThriftModule, uuid_conflict.ThriftModule, }, Raw: rawIDL, }
ThriftModule represents the IDL file used to generate this package.
Functions ¶
This section is empty.
Types ¶
type ContainersOfContainers ¶
type ContainersOfContainers struct { ListOfLists [][]int32 `json:"listOfLists,omitempty"` ListOfSets []map[int32]struct{} `json:"listOfSets,omitempty"` ListOfMaps []map[int32]int32 `json:"listOfMaps,omitempty"` SetOfSets []map[string]struct{} `json:"setOfSets,omitempty"` SetOfLists [][]string `json:"setOfLists,omitempty"` SetOfMaps []map[string]string `json:"setOfMaps,omitempty"` MapOfMapToInt []struct { Key map[string]int32 Value int64 } `json:"mapOfMapToInt,omitempty"` MapOfListToSet []struct { Key []int32 Value map[int64]struct{} } `json:"mapOfListToSet,omitempty"` MapOfSetToListOfDouble []struct { Key map[int32]struct{} Value []float64 } `json:"mapOfSetToListOfDouble,omitempty"` }
func (*ContainersOfContainers) Decode ¶ added in v1.29.0
func (v *ContainersOfContainers) Decode(sr stream.Reader) error
Decode deserializes a ContainersOfContainers struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ContainersOfContainers struct could not be generated from the wire representation.
func (*ContainersOfContainers) Encode ¶ added in v1.29.0
func (v *ContainersOfContainers) Encode(sw stream.Writer) error
Encode serializes a ContainersOfContainers struct directly into bytes, without going through an intermediary type.
An error is returned if a ContainersOfContainers struct could not be encoded.
func (*ContainersOfContainers) Equals ¶
func (v *ContainersOfContainers) Equals(rhs *ContainersOfContainers) bool
Equals returns true if all the fields of this ContainersOfContainers match the provided ContainersOfContainers.
This function performs a deep comparison.
func (*ContainersOfContainers) FromWire ¶
func (v *ContainersOfContainers) FromWire(w wire.Value) error
FromWire deserializes a ContainersOfContainers struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a ContainersOfContainers struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ContainersOfContainers if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ContainersOfContainers) GetListOfLists ¶
func (v *ContainersOfContainers) GetListOfLists() (o [][]int32)
GetListOfLists returns the value of ListOfLists if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetListOfMaps ¶
func (v *ContainersOfContainers) GetListOfMaps() (o []map[int32]int32)
GetListOfMaps returns the value of ListOfMaps if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetListOfSets ¶
func (v *ContainersOfContainers) GetListOfSets() (o []map[int32]struct{})
GetListOfSets returns the value of ListOfSets if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetMapOfListToSet ¶
func (v *ContainersOfContainers) GetMapOfListToSet() (o []struct { Key []int32 Value map[int64]struct{} })
GetMapOfListToSet returns the value of MapOfListToSet if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetMapOfMapToInt ¶
func (v *ContainersOfContainers) GetMapOfMapToInt() (o []struct { Key map[string]int32 Value int64 })
GetMapOfMapToInt returns the value of MapOfMapToInt if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetMapOfSetToListOfDouble ¶
func (v *ContainersOfContainers) GetMapOfSetToListOfDouble() (o []struct { Key map[int32]struct{} Value []float64 })
GetMapOfSetToListOfDouble returns the value of MapOfSetToListOfDouble if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetSetOfLists ¶
func (v *ContainersOfContainers) GetSetOfLists() (o [][]string)
GetSetOfLists returns the value of SetOfLists if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetSetOfMaps ¶
func (v *ContainersOfContainers) GetSetOfMaps() (o []map[string]string)
GetSetOfMaps returns the value of SetOfMaps if it is set or its zero value if it is unset.
func (*ContainersOfContainers) GetSetOfSets ¶
func (v *ContainersOfContainers) GetSetOfSets() (o []map[string]struct{})
GetSetOfSets returns the value of SetOfSets if it is set or its zero value if it is unset.
func (*ContainersOfContainers) IsSetListOfLists ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetListOfLists() bool
IsSetListOfLists returns true if ListOfLists is not nil.
func (*ContainersOfContainers) IsSetListOfMaps ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetListOfMaps() bool
IsSetListOfMaps returns true if ListOfMaps is not nil.
func (*ContainersOfContainers) IsSetListOfSets ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetListOfSets() bool
IsSetListOfSets returns true if ListOfSets is not nil.
func (*ContainersOfContainers) IsSetMapOfListToSet ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetMapOfListToSet() bool
IsSetMapOfListToSet returns true if MapOfListToSet is not nil.
func (*ContainersOfContainers) IsSetMapOfMapToInt ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetMapOfMapToInt() bool
IsSetMapOfMapToInt returns true if MapOfMapToInt is not nil.
func (*ContainersOfContainers) IsSetMapOfSetToListOfDouble ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetMapOfSetToListOfDouble() bool
IsSetMapOfSetToListOfDouble returns true if MapOfSetToListOfDouble is not nil.
func (*ContainersOfContainers) IsSetSetOfLists ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetSetOfLists() bool
IsSetSetOfLists returns true if SetOfLists is not nil.
func (*ContainersOfContainers) IsSetSetOfMaps ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetSetOfMaps() bool
IsSetSetOfMaps returns true if SetOfMaps is not nil.
func (*ContainersOfContainers) IsSetSetOfSets ¶ added in v1.14.0
func (v *ContainersOfContainers) IsSetSetOfSets() bool
IsSetSetOfSets returns true if SetOfSets is not nil.
func (*ContainersOfContainers) MarshalLogObject ¶
func (v *ContainersOfContainers) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ContainersOfContainers.
func (*ContainersOfContainers) String ¶
func (v *ContainersOfContainers) String() string
String returns a readable string representation of a ContainersOfContainers struct.
func (*ContainersOfContainers) ToWire ¶
func (v *ContainersOfContainers) ToWire() (wire.Value, error)
ToWire translates a ContainersOfContainers struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type EnumContainers ¶
type EnumContainers struct { ListOfEnums []enums.EnumDefault `json:"listOfEnums,omitempty"` SetOfEnums map[enums.EnumWithValues]struct{} `json:"setOfEnums,omitempty"` MapOfEnums map[enums.EnumWithDuplicateValues]int32 `json:"mapOfEnums,omitempty"` }
func (*EnumContainers) Decode ¶ added in v1.29.0
func (v *EnumContainers) Decode(sr stream.Reader) error
Decode deserializes a EnumContainers struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a EnumContainers struct could not be generated from the wire representation.
func (*EnumContainers) Encode ¶ added in v1.29.0
func (v *EnumContainers) Encode(sw stream.Writer) error
Encode serializes a EnumContainers struct directly into bytes, without going through an intermediary type.
An error is returned if a EnumContainers struct could not be encoded.
func (*EnumContainers) Equals ¶
func (v *EnumContainers) Equals(rhs *EnumContainers) bool
Equals returns true if all the fields of this EnumContainers match the provided EnumContainers.
This function performs a deep comparison.
func (*EnumContainers) FromWire ¶
func (v *EnumContainers) FromWire(w wire.Value) error
FromWire deserializes a EnumContainers struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a EnumContainers struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v EnumContainers if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*EnumContainers) GetListOfEnums ¶
func (v *EnumContainers) GetListOfEnums() (o []enums.EnumDefault)
GetListOfEnums returns the value of ListOfEnums if it is set or its zero value if it is unset.
func (*EnumContainers) GetMapOfEnums ¶
func (v *EnumContainers) GetMapOfEnums() (o map[enums.EnumWithDuplicateValues]int32)
GetMapOfEnums returns the value of MapOfEnums if it is set or its zero value if it is unset.
func (*EnumContainers) GetSetOfEnums ¶
func (v *EnumContainers) GetSetOfEnums() (o map[enums.EnumWithValues]struct{})
GetSetOfEnums returns the value of SetOfEnums if it is set or its zero value if it is unset.
func (*EnumContainers) IsSetListOfEnums ¶ added in v1.14.0
func (v *EnumContainers) IsSetListOfEnums() bool
IsSetListOfEnums returns true if ListOfEnums is not nil.
func (*EnumContainers) IsSetMapOfEnums ¶ added in v1.14.0
func (v *EnumContainers) IsSetMapOfEnums() bool
IsSetMapOfEnums returns true if MapOfEnums is not nil.
func (*EnumContainers) IsSetSetOfEnums ¶ added in v1.14.0
func (v *EnumContainers) IsSetSetOfEnums() bool
IsSetSetOfEnums returns true if SetOfEnums is not nil.
func (*EnumContainers) MarshalLogObject ¶
func (v *EnumContainers) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of EnumContainers.
func (*EnumContainers) String ¶
func (v *EnumContainers) String() string
String returns a readable string representation of a EnumContainers struct.
func (*EnumContainers) ToWire ¶
func (v *EnumContainers) ToWire() (wire.Value, error)
ToWire translates a EnumContainers struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type ListOfConflictingEnums ¶
type ListOfConflictingEnums struct { Records []enum_conflict.RecordType `json:"records,required"` OtherRecords []enums.RecordType `json:"otherRecords,required"` }
func (*ListOfConflictingEnums) Decode ¶ added in v1.29.0
func (v *ListOfConflictingEnums) Decode(sr stream.Reader) error
Decode deserializes a ListOfConflictingEnums struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ListOfConflictingEnums struct could not be generated from the wire representation.
func (*ListOfConflictingEnums) Encode ¶ added in v1.29.0
func (v *ListOfConflictingEnums) Encode(sw stream.Writer) error
Encode serializes a ListOfConflictingEnums struct directly into bytes, without going through an intermediary type.
An error is returned if a ListOfConflictingEnums struct could not be encoded.
func (*ListOfConflictingEnums) Equals ¶
func (v *ListOfConflictingEnums) Equals(rhs *ListOfConflictingEnums) bool
Equals returns true if all the fields of this ListOfConflictingEnums match the provided ListOfConflictingEnums.
This function performs a deep comparison.
func (*ListOfConflictingEnums) FromWire ¶
func (v *ListOfConflictingEnums) FromWire(w wire.Value) error
FromWire deserializes a ListOfConflictingEnums struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a ListOfConflictingEnums struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ListOfConflictingEnums if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ListOfConflictingEnums) GetOtherRecords ¶
func (v *ListOfConflictingEnums) GetOtherRecords() (o []enums.RecordType)
GetOtherRecords returns the value of OtherRecords if it is set or its zero value if it is unset.
func (*ListOfConflictingEnums) GetRecords ¶
func (v *ListOfConflictingEnums) GetRecords() (o []enum_conflict.RecordType)
GetRecords returns the value of Records if it is set or its zero value if it is unset.
func (*ListOfConflictingEnums) IsSetOtherRecords ¶ added in v1.14.0
func (v *ListOfConflictingEnums) IsSetOtherRecords() bool
IsSetOtherRecords returns true if OtherRecords is not nil.
func (*ListOfConflictingEnums) IsSetRecords ¶ added in v1.14.0
func (v *ListOfConflictingEnums) IsSetRecords() bool
IsSetRecords returns true if Records is not nil.
func (*ListOfConflictingEnums) MarshalLogObject ¶
func (v *ListOfConflictingEnums) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ListOfConflictingEnums.
func (*ListOfConflictingEnums) String ¶
func (v *ListOfConflictingEnums) String() string
String returns a readable string representation of a ListOfConflictingEnums struct.
func (*ListOfConflictingEnums) ToWire ¶
func (v *ListOfConflictingEnums) ToWire() (wire.Value, error)
ToWire translates a ListOfConflictingEnums struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type ListOfConflictingUUIDs ¶
type ListOfConflictingUUIDs struct { Uuids []*typedefs.UUID `json:"uuids,required"` OtherUUIDs []uuid_conflict.UUID `json:"otherUUIDs,required"` }
func (*ListOfConflictingUUIDs) Decode ¶ added in v1.29.0
func (v *ListOfConflictingUUIDs) Decode(sr stream.Reader) error
Decode deserializes a ListOfConflictingUUIDs struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ListOfConflictingUUIDs struct could not be generated from the wire representation.
func (*ListOfConflictingUUIDs) Encode ¶ added in v1.29.0
func (v *ListOfConflictingUUIDs) Encode(sw stream.Writer) error
Encode serializes a ListOfConflictingUUIDs struct directly into bytes, without going through an intermediary type.
An error is returned if a ListOfConflictingUUIDs struct could not be encoded.
func (*ListOfConflictingUUIDs) Equals ¶
func (v *ListOfConflictingUUIDs) Equals(rhs *ListOfConflictingUUIDs) bool
Equals returns true if all the fields of this ListOfConflictingUUIDs match the provided ListOfConflictingUUIDs.
This function performs a deep comparison.
func (*ListOfConflictingUUIDs) FromWire ¶
func (v *ListOfConflictingUUIDs) FromWire(w wire.Value) error
FromWire deserializes a ListOfConflictingUUIDs struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a ListOfConflictingUUIDs struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ListOfConflictingUUIDs if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ListOfConflictingUUIDs) GetOtherUUIDs ¶
func (v *ListOfConflictingUUIDs) GetOtherUUIDs() (o []uuid_conflict.UUID)
GetOtherUUIDs returns the value of OtherUUIDs if it is set or its zero value if it is unset.
func (*ListOfConflictingUUIDs) GetUuids ¶
func (v *ListOfConflictingUUIDs) GetUuids() (o []*typedefs.UUID)
GetUuids returns the value of Uuids if it is set or its zero value if it is unset.
func (*ListOfConflictingUUIDs) IsSetOtherUUIDs ¶ added in v1.14.0
func (v *ListOfConflictingUUIDs) IsSetOtherUUIDs() bool
IsSetOtherUUIDs returns true if OtherUUIDs is not nil.
func (*ListOfConflictingUUIDs) IsSetUuids ¶ added in v1.14.0
func (v *ListOfConflictingUUIDs) IsSetUuids() bool
IsSetUuids returns true if Uuids is not nil.
func (*ListOfConflictingUUIDs) MarshalLogObject ¶
func (v *ListOfConflictingUUIDs) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ListOfConflictingUUIDs.
func (*ListOfConflictingUUIDs) String ¶
func (v *ListOfConflictingUUIDs) String() string
String returns a readable string representation of a ListOfConflictingUUIDs struct.
func (*ListOfConflictingUUIDs) ToWire ¶
func (v *ListOfConflictingUUIDs) ToWire() (wire.Value, error)
ToWire translates a ListOfConflictingUUIDs struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type ListOfOptionalPrimitives ¶ added in v1.21.0
type ListOfOptionalPrimitives struct {
ListOfStrings []string `json:"listOfStrings,omitempty"`
}
func (*ListOfOptionalPrimitives) Decode ¶ added in v1.29.0
func (v *ListOfOptionalPrimitives) Decode(sr stream.Reader) error
Decode deserializes a ListOfOptionalPrimitives struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ListOfOptionalPrimitives struct could not be generated from the wire representation.
func (*ListOfOptionalPrimitives) Encode ¶ added in v1.29.0
func (v *ListOfOptionalPrimitives) Encode(sw stream.Writer) error
Encode serializes a ListOfOptionalPrimitives struct directly into bytes, without going through an intermediary type.
An error is returned if a ListOfOptionalPrimitives struct could not be encoded.
func (*ListOfOptionalPrimitives) Equals ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) Equals(rhs *ListOfOptionalPrimitives) bool
Equals returns true if all the fields of this ListOfOptionalPrimitives match the provided ListOfOptionalPrimitives.
This function performs a deep comparison.
func (*ListOfOptionalPrimitives) FromWire ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) FromWire(w wire.Value) error
FromWire deserializes a ListOfOptionalPrimitives struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a ListOfOptionalPrimitives struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ListOfOptionalPrimitives if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ListOfOptionalPrimitives) GetListOfStrings ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) GetListOfStrings() (o []string)
GetListOfStrings returns the value of ListOfStrings if it is set or its zero value if it is unset.
func (*ListOfOptionalPrimitives) IsSetListOfStrings ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) IsSetListOfStrings() bool
IsSetListOfStrings returns true if ListOfStrings is not nil.
func (*ListOfOptionalPrimitives) MarshalLogObject ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ListOfOptionalPrimitives.
func (*ListOfOptionalPrimitives) String ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) String() string
String returns a readable string representation of a ListOfOptionalPrimitives struct.
func (*ListOfOptionalPrimitives) ToWire ¶ added in v1.21.0
func (v *ListOfOptionalPrimitives) ToWire() (wire.Value, error)
ToWire translates a ListOfOptionalPrimitives struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type ListOfRequiredPrimitives ¶ added in v1.21.0
type ListOfRequiredPrimitives struct {
ListOfStrings []string `json:"listOfStrings,required"`
}
func (*ListOfRequiredPrimitives) Decode ¶ added in v1.29.0
func (v *ListOfRequiredPrimitives) Decode(sr stream.Reader) error
Decode deserializes a ListOfRequiredPrimitives struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ListOfRequiredPrimitives struct could not be generated from the wire representation.
func (*ListOfRequiredPrimitives) Encode ¶ added in v1.29.0
func (v *ListOfRequiredPrimitives) Encode(sw stream.Writer) error
Encode serializes a ListOfRequiredPrimitives struct directly into bytes, without going through an intermediary type.
An error is returned if a ListOfRequiredPrimitives struct could not be encoded.
func (*ListOfRequiredPrimitives) Equals ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) Equals(rhs *ListOfRequiredPrimitives) bool
Equals returns true if all the fields of this ListOfRequiredPrimitives match the provided ListOfRequiredPrimitives.
This function performs a deep comparison.
func (*ListOfRequiredPrimitives) FromWire ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) FromWire(w wire.Value) error
FromWire deserializes a ListOfRequiredPrimitives struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a ListOfRequiredPrimitives struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ListOfRequiredPrimitives if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ListOfRequiredPrimitives) GetListOfStrings ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) GetListOfStrings() (o []string)
GetListOfStrings returns the value of ListOfStrings if it is set or its zero value if it is unset.
func (*ListOfRequiredPrimitives) IsSetListOfStrings ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) IsSetListOfStrings() bool
IsSetListOfStrings returns true if ListOfStrings is not nil.
func (*ListOfRequiredPrimitives) MarshalLogObject ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ListOfRequiredPrimitives.
func (*ListOfRequiredPrimitives) String ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) String() string
String returns a readable string representation of a ListOfRequiredPrimitives struct.
func (*ListOfRequiredPrimitives) ToWire ¶ added in v1.21.0
func (v *ListOfRequiredPrimitives) ToWire() (wire.Value, error)
ToWire translates a ListOfRequiredPrimitives struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type MapOfBinaryAndString ¶
type MapOfBinaryAndString struct { BinaryToString []struct { Key []byte Value string } `json:"binaryToString,omitempty"` StringToBinary map[string][]byte `json:"stringToBinary,omitempty"` }
func (*MapOfBinaryAndString) Decode ¶ added in v1.29.0
func (v *MapOfBinaryAndString) Decode(sr stream.Reader) error
Decode deserializes a MapOfBinaryAndString struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a MapOfBinaryAndString struct could not be generated from the wire representation.
func (*MapOfBinaryAndString) Encode ¶ added in v1.29.0
func (v *MapOfBinaryAndString) Encode(sw stream.Writer) error
Encode serializes a MapOfBinaryAndString struct directly into bytes, without going through an intermediary type.
An error is returned if a MapOfBinaryAndString struct could not be encoded.
func (*MapOfBinaryAndString) Equals ¶
func (v *MapOfBinaryAndString) Equals(rhs *MapOfBinaryAndString) bool
Equals returns true if all the fields of this MapOfBinaryAndString match the provided MapOfBinaryAndString.
This function performs a deep comparison.
func (*MapOfBinaryAndString) FromWire ¶
func (v *MapOfBinaryAndString) FromWire(w wire.Value) error
FromWire deserializes a MapOfBinaryAndString struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a MapOfBinaryAndString struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v MapOfBinaryAndString if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*MapOfBinaryAndString) GetBinaryToString ¶
func (v *MapOfBinaryAndString) GetBinaryToString() (o []struct { Key []byte Value string })
GetBinaryToString returns the value of BinaryToString if it is set or its zero value if it is unset.
func (*MapOfBinaryAndString) GetStringToBinary ¶
func (v *MapOfBinaryAndString) GetStringToBinary() (o map[string][]byte)
GetStringToBinary returns the value of StringToBinary if it is set or its zero value if it is unset.
func (*MapOfBinaryAndString) IsSetBinaryToString ¶ added in v1.14.0
func (v *MapOfBinaryAndString) IsSetBinaryToString() bool
IsSetBinaryToString returns true if BinaryToString is not nil.
func (*MapOfBinaryAndString) IsSetStringToBinary ¶ added in v1.14.0
func (v *MapOfBinaryAndString) IsSetStringToBinary() bool
IsSetStringToBinary returns true if StringToBinary is not nil.
func (*MapOfBinaryAndString) MarshalLogObject ¶
func (v *MapOfBinaryAndString) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of MapOfBinaryAndString.
func (*MapOfBinaryAndString) String ¶
func (v *MapOfBinaryAndString) String() string
String returns a readable string representation of a MapOfBinaryAndString struct.
func (*MapOfBinaryAndString) ToWire ¶
func (v *MapOfBinaryAndString) ToWire() (wire.Value, error)
ToWire translates a MapOfBinaryAndString struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type PrimitiveContainers ¶
type PrimitiveContainers struct { ListOfBinary [][]byte `json:"listOfBinary,omitempty"` ListOfInts []int64 `json:"listOfInts,omitempty"` SetOfStrings map[string]struct{} `json:"setOfStrings,omitempty"` SetOfBytes map[int8]struct{} `json:"setOfBytes,omitempty"` MapOfIntToString map[int32]string `json:"mapOfIntToString,omitempty"` MapOfStringToBool map[string]bool `json:"mapOfStringToBool,omitempty"` }
func (*PrimitiveContainers) Decode ¶ added in v1.29.0
func (v *PrimitiveContainers) Decode(sr stream.Reader) error
Decode deserializes a PrimitiveContainers struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a PrimitiveContainers struct could not be generated from the wire representation.
func (*PrimitiveContainers) Encode ¶ added in v1.29.0
func (v *PrimitiveContainers) Encode(sw stream.Writer) error
Encode serializes a PrimitiveContainers struct directly into bytes, without going through an intermediary type.
An error is returned if a PrimitiveContainers struct could not be encoded.
func (*PrimitiveContainers) Equals ¶
func (v *PrimitiveContainers) Equals(rhs *PrimitiveContainers) bool
Equals returns true if all the fields of this PrimitiveContainers match the provided PrimitiveContainers.
This function performs a deep comparison.
func (*PrimitiveContainers) FromWire ¶
func (v *PrimitiveContainers) FromWire(w wire.Value) error
FromWire deserializes a PrimitiveContainers struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a PrimitiveContainers struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v PrimitiveContainers if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*PrimitiveContainers) GetListOfBinary ¶
func (v *PrimitiveContainers) GetListOfBinary() (o [][]byte)
GetListOfBinary returns the value of ListOfBinary if it is set or its zero value if it is unset.
func (*PrimitiveContainers) GetListOfInts ¶
func (v *PrimitiveContainers) GetListOfInts() (o []int64)
GetListOfInts returns the value of ListOfInts if it is set or its zero value if it is unset.
func (*PrimitiveContainers) GetMapOfIntToString ¶
func (v *PrimitiveContainers) GetMapOfIntToString() (o map[int32]string)
GetMapOfIntToString returns the value of MapOfIntToString if it is set or its zero value if it is unset.
func (*PrimitiveContainers) GetMapOfStringToBool ¶
func (v *PrimitiveContainers) GetMapOfStringToBool() (o map[string]bool)
GetMapOfStringToBool returns the value of MapOfStringToBool if it is set or its zero value if it is unset.
func (*PrimitiveContainers) GetSetOfBytes ¶
func (v *PrimitiveContainers) GetSetOfBytes() (o map[int8]struct{})
GetSetOfBytes returns the value of SetOfBytes if it is set or its zero value if it is unset.
func (*PrimitiveContainers) GetSetOfStrings ¶
func (v *PrimitiveContainers) GetSetOfStrings() (o map[string]struct{})
GetSetOfStrings returns the value of SetOfStrings if it is set or its zero value if it is unset.
func (*PrimitiveContainers) IsSetListOfBinary ¶ added in v1.14.0
func (v *PrimitiveContainers) IsSetListOfBinary() bool
IsSetListOfBinary returns true if ListOfBinary is not nil.
func (*PrimitiveContainers) IsSetListOfInts ¶ added in v1.14.0
func (v *PrimitiveContainers) IsSetListOfInts() bool
IsSetListOfInts returns true if ListOfInts is not nil.
func (*PrimitiveContainers) IsSetMapOfIntToString ¶ added in v1.14.0
func (v *PrimitiveContainers) IsSetMapOfIntToString() bool
IsSetMapOfIntToString returns true if MapOfIntToString is not nil.
func (*PrimitiveContainers) IsSetMapOfStringToBool ¶ added in v1.14.0
func (v *PrimitiveContainers) IsSetMapOfStringToBool() bool
IsSetMapOfStringToBool returns true if MapOfStringToBool is not nil.
func (*PrimitiveContainers) IsSetSetOfBytes ¶ added in v1.14.0
func (v *PrimitiveContainers) IsSetSetOfBytes() bool
IsSetSetOfBytes returns true if SetOfBytes is not nil.
func (*PrimitiveContainers) IsSetSetOfStrings ¶ added in v1.14.0
func (v *PrimitiveContainers) IsSetSetOfStrings() bool
IsSetSetOfStrings returns true if SetOfStrings is not nil.
func (*PrimitiveContainers) MarshalLogObject ¶
func (v *PrimitiveContainers) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of PrimitiveContainers.
func (*PrimitiveContainers) String ¶
func (v *PrimitiveContainers) String() string
String returns a readable string representation of a PrimitiveContainers struct.
func (*PrimitiveContainers) ToWire ¶
func (v *PrimitiveContainers) ToWire() (wire.Value, error)
ToWire translates a PrimitiveContainers struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }
type PrimitiveContainersRequired ¶
type PrimitiveContainersRequired struct { ListOfStrings []string `json:"listOfStrings,required"` SetOfInts map[int32]struct{} `json:"setOfInts,required"` MapOfIntsToDoubles map[int64]float64 `json:"mapOfIntsToDoubles,required"` }
func (*PrimitiveContainersRequired) Decode ¶ added in v1.29.0
func (v *PrimitiveContainersRequired) Decode(sr stream.Reader) error
Decode deserializes a PrimitiveContainersRequired struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a PrimitiveContainersRequired struct could not be generated from the wire representation.
func (*PrimitiveContainersRequired) Encode ¶ added in v1.29.0
func (v *PrimitiveContainersRequired) Encode(sw stream.Writer) error
Encode serializes a PrimitiveContainersRequired struct directly into bytes, without going through an intermediary type.
An error is returned if a PrimitiveContainersRequired struct could not be encoded.
func (*PrimitiveContainersRequired) Equals ¶
func (v *PrimitiveContainersRequired) Equals(rhs *PrimitiveContainersRequired) bool
Equals returns true if all the fields of this PrimitiveContainersRequired match the provided PrimitiveContainersRequired.
This function performs a deep comparison.
func (*PrimitiveContainersRequired) FromWire ¶
func (v *PrimitiveContainersRequired) FromWire(w wire.Value) error
FromWire deserializes a PrimitiveContainersRequired struct from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
An error is returned if we were unable to build a PrimitiveContainersRequired struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v PrimitiveContainersRequired if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*PrimitiveContainersRequired) GetListOfStrings ¶
func (v *PrimitiveContainersRequired) GetListOfStrings() (o []string)
GetListOfStrings returns the value of ListOfStrings if it is set or its zero value if it is unset.
func (*PrimitiveContainersRequired) GetMapOfIntsToDoubles ¶
func (v *PrimitiveContainersRequired) GetMapOfIntsToDoubles() (o map[int64]float64)
GetMapOfIntsToDoubles returns the value of MapOfIntsToDoubles if it is set or its zero value if it is unset.
func (*PrimitiveContainersRequired) GetSetOfInts ¶
func (v *PrimitiveContainersRequired) GetSetOfInts() (o map[int32]struct{})
GetSetOfInts returns the value of SetOfInts if it is set or its zero value if it is unset.
func (*PrimitiveContainersRequired) IsSetListOfStrings ¶ added in v1.14.0
func (v *PrimitiveContainersRequired) IsSetListOfStrings() bool
IsSetListOfStrings returns true if ListOfStrings is not nil.
func (*PrimitiveContainersRequired) IsSetMapOfIntsToDoubles ¶ added in v1.14.0
func (v *PrimitiveContainersRequired) IsSetMapOfIntsToDoubles() bool
IsSetMapOfIntsToDoubles returns true if MapOfIntsToDoubles is not nil.
func (*PrimitiveContainersRequired) IsSetSetOfInts ¶ added in v1.14.0
func (v *PrimitiveContainersRequired) IsSetSetOfInts() bool
IsSetSetOfInts returns true if SetOfInts is not nil.
func (*PrimitiveContainersRequired) MarshalLogObject ¶
func (v *PrimitiveContainersRequired) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of PrimitiveContainersRequired.
func (*PrimitiveContainersRequired) String ¶
func (v *PrimitiveContainersRequired) String() string
String returns a readable string representation of a PrimitiveContainersRequired struct.
func (*PrimitiveContainersRequired) ToWire ¶
func (v *PrimitiveContainersRequired) ToWire() (wire.Value, error)
ToWire translates a PrimitiveContainersRequired struct into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.
An error is returned if the struct or any of its fields failed to validate.
x, err := v.ToWire() if err != nil { return err } if err := binaryProtocol.Encode(x, writer); err != nil { return err }