Documentation ¶
Index ¶
- Variables
- type Contact
- 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) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contact) MarshalJSON() ([]byte, 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) 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) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContactAttributes) MarshalJSON() ([]byte, 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) 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) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContactFragment) MarshalJSON() ([]byte, 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
- type Contacts_SaveContacts_Args
- 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) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_SaveContacts_Args) MarshalJSON() ([]byte, 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) 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) GetSuccess() (o *SaveContactsResponse)
- func (v Contacts_SaveContacts_Result) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_SaveContacts_Result) MarshalJSON() ([]byte, 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) 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) 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) 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) MarshalEasyJSON(w *jwriter.Writer)
- func (v Contacts_TestUrlUrl_Result) MarshalJSON() ([]byte, 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 SaveContactsRequest
- 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) MarshalEasyJSON(w *jwriter.Writer)
- func (v SaveContactsRequest) MarshalJSON() ([]byte, 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) 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) 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 Contact ¶
type Contact struct { Fragments []*ContactFragment `json:"fragments,omitempty"` Attributes *ContactAttributes `json:"attributes,omitempty"` }
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 ¶ added in v0.1.1
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 ¶ added in v0.1.1
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) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Contact) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
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) 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) 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) 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) 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) 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) 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) 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) 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) 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 ¶ added in v0.1.1
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) 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) 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"` }
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) 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) GetSuccess ¶ added in v0.1.1
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) 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) 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) 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) 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) 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) 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) 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 SaveContactsRequest ¶
type SaveContactsRequest struct { UserUUID string `json:"userUUID,required"` Contacts []*Contact `json:"contacts,required"` }
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 ¶ added in v0.1.1
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 ¶ added in v0.1.1
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) 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) 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) 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) 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.