Documentation ¶
Index ¶
- Variables
- type BadRequest
- func (v *BadRequest) Decode(sr stream.Reader) error
- func (v *BadRequest) Encode(sw stream.Writer) error
- func (v *BadRequest) Equals(rhs *BadRequest) bool
- func (v *BadRequest) Error() string
- func (*BadRequest) ErrorName() string
- func (v *BadRequest) FromWire(w wire.Value) error
- func (v BadRequest) MarshalEasyJSON(w *jwriter.Writer)
- func (v BadRequest) MarshalJSON() ([]byte, error)
- func (v *BadRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *BadRequest) String() string
- func (v *BadRequest) ToWire() (wire.Value, error)
- func (v *BadRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *BadRequest) UnmarshalJSON(data []byte) error
- type Contact
- func (v *Contact) Decode(sr stream.Reader) error
- func (v *Contact) Encode(sw stream.Writer) error
- func (v *Contact) Equals(rhs *Contact) bool
- func (v *Contact) FromWire(w wire.Value) error
- func (v *Contact) GetAttributes() (o *ContactAttributes)
- func (v *Contact) GetFragments() (o []*ContactFragment)
- func (v *Contact) IsSetAttributes() bool
- func (v *Contact) IsSetFragments() bool
- func (v Contact) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contact) MarshalJSON() ([]byte, error)
- func (v *Contact) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Contact) String() string
- func (v *Contact) ToWire() (wire.Value, error)
- func (v *Contact) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Contact) UnmarshalJSON(data []byte) error
- type ContactAttributes
- func (v *ContactAttributes) Decode(sr stream.Reader) error
- func (v *ContactAttributes) Encode(sw stream.Writer) error
- func (v *ContactAttributes) Equals(rhs *ContactAttributes) bool
- func (v *ContactAttributes) FromWire(w wire.Value) error
- func (v *ContactAttributes) GetFirstName() (o string)
- func (v *ContactAttributes) GetHasCustomRingtone() (o bool)
- func (v *ContactAttributes) GetHasPhoto() (o bool)
- func (v *ContactAttributes) GetHasThumbnail() (o bool)
- func (v *ContactAttributes) GetIsSendToVoicemail() (o bool)
- func (v *ContactAttributes) GetIsStarred() (o bool)
- func (v *ContactAttributes) GetLastName() (o string)
- func (v *ContactAttributes) GetLastTimeContacted() (o int32)
- func (v *ContactAttributes) GetNamePrefix() (o string)
- func (v *ContactAttributes) GetNameSuffix() (o string)
- func (v *ContactAttributes) GetNickname() (o string)
- func (v *ContactAttributes) GetNumFields() (o int32)
- func (v *ContactAttributes) GetTimesContacted() (o int32)
- func (v *ContactAttributes) IsSetFirstName() bool
- func (v *ContactAttributes) IsSetHasCustomRingtone() bool
- func (v *ContactAttributes) IsSetHasPhoto() bool
- func (v *ContactAttributes) IsSetHasThumbnail() bool
- func (v *ContactAttributes) IsSetIsSendToVoicemail() bool
- func (v *ContactAttributes) IsSetIsStarred() bool
- func (v *ContactAttributes) IsSetLastName() bool
- func (v *ContactAttributes) IsSetLastTimeContacted() bool
- func (v *ContactAttributes) IsSetNamePrefix() bool
- func (v *ContactAttributes) IsSetNameSuffix() bool
- func (v *ContactAttributes) IsSetNickname() bool
- func (v *ContactAttributes) IsSetNumFields() bool
- func (v *ContactAttributes) IsSetTimesContacted() bool
- func (v ContactAttributes) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContactAttributes) MarshalJSON() ([]byte, error)
- func (v *ContactAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ContactAttributes) String() string
- func (v *ContactAttributes) ToWire() (wire.Value, error)
- func (v *ContactAttributes) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ContactAttributes) UnmarshalJSON(data []byte) error
- type ContactFragment
- func (v *ContactFragment) Decode(sr stream.Reader) error
- func (v *ContactFragment) Encode(sw stream.Writer) error
- func (v *ContactFragment) Equals(rhs *ContactFragment) bool
- func (v *ContactFragment) FromWire(w wire.Value) error
- func (v *ContactFragment) GetText() (o string)
- func (v *ContactFragment) GetType() (o ContactFragmentType)
- func (v *ContactFragment) IsSetText() bool
- func (v *ContactFragment) IsSetType() bool
- func (v ContactFragment) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContactFragment) MarshalJSON() ([]byte, error)
- func (v *ContactFragment) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *ContactFragment) String() string
- func (v *ContactFragment) ToWire() (wire.Value, error)
- func (v *ContactFragment) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ContactFragment) UnmarshalJSON(data []byte) error
- type ContactFragmentType
- func (v *ContactFragmentType) Decode(sr stream.Reader) error
- func (v ContactFragmentType) Encode(sw stream.Writer) error
- func (lhs ContactFragmentType) Equals(rhs ContactFragmentType) bool
- func (v *ContactFragmentType) FromWire(w wire.Value) error
- func (v ContactFragmentType) Ptr() *ContactFragmentType
- func (v ContactFragmentType) String() string
- func (v ContactFragmentType) ToWire() (wire.Value, error)
- type Contacts_SaveContacts_Args
- func (v *Contacts_SaveContacts_Args) Decode(sr stream.Reader) error
- func (v *Contacts_SaveContacts_Args) Encode(sw stream.Writer) error
- func (v *Contacts_SaveContacts_Args) EnvelopeType() wire.EnvelopeType
- func (v *Contacts_SaveContacts_Args) Equals(rhs *Contacts_SaveContacts_Args) bool
- func (v *Contacts_SaveContacts_Args) FromWire(w wire.Value) error
- func (v *Contacts_SaveContacts_Args) GetSaveContactsRequest() (o *SaveContactsRequest)
- func (v *Contacts_SaveContacts_Args) IsSetSaveContactsRequest() bool
- func (v Contacts_SaveContacts_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_SaveContacts_Args) MarshalJSON() ([]byte, error)
- func (v *Contacts_SaveContacts_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Contacts_SaveContacts_Args) MethodName() string
- func (v *Contacts_SaveContacts_Args) String() string
- func (v *Contacts_SaveContacts_Args) ToWire() (wire.Value, error)
- func (v *Contacts_SaveContacts_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Contacts_SaveContacts_Args) UnmarshalJSON(data []byte) error
- type Contacts_SaveContacts_Result
- func (v *Contacts_SaveContacts_Result) Decode(sr stream.Reader) error
- func (v *Contacts_SaveContacts_Result) Encode(sw stream.Writer) error
- func (v *Contacts_SaveContacts_Result) EnvelopeType() wire.EnvelopeType
- func (v *Contacts_SaveContacts_Result) Equals(rhs *Contacts_SaveContacts_Result) bool
- func (v *Contacts_SaveContacts_Result) FromWire(w wire.Value) error
- func (v *Contacts_SaveContacts_Result) GetBadRequest() (o *BadRequest)
- func (v *Contacts_SaveContacts_Result) GetNotFound() (o *NotFound)
- func (v *Contacts_SaveContacts_Result) GetSuccess() (o *SaveContactsResponse)
- func (v *Contacts_SaveContacts_Result) IsSetBadRequest() bool
- func (v *Contacts_SaveContacts_Result) IsSetNotFound() bool
- func (v *Contacts_SaveContacts_Result) IsSetSuccess() bool
- func (v Contacts_SaveContacts_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_SaveContacts_Result) MarshalJSON() ([]byte, error)
- func (v *Contacts_SaveContacts_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Contacts_SaveContacts_Result) MethodName() string
- func (v *Contacts_SaveContacts_Result) String() string
- func (v *Contacts_SaveContacts_Result) ToWire() (wire.Value, error)
- func (v *Contacts_SaveContacts_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Contacts_SaveContacts_Result) UnmarshalJSON(data []byte) error
- type Contacts_TestUrlUrl_Args
- func (v *Contacts_TestUrlUrl_Args) Decode(sr stream.Reader) error
- func (v *Contacts_TestUrlUrl_Args) Encode(sw stream.Writer) error
- func (v *Contacts_TestUrlUrl_Args) EnvelopeType() wire.EnvelopeType
- func (v *Contacts_TestUrlUrl_Args) Equals(rhs *Contacts_TestUrlUrl_Args) bool
- func (v *Contacts_TestUrlUrl_Args) FromWire(w wire.Value) error
- func (v Contacts_TestUrlUrl_Args) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_TestUrlUrl_Args) MarshalJSON() ([]byte, error)
- func (v *Contacts_TestUrlUrl_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Contacts_TestUrlUrl_Args) MethodName() string
- func (v *Contacts_TestUrlUrl_Args) String() string
- func (v *Contacts_TestUrlUrl_Args) ToWire() (wire.Value, error)
- func (v *Contacts_TestUrlUrl_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Contacts_TestUrlUrl_Args) UnmarshalJSON(data []byte) error
- type Contacts_TestUrlUrl_Result
- func (v *Contacts_TestUrlUrl_Result) Decode(sr stream.Reader) error
- func (v *Contacts_TestUrlUrl_Result) Encode(sw stream.Writer) error
- func (v *Contacts_TestUrlUrl_Result) EnvelopeType() wire.EnvelopeType
- func (v *Contacts_TestUrlUrl_Result) Equals(rhs *Contacts_TestUrlUrl_Result) bool
- func (v *Contacts_TestUrlUrl_Result) FromWire(w wire.Value) error
- func (v *Contacts_TestUrlUrl_Result) GetSuccess() (o string)
- func (v *Contacts_TestUrlUrl_Result) IsSetSuccess() bool
- func (v Contacts_TestUrlUrl_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_TestUrlUrl_Result) MarshalJSON() ([]byte, error)
- func (v *Contacts_TestUrlUrl_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *Contacts_TestUrlUrl_Result) MethodName() string
- func (v *Contacts_TestUrlUrl_Result) String() string
- func (v *Contacts_TestUrlUrl_Result) ToWire() (wire.Value, error)
- func (v *Contacts_TestUrlUrl_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Contacts_TestUrlUrl_Result) UnmarshalJSON(data []byte) error
- type NotFound
- func (v *NotFound) Decode(sr stream.Reader) error
- func (v *NotFound) Encode(sw stream.Writer) error
- func (v *NotFound) Equals(rhs *NotFound) bool
- func (v *NotFound) Error() string
- func (*NotFound) ErrorName() string
- func (v *NotFound) FromWire(w wire.Value) error
- func (v NotFound) MarshalEasyJSON(w *jwriter.Writer)
- func (v NotFound) MarshalJSON() ([]byte, error)
- func (v *NotFound) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *NotFound) String() string
- func (v *NotFound) ToWire() (wire.Value, error)
- func (v *NotFound) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *NotFound) UnmarshalJSON(data []byte) error
- type SaveContactsRequest
- func (v *SaveContactsRequest) Decode(sr stream.Reader) error
- func (v *SaveContactsRequest) Encode(sw stream.Writer) error
- func (v *SaveContactsRequest) Equals(rhs *SaveContactsRequest) bool
- func (v *SaveContactsRequest) FromWire(w wire.Value) error
- func (v *SaveContactsRequest) GetContacts() (o []*Contact)
- func (v *SaveContactsRequest) GetUserUUID() (o string)
- func (v *SaveContactsRequest) IsSetContacts() bool
- func (v SaveContactsRequest) MarshalEasyJSON(w *jwriter.Writer)
- func (v SaveContactsRequest) MarshalJSON() ([]byte, error)
- func (v *SaveContactsRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *SaveContactsRequest) String() string
- func (v *SaveContactsRequest) ToWire() (wire.Value, error)
- func (v *SaveContactsRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SaveContactsRequest) UnmarshalJSON(data []byte) error
- type SaveContactsResponse
- func (v *SaveContactsResponse) Decode(sr stream.Reader) error
- func (v *SaveContactsResponse) Encode(sw stream.Writer) error
- func (v *SaveContactsResponse) Equals(rhs *SaveContactsResponse) bool
- func (v *SaveContactsResponse) FromWire(w wire.Value) error
- func (v SaveContactsResponse) MarshalEasyJSON(w *jwriter.Writer)
- func (v SaveContactsResponse) MarshalJSON() ([]byte, error)
- func (v *SaveContactsResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
- func (v *SaveContactsResponse) String() string
- func (v *SaveContactsResponse) ToWire() (wire.Value, error)
- func (v *SaveContactsResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SaveContactsResponse) UnmarshalJSON(data []byte) error
- type UUID
Constants ¶
This section is empty.
Variables ¶
var Contacts_SaveContacts_Helper = struct { // Args accepts the parameters of saveContacts in-order and returns // the arguments struct for the function. Args func( saveContactsRequest *SaveContactsRequest, ) *Contacts_SaveContacts_Args // IsException returns true if the given error can be thrown // by saveContacts. // // An error can be thrown by saveContacts only if the // corresponding exception type was mentioned in the 'throws' // section for it in the Thrift file. IsException func(error) bool // WrapResponse returns the result struct for saveContacts // given its return value and error. // // This allows mapping values and errors returned by // saveContacts into a serializable result struct. // WrapResponse returns a non-nil error if the provided // error cannot be thrown by saveContacts // // value, err := saveContacts(args) // result, err := Contacts_SaveContacts_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from saveContacts: %v", err) // } // serialize(result) WrapResponse func(*SaveContactsResponse, error) (*Contacts_SaveContacts_Result, error) // UnwrapResponse takes the result struct for saveContacts // and returns the value or error returned by it. // // The error is non-nil only if saveContacts threw an // exception. // // result := deserialize(bytes) // value, err := Contacts_SaveContacts_Helper.UnwrapResponse(result) UnwrapResponse func(*Contacts_SaveContacts_Result) (*SaveContactsResponse, error) }{}
Contacts_SaveContacts_Helper provides functions that aid in handling the parameters and return values of the Contacts.saveContacts function.
var Contacts_TestUrlUrl_Helper = struct { // Args accepts the parameters of testUrlUrl in-order and returns // the arguments struct for the function. Args func() *Contacts_TestUrlUrl_Args // IsException returns true if the given error can be thrown // by testUrlUrl. // // An error can be thrown by testUrlUrl only if the // corresponding exception type was mentioned in the 'throws' // section for it in the Thrift file. IsException func(error) bool // WrapResponse returns the result struct for testUrlUrl // given its return value and error. // // This allows mapping values and errors returned by // testUrlUrl into a serializable result struct. // WrapResponse returns a non-nil error if the provided // error cannot be thrown by testUrlUrl // // value, err := testUrlUrl(args) // result, err := Contacts_TestUrlUrl_Helper.WrapResponse(value, err) // if err != nil { // return fmt.Errorf("unexpected error from testUrlUrl: %v", err) // } // serialize(result) WrapResponse func(string, error) (*Contacts_TestUrlUrl_Result, error) // UnwrapResponse takes the result struct for testUrlUrl // and returns the value or error returned by it. // // The error is non-nil only if testUrlUrl threw an // exception. // // result := deserialize(bytes) // value, err := Contacts_TestUrlUrl_Helper.UnwrapResponse(result) UnwrapResponse func(*Contacts_TestUrlUrl_Result) (string, error) }{}
Contacts_TestUrlUrl_Helper provides functions that aid in handling the parameters and return values of the Contacts.testUrlUrl function.
Functions ¶
This section is empty.
Types ¶
type BadRequest ¶
type BadRequest struct { }
func (*BadRequest) Decode ¶
func (v *BadRequest) Decode(sr stream.Reader) error
Decode deserializes a BadRequest struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a BadRequest struct could not be generated from the wire representation.
func (*BadRequest) Encode ¶
func (v *BadRequest) Encode(sw stream.Writer) error
Encode serializes a BadRequest struct directly into bytes, without going through an intermediary type.
An error is returned if a BadRequest struct could not be encoded.
func (*BadRequest) Equals ¶
func (v *BadRequest) Equals(rhs *BadRequest) bool
Equals returns true if all the fields of this BadRequest match the provided BadRequest.
This function performs a deep comparison.
func (*BadRequest) Error ¶
func (v *BadRequest) Error() string
func (*BadRequest) ErrorName ¶
func (*BadRequest) ErrorName() string
ErrorName is the name of this type as defined in the Thrift file.
func (*BadRequest) FromWire ¶
func (v *BadRequest) FromWire(w wire.Value) error
FromWire deserializes a BadRequest 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 BadRequest struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v BadRequest if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (BadRequest) MarshalEasyJSON ¶
func (v BadRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (BadRequest) MarshalJSON ¶
func (v BadRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*BadRequest) MarshalLogObject ¶
func (v *BadRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of BadRequest.
func (*BadRequest) String ¶
func (v *BadRequest) String() string
String returns a readable string representation of a BadRequest struct.
func (*BadRequest) ToWire ¶
func (v *BadRequest) ToWire() (wire.Value, error)
ToWire translates a BadRequest 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 }
func (*BadRequest) UnmarshalEasyJSON ¶
func (v *BadRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*BadRequest) UnmarshalJSON ¶
func (v *BadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Contact ¶
type Contact struct { Fragments []*ContactFragment `json:"fragments,omitempty"` Attributes *ContactAttributes `json:"attributes,omitempty"` }
func (*Contact) Decode ¶
Decode deserializes a Contact struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Contact struct could not be generated from the wire representation.
func (*Contact) Encode ¶
Encode serializes a Contact struct directly into bytes, without going through an intermediary type.
An error is returned if a Contact struct could not be encoded.
func (*Contact) Equals ¶
Equals returns true if all the fields of this Contact match the provided Contact.
This function performs a deep comparison.
func (*Contact) FromWire ¶
FromWire deserializes a Contact 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 Contact struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Contact if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Contact) GetAttributes ¶
func (v *Contact) GetAttributes() (o *ContactAttributes)
GetAttributes returns the value of Attributes if it is set or its zero value if it is unset.
func (*Contact) GetFragments ¶
func (v *Contact) GetFragments() (o []*ContactFragment)
GetFragments returns the value of Fragments if it is set or its zero value if it is unset.
func (*Contact) IsSetAttributes ¶
IsSetAttributes returns true if Attributes is not nil.
func (*Contact) IsSetFragments ¶
IsSetFragments returns true if Fragments is not nil.
func (Contact) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Contact) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Contact) MarshalLogObject ¶
func (v *Contact) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Contact.
func (*Contact) ToWire ¶
ToWire translates a Contact 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 }
func (*Contact) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Contact) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ContactAttributes ¶
type ContactAttributes struct { FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` Nickname *string `json:"nickname,omitempty"` HasPhoto *bool `json:"hasPhoto,omitempty"` NumFields *int32 `json:"numFields,omitempty"` TimesContacted *int32 `json:"timesContacted,omitempty"` LastTimeContacted *int32 `json:"lastTimeContacted,omitempty"` IsStarred *bool `json:"isStarred,omitempty"` HasCustomRingtone *bool `json:"hasCustomRingtone,omitempty"` IsSendToVoicemail *bool `json:"isSendToVoicemail,omitempty"` HasThumbnail *bool `json:"hasThumbnail,omitempty"` NamePrefix *string `json:"namePrefix,omitempty"` NameSuffix *string `json:"nameSuffix,omitempty"` }
func (*ContactAttributes) Decode ¶
func (v *ContactAttributes) Decode(sr stream.Reader) error
Decode deserializes a ContactAttributes struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ContactAttributes struct could not be generated from the wire representation.
func (*ContactAttributes) Encode ¶
func (v *ContactAttributes) Encode(sw stream.Writer) error
Encode serializes a ContactAttributes struct directly into bytes, without going through an intermediary type.
An error is returned if a ContactAttributes struct could not be encoded.
func (*ContactAttributes) Equals ¶
func (v *ContactAttributes) Equals(rhs *ContactAttributes) bool
Equals returns true if all the fields of this ContactAttributes match the provided ContactAttributes.
This function performs a deep comparison.
func (*ContactAttributes) FromWire ¶
func (v *ContactAttributes) FromWire(w wire.Value) error
FromWire deserializes a ContactAttributes 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 ContactAttributes struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ContactAttributes if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ContactAttributes) GetFirstName ¶
func (v *ContactAttributes) GetFirstName() (o string)
GetFirstName returns the value of FirstName if it is set or its zero value if it is unset.
func (*ContactAttributes) GetHasCustomRingtone ¶
func (v *ContactAttributes) GetHasCustomRingtone() (o bool)
GetHasCustomRingtone returns the value of HasCustomRingtone if it is set or its zero value if it is unset.
func (*ContactAttributes) GetHasPhoto ¶
func (v *ContactAttributes) GetHasPhoto() (o bool)
GetHasPhoto returns the value of HasPhoto if it is set or its zero value if it is unset.
func (*ContactAttributes) GetHasThumbnail ¶
func (v *ContactAttributes) GetHasThumbnail() (o bool)
GetHasThumbnail returns the value of HasThumbnail if it is set or its zero value if it is unset.
func (*ContactAttributes) GetIsSendToVoicemail ¶
func (v *ContactAttributes) GetIsSendToVoicemail() (o bool)
GetIsSendToVoicemail returns the value of IsSendToVoicemail if it is set or its zero value if it is unset.
func (*ContactAttributes) GetIsStarred ¶
func (v *ContactAttributes) GetIsStarred() (o bool)
GetIsStarred returns the value of IsStarred if it is set or its zero value if it is unset.
func (*ContactAttributes) GetLastName ¶
func (v *ContactAttributes) GetLastName() (o string)
GetLastName returns the value of LastName if it is set or its zero value if it is unset.
func (*ContactAttributes) GetLastTimeContacted ¶
func (v *ContactAttributes) GetLastTimeContacted() (o int32)
GetLastTimeContacted returns the value of LastTimeContacted if it is set or its zero value if it is unset.
func (*ContactAttributes) GetNamePrefix ¶
func (v *ContactAttributes) GetNamePrefix() (o string)
GetNamePrefix returns the value of NamePrefix if it is set or its zero value if it is unset.
func (*ContactAttributes) GetNameSuffix ¶
func (v *ContactAttributes) GetNameSuffix() (o string)
GetNameSuffix returns the value of NameSuffix if it is set or its zero value if it is unset.
func (*ContactAttributes) GetNickname ¶
func (v *ContactAttributes) GetNickname() (o string)
GetNickname returns the value of Nickname if it is set or its zero value if it is unset.
func (*ContactAttributes) GetNumFields ¶
func (v *ContactAttributes) GetNumFields() (o int32)
GetNumFields returns the value of NumFields if it is set or its zero value if it is unset.
func (*ContactAttributes) GetTimesContacted ¶
func (v *ContactAttributes) GetTimesContacted() (o int32)
GetTimesContacted returns the value of TimesContacted if it is set or its zero value if it is unset.
func (*ContactAttributes) IsSetFirstName ¶
func (v *ContactAttributes) IsSetFirstName() bool
IsSetFirstName returns true if FirstName is not nil.
func (*ContactAttributes) IsSetHasCustomRingtone ¶
func (v *ContactAttributes) IsSetHasCustomRingtone() bool
IsSetHasCustomRingtone returns true if HasCustomRingtone is not nil.
func (*ContactAttributes) IsSetHasPhoto ¶
func (v *ContactAttributes) IsSetHasPhoto() bool
IsSetHasPhoto returns true if HasPhoto is not nil.
func (*ContactAttributes) IsSetHasThumbnail ¶
func (v *ContactAttributes) IsSetHasThumbnail() bool
IsSetHasThumbnail returns true if HasThumbnail is not nil.
func (*ContactAttributes) IsSetIsSendToVoicemail ¶
func (v *ContactAttributes) IsSetIsSendToVoicemail() bool
IsSetIsSendToVoicemail returns true if IsSendToVoicemail is not nil.
func (*ContactAttributes) IsSetIsStarred ¶
func (v *ContactAttributes) IsSetIsStarred() bool
IsSetIsStarred returns true if IsStarred is not nil.
func (*ContactAttributes) IsSetLastName ¶
func (v *ContactAttributes) IsSetLastName() bool
IsSetLastName returns true if LastName is not nil.
func (*ContactAttributes) IsSetLastTimeContacted ¶
func (v *ContactAttributes) IsSetLastTimeContacted() bool
IsSetLastTimeContacted returns true if LastTimeContacted is not nil.
func (*ContactAttributes) IsSetNamePrefix ¶
func (v *ContactAttributes) IsSetNamePrefix() bool
IsSetNamePrefix returns true if NamePrefix is not nil.
func (*ContactAttributes) IsSetNameSuffix ¶
func (v *ContactAttributes) IsSetNameSuffix() bool
IsSetNameSuffix returns true if NameSuffix is not nil.
func (*ContactAttributes) IsSetNickname ¶
func (v *ContactAttributes) IsSetNickname() bool
IsSetNickname returns true if Nickname is not nil.
func (*ContactAttributes) IsSetNumFields ¶
func (v *ContactAttributes) IsSetNumFields() bool
IsSetNumFields returns true if NumFields is not nil.
func (*ContactAttributes) IsSetTimesContacted ¶
func (v *ContactAttributes) IsSetTimesContacted() bool
IsSetTimesContacted returns true if TimesContacted is not nil.
func (ContactAttributes) MarshalEasyJSON ¶
func (v ContactAttributes) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ContactAttributes) MarshalJSON ¶
func (v ContactAttributes) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ContactAttributes) MarshalLogObject ¶
func (v *ContactAttributes) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ContactAttributes.
func (*ContactAttributes) String ¶
func (v *ContactAttributes) String() string
String returns a readable string representation of a ContactAttributes struct.
func (*ContactAttributes) ToWire ¶
func (v *ContactAttributes) ToWire() (wire.Value, error)
ToWire translates a ContactAttributes 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 }
func (*ContactAttributes) UnmarshalEasyJSON ¶
func (v *ContactAttributes) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ContactAttributes) UnmarshalJSON ¶
func (v *ContactAttributes) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ContactFragment ¶
type ContactFragment struct { Type *ContactFragmentType `json:"type,omitempty"` Text *string `json:"text,omitempty"` }
func (*ContactFragment) Decode ¶
func (v *ContactFragment) Decode(sr stream.Reader) error
Decode deserializes a ContactFragment struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a ContactFragment struct could not be generated from the wire representation.
func (*ContactFragment) Encode ¶
func (v *ContactFragment) Encode(sw stream.Writer) error
Encode serializes a ContactFragment struct directly into bytes, without going through an intermediary type.
An error is returned if a ContactFragment struct could not be encoded.
func (*ContactFragment) Equals ¶
func (v *ContactFragment) Equals(rhs *ContactFragment) bool
Equals returns true if all the fields of this ContactFragment match the provided ContactFragment.
This function performs a deep comparison.
func (*ContactFragment) FromWire ¶
func (v *ContactFragment) FromWire(w wire.Value) error
FromWire deserializes a ContactFragment 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 ContactFragment struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v ContactFragment if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*ContactFragment) GetText ¶
func (v *ContactFragment) GetText() (o string)
GetText returns the value of Text if it is set or its zero value if it is unset.
func (*ContactFragment) GetType ¶
func (v *ContactFragment) GetType() (o ContactFragmentType)
GetType returns the value of Type if it is set or its zero value if it is unset.
func (*ContactFragment) IsSetText ¶
func (v *ContactFragment) IsSetText() bool
IsSetText returns true if Text is not nil.
func (*ContactFragment) IsSetType ¶
func (v *ContactFragment) IsSetType() bool
IsSetType returns true if Type is not nil.
func (ContactFragment) MarshalEasyJSON ¶
func (v ContactFragment) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ContactFragment) MarshalJSON ¶
func (v ContactFragment) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ContactFragment) MarshalLogObject ¶
func (v *ContactFragment) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of ContactFragment.
func (*ContactFragment) String ¶
func (v *ContactFragment) String() string
String returns a readable string representation of a ContactFragment struct.
func (*ContactFragment) ToWire ¶
func (v *ContactFragment) ToWire() (wire.Value, error)
ToWire translates a ContactFragment 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 }
func (*ContactFragment) UnmarshalEasyJSON ¶
func (v *ContactFragment) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ContactFragment) UnmarshalJSON ¶
func (v *ContactFragment) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ContactFragmentType ¶
type ContactFragmentType string
func (*ContactFragmentType) Decode ¶
func (v *ContactFragmentType) Decode(sr stream.Reader) error
Decode deserializes ContactFragmentType directly off the wire.
func (ContactFragmentType) Equals ¶
func (lhs ContactFragmentType) Equals(rhs ContactFragmentType) bool
Equals returns true if this ContactFragmentType is equal to the provided ContactFragmentType.
func (*ContactFragmentType) FromWire ¶
func (v *ContactFragmentType) FromWire(w wire.Value) error
FromWire deserializes ContactFragmentType from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.
func (ContactFragmentType) Ptr ¶
func (v ContactFragmentType) Ptr() *ContactFragmentType
ContactFragmentTypePtr returns a pointer to a ContactFragmentType
func (ContactFragmentType) String ¶
func (v ContactFragmentType) String() string
String returns a readable string representation of ContactFragmentType.
type Contacts_SaveContacts_Args ¶
type Contacts_SaveContacts_Args struct {
SaveContactsRequest *SaveContactsRequest `json:"saveContactsRequest,required"`
}
Contacts_SaveContacts_Args represents the arguments for the Contacts.saveContacts function.
The arguments for saveContacts are sent and received over the wire as this struct.
func (*Contacts_SaveContacts_Args) Decode ¶
func (v *Contacts_SaveContacts_Args) Decode(sr stream.Reader) error
Decode deserializes a Contacts_SaveContacts_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Contacts_SaveContacts_Args struct could not be generated from the wire representation.
func (*Contacts_SaveContacts_Args) Encode ¶
func (v *Contacts_SaveContacts_Args) Encode(sw stream.Writer) error
Encode serializes a Contacts_SaveContacts_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Contacts_SaveContacts_Args struct could not be encoded.
func (*Contacts_SaveContacts_Args) EnvelopeType ¶
func (v *Contacts_SaveContacts_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Contacts_SaveContacts_Args) Equals ¶
func (v *Contacts_SaveContacts_Args) Equals(rhs *Contacts_SaveContacts_Args) bool
Equals returns true if all the fields of this Contacts_SaveContacts_Args match the provided Contacts_SaveContacts_Args.
This function performs a deep comparison.
func (*Contacts_SaveContacts_Args) FromWire ¶
func (v *Contacts_SaveContacts_Args) FromWire(w wire.Value) error
FromWire deserializes a Contacts_SaveContacts_Args 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 Contacts_SaveContacts_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Contacts_SaveContacts_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Contacts_SaveContacts_Args) GetSaveContactsRequest ¶
func (v *Contacts_SaveContacts_Args) GetSaveContactsRequest() (o *SaveContactsRequest)
GetSaveContactsRequest returns the value of SaveContactsRequest if it is set or its zero value if it is unset.
func (*Contacts_SaveContacts_Args) IsSetSaveContactsRequest ¶
func (v *Contacts_SaveContacts_Args) IsSetSaveContactsRequest() bool
IsSetSaveContactsRequest returns true if SaveContactsRequest is not nil.
func (Contacts_SaveContacts_Args) MarshalEasyJSON ¶
func (v Contacts_SaveContacts_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Contacts_SaveContacts_Args) MarshalJSON ¶
func (v Contacts_SaveContacts_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Contacts_SaveContacts_Args) MarshalLogObject ¶
func (v *Contacts_SaveContacts_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Contacts_SaveContacts_Args.
func (*Contacts_SaveContacts_Args) MethodName ¶
func (v *Contacts_SaveContacts_Args) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.
This will always be "saveContacts" for this struct.
func (*Contacts_SaveContacts_Args) String ¶
func (v *Contacts_SaveContacts_Args) String() string
String returns a readable string representation of a Contacts_SaveContacts_Args struct.
func (*Contacts_SaveContacts_Args) ToWire ¶
func (v *Contacts_SaveContacts_Args) ToWire() (wire.Value, error)
ToWire translates a Contacts_SaveContacts_Args 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 }
func (*Contacts_SaveContacts_Args) UnmarshalEasyJSON ¶
func (v *Contacts_SaveContacts_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Contacts_SaveContacts_Args) UnmarshalJSON ¶
func (v *Contacts_SaveContacts_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Contacts_SaveContacts_Result ¶
type Contacts_SaveContacts_Result struct { // Value returned by saveContacts after a successful execution. Success *SaveContactsResponse `json:"success,omitempty"` BadRequest *BadRequest `json:"badRequest,omitempty"` NotFound *NotFound `json:"notFound,omitempty"` }
Contacts_SaveContacts_Result represents the result of a Contacts.saveContacts function call.
The result of a saveContacts execution is sent and received over the wire as this struct.
Success is set only if the function did not throw an exception.
func (*Contacts_SaveContacts_Result) Decode ¶
func (v *Contacts_SaveContacts_Result) Decode(sr stream.Reader) error
Decode deserializes a Contacts_SaveContacts_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Contacts_SaveContacts_Result struct could not be generated from the wire representation.
func (*Contacts_SaveContacts_Result) Encode ¶
func (v *Contacts_SaveContacts_Result) Encode(sw stream.Writer) error
Encode serializes a Contacts_SaveContacts_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Contacts_SaveContacts_Result struct could not be encoded.
func (*Contacts_SaveContacts_Result) EnvelopeType ¶
func (v *Contacts_SaveContacts_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Contacts_SaveContacts_Result) Equals ¶
func (v *Contacts_SaveContacts_Result) Equals(rhs *Contacts_SaveContacts_Result) bool
Equals returns true if all the fields of this Contacts_SaveContacts_Result match the provided Contacts_SaveContacts_Result.
This function performs a deep comparison.
func (*Contacts_SaveContacts_Result) FromWire ¶
func (v *Contacts_SaveContacts_Result) FromWire(w wire.Value) error
FromWire deserializes a Contacts_SaveContacts_Result 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 Contacts_SaveContacts_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Contacts_SaveContacts_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Contacts_SaveContacts_Result) GetBadRequest ¶
func (v *Contacts_SaveContacts_Result) GetBadRequest() (o *BadRequest)
GetBadRequest returns the value of BadRequest if it is set or its zero value if it is unset.
func (*Contacts_SaveContacts_Result) GetNotFound ¶
func (v *Contacts_SaveContacts_Result) GetNotFound() (o *NotFound)
GetNotFound returns the value of NotFound if it is set or its zero value if it is unset.
func (*Contacts_SaveContacts_Result) GetSuccess ¶
func (v *Contacts_SaveContacts_Result) GetSuccess() (o *SaveContactsResponse)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*Contacts_SaveContacts_Result) IsSetBadRequest ¶
func (v *Contacts_SaveContacts_Result) IsSetBadRequest() bool
IsSetBadRequest returns true if BadRequest is not nil.
func (*Contacts_SaveContacts_Result) IsSetNotFound ¶
func (v *Contacts_SaveContacts_Result) IsSetNotFound() bool
IsSetNotFound returns true if NotFound is not nil.
func (*Contacts_SaveContacts_Result) IsSetSuccess ¶
func (v *Contacts_SaveContacts_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (Contacts_SaveContacts_Result) MarshalEasyJSON ¶
func (v Contacts_SaveContacts_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Contacts_SaveContacts_Result) MarshalJSON ¶
func (v Contacts_SaveContacts_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Contacts_SaveContacts_Result) MarshalLogObject ¶
func (v *Contacts_SaveContacts_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Contacts_SaveContacts_Result.
func (*Contacts_SaveContacts_Result) MethodName ¶
func (v *Contacts_SaveContacts_Result) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.
This will always be "saveContacts" for this struct.
func (*Contacts_SaveContacts_Result) String ¶
func (v *Contacts_SaveContacts_Result) String() string
String returns a readable string representation of a Contacts_SaveContacts_Result struct.
func (*Contacts_SaveContacts_Result) ToWire ¶
func (v *Contacts_SaveContacts_Result) ToWire() (wire.Value, error)
ToWire translates a Contacts_SaveContacts_Result 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 }
func (*Contacts_SaveContacts_Result) UnmarshalEasyJSON ¶
func (v *Contacts_SaveContacts_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Contacts_SaveContacts_Result) UnmarshalJSON ¶
func (v *Contacts_SaveContacts_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Contacts_TestUrlUrl_Args ¶
type Contacts_TestUrlUrl_Args struct { }
Contacts_TestUrlUrl_Args represents the arguments for the Contacts.testUrlUrl function.
The arguments for testUrlUrl are sent and received over the wire as this struct.
func (*Contacts_TestUrlUrl_Args) Decode ¶
func (v *Contacts_TestUrlUrl_Args) Decode(sr stream.Reader) error
Decode deserializes a Contacts_TestUrlUrl_Args struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Contacts_TestUrlUrl_Args struct could not be generated from the wire representation.
func (*Contacts_TestUrlUrl_Args) Encode ¶
func (v *Contacts_TestUrlUrl_Args) Encode(sw stream.Writer) error
Encode serializes a Contacts_TestUrlUrl_Args struct directly into bytes, without going through an intermediary type.
An error is returned if a Contacts_TestUrlUrl_Args struct could not be encoded.
func (*Contacts_TestUrlUrl_Args) EnvelopeType ¶
func (v *Contacts_TestUrlUrl_Args) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Call for this struct.
func (*Contacts_TestUrlUrl_Args) Equals ¶
func (v *Contacts_TestUrlUrl_Args) Equals(rhs *Contacts_TestUrlUrl_Args) bool
Equals returns true if all the fields of this Contacts_TestUrlUrl_Args match the provided Contacts_TestUrlUrl_Args.
This function performs a deep comparison.
func (*Contacts_TestUrlUrl_Args) FromWire ¶
func (v *Contacts_TestUrlUrl_Args) FromWire(w wire.Value) error
FromWire deserializes a Contacts_TestUrlUrl_Args 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 Contacts_TestUrlUrl_Args struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Contacts_TestUrlUrl_Args if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (Contacts_TestUrlUrl_Args) MarshalEasyJSON ¶
func (v Contacts_TestUrlUrl_Args) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Contacts_TestUrlUrl_Args) MarshalJSON ¶
func (v Contacts_TestUrlUrl_Args) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Contacts_TestUrlUrl_Args) MarshalLogObject ¶
func (v *Contacts_TestUrlUrl_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Contacts_TestUrlUrl_Args.
func (*Contacts_TestUrlUrl_Args) MethodName ¶
func (v *Contacts_TestUrlUrl_Args) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the arguments.
This will always be "testUrlUrl" for this struct.
func (*Contacts_TestUrlUrl_Args) String ¶
func (v *Contacts_TestUrlUrl_Args) String() string
String returns a readable string representation of a Contacts_TestUrlUrl_Args struct.
func (*Contacts_TestUrlUrl_Args) ToWire ¶
func (v *Contacts_TestUrlUrl_Args) ToWire() (wire.Value, error)
ToWire translates a Contacts_TestUrlUrl_Args 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 }
func (*Contacts_TestUrlUrl_Args) UnmarshalEasyJSON ¶
func (v *Contacts_TestUrlUrl_Args) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Contacts_TestUrlUrl_Args) UnmarshalJSON ¶
func (v *Contacts_TestUrlUrl_Args) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Contacts_TestUrlUrl_Result ¶
type Contacts_TestUrlUrl_Result struct { // Value returned by testUrlUrl after a successful execution. Success *string `json:"success,omitempty"` }
Contacts_TestUrlUrl_Result represents the result of a Contacts.testUrlUrl function call.
The result of a testUrlUrl execution is sent and received over the wire as this struct.
Success is set only if the function did not throw an exception.
func (*Contacts_TestUrlUrl_Result) Decode ¶
func (v *Contacts_TestUrlUrl_Result) Decode(sr stream.Reader) error
Decode deserializes a Contacts_TestUrlUrl_Result struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a Contacts_TestUrlUrl_Result struct could not be generated from the wire representation.
func (*Contacts_TestUrlUrl_Result) Encode ¶
func (v *Contacts_TestUrlUrl_Result) Encode(sw stream.Writer) error
Encode serializes a Contacts_TestUrlUrl_Result struct directly into bytes, without going through an intermediary type.
An error is returned if a Contacts_TestUrlUrl_Result struct could not be encoded.
func (*Contacts_TestUrlUrl_Result) EnvelopeType ¶
func (v *Contacts_TestUrlUrl_Result) EnvelopeType() wire.EnvelopeType
EnvelopeType returns the kind of value inside this struct.
This will always be Reply for this struct.
func (*Contacts_TestUrlUrl_Result) Equals ¶
func (v *Contacts_TestUrlUrl_Result) Equals(rhs *Contacts_TestUrlUrl_Result) bool
Equals returns true if all the fields of this Contacts_TestUrlUrl_Result match the provided Contacts_TestUrlUrl_Result.
This function performs a deep comparison.
func (*Contacts_TestUrlUrl_Result) FromWire ¶
func (v *Contacts_TestUrlUrl_Result) FromWire(w wire.Value) error
FromWire deserializes a Contacts_TestUrlUrl_Result 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 Contacts_TestUrlUrl_Result struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v Contacts_TestUrlUrl_Result if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*Contacts_TestUrlUrl_Result) GetSuccess ¶
func (v *Contacts_TestUrlUrl_Result) GetSuccess() (o string)
GetSuccess returns the value of Success if it is set or its zero value if it is unset.
func (*Contacts_TestUrlUrl_Result) IsSetSuccess ¶
func (v *Contacts_TestUrlUrl_Result) IsSetSuccess() bool
IsSetSuccess returns true if Success is not nil.
func (Contacts_TestUrlUrl_Result) MarshalEasyJSON ¶
func (v Contacts_TestUrlUrl_Result) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Contacts_TestUrlUrl_Result) MarshalJSON ¶
func (v Contacts_TestUrlUrl_Result) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Contacts_TestUrlUrl_Result) MarshalLogObject ¶
func (v *Contacts_TestUrlUrl_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of Contacts_TestUrlUrl_Result.
func (*Contacts_TestUrlUrl_Result) MethodName ¶
func (v *Contacts_TestUrlUrl_Result) MethodName() string
MethodName returns the name of the Thrift function as specified in the IDL, for which this struct represent the result.
This will always be "testUrlUrl" for this struct.
func (*Contacts_TestUrlUrl_Result) String ¶
func (v *Contacts_TestUrlUrl_Result) String() string
String returns a readable string representation of a Contacts_TestUrlUrl_Result struct.
func (*Contacts_TestUrlUrl_Result) ToWire ¶
func (v *Contacts_TestUrlUrl_Result) ToWire() (wire.Value, error)
ToWire translates a Contacts_TestUrlUrl_Result 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 }
func (*Contacts_TestUrlUrl_Result) UnmarshalEasyJSON ¶
func (v *Contacts_TestUrlUrl_Result) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Contacts_TestUrlUrl_Result) UnmarshalJSON ¶
func (v *Contacts_TestUrlUrl_Result) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NotFound ¶
type NotFound struct { }
func (*NotFound) Decode ¶
Decode deserializes a NotFound struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a NotFound struct could not be generated from the wire representation.
func (*NotFound) Encode ¶
Encode serializes a NotFound struct directly into bytes, without going through an intermediary type.
An error is returned if a NotFound struct could not be encoded.
func (*NotFound) Equals ¶
Equals returns true if all the fields of this NotFound match the provided NotFound.
This function performs a deep comparison.
func (*NotFound) FromWire ¶
FromWire deserializes a NotFound 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 NotFound struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v NotFound if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (NotFound) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (NotFound) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*NotFound) MarshalLogObject ¶
func (v *NotFound) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of NotFound.
func (*NotFound) ToWire ¶
ToWire translates a NotFound 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 }
func (*NotFound) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NotFound) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type SaveContactsRequest ¶
type SaveContactsRequest struct { UserUUID string `json:"userUUID,required"` Contacts []*Contact `json:"contacts,required"` }
func (*SaveContactsRequest) Decode ¶
func (v *SaveContactsRequest) Decode(sr stream.Reader) error
Decode deserializes a SaveContactsRequest struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a SaveContactsRequest struct could not be generated from the wire representation.
func (*SaveContactsRequest) Encode ¶
func (v *SaveContactsRequest) Encode(sw stream.Writer) error
Encode serializes a SaveContactsRequest struct directly into bytes, without going through an intermediary type.
An error is returned if a SaveContactsRequest struct could not be encoded.
func (*SaveContactsRequest) Equals ¶
func (v *SaveContactsRequest) Equals(rhs *SaveContactsRequest) bool
Equals returns true if all the fields of this SaveContactsRequest match the provided SaveContactsRequest.
This function performs a deep comparison.
func (*SaveContactsRequest) FromWire ¶
func (v *SaveContactsRequest) FromWire(w wire.Value) error
FromWire deserializes a SaveContactsRequest 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 SaveContactsRequest struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v SaveContactsRequest if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (*SaveContactsRequest) GetContacts ¶
func (v *SaveContactsRequest) GetContacts() (o []*Contact)
GetContacts returns the value of Contacts if it is set or its zero value if it is unset.
func (*SaveContactsRequest) GetUserUUID ¶
func (v *SaveContactsRequest) GetUserUUID() (o string)
GetUserUUID returns the value of UserUUID if it is set or its zero value if it is unset.
func (*SaveContactsRequest) IsSetContacts ¶
func (v *SaveContactsRequest) IsSetContacts() bool
IsSetContacts returns true if Contacts is not nil.
func (SaveContactsRequest) MarshalEasyJSON ¶
func (v SaveContactsRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SaveContactsRequest) MarshalJSON ¶
func (v SaveContactsRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SaveContactsRequest) MarshalLogObject ¶
func (v *SaveContactsRequest) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of SaveContactsRequest.
func (*SaveContactsRequest) String ¶
func (v *SaveContactsRequest) String() string
String returns a readable string representation of a SaveContactsRequest struct.
func (*SaveContactsRequest) ToWire ¶
func (v *SaveContactsRequest) ToWire() (wire.Value, error)
ToWire translates a SaveContactsRequest 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 }
func (*SaveContactsRequest) UnmarshalEasyJSON ¶
func (v *SaveContactsRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SaveContactsRequest) UnmarshalJSON ¶
func (v *SaveContactsRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SaveContactsResponse ¶
type SaveContactsResponse struct { }
func (*SaveContactsResponse) Decode ¶
func (v *SaveContactsResponse) Decode(sr stream.Reader) error
Decode deserializes a SaveContactsResponse struct directly from its Thrift-level representation, without going through an intemediary type.
An error is returned if a SaveContactsResponse struct could not be generated from the wire representation.
func (*SaveContactsResponse) Encode ¶
func (v *SaveContactsResponse) Encode(sw stream.Writer) error
Encode serializes a SaveContactsResponse struct directly into bytes, without going through an intermediary type.
An error is returned if a SaveContactsResponse struct could not be encoded.
func (*SaveContactsResponse) Equals ¶
func (v *SaveContactsResponse) Equals(rhs *SaveContactsResponse) bool
Equals returns true if all the fields of this SaveContactsResponse match the provided SaveContactsResponse.
This function performs a deep comparison.
func (*SaveContactsResponse) FromWire ¶
func (v *SaveContactsResponse) FromWire(w wire.Value) error
FromWire deserializes a SaveContactsResponse 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 SaveContactsResponse struct from the provided intermediate representation.
x, err := binaryProtocol.Decode(reader, wire.TStruct) if err != nil { return nil, err } var v SaveContactsResponse if err := v.FromWire(x); err != nil { return nil, err } return &v, nil
func (SaveContactsResponse) MarshalEasyJSON ¶
func (v SaveContactsResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SaveContactsResponse) MarshalJSON ¶
func (v SaveContactsResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SaveContactsResponse) MarshalLogObject ¶
func (v *SaveContactsResponse) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)
MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of SaveContactsResponse.
func (*SaveContactsResponse) String ¶
func (v *SaveContactsResponse) String() string
String returns a readable string representation of a SaveContactsResponse struct.
func (*SaveContactsResponse) ToWire ¶
func (v *SaveContactsResponse) ToWire() (wire.Value, error)
ToWire translates a SaveContactsResponse 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 }
func (*SaveContactsResponse) UnmarshalEasyJSON ¶
func (v *SaveContactsResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SaveContactsResponse) UnmarshalJSON ¶
func (v *SaveContactsResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type UUID ¶
type UUID string
func (*UUID) FromWire ¶
FromWire deserializes UUID from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.