contacts

package
v2.0.15-SNAPSHOT Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

func (v *Contact) Decode(sr stream.Reader) error

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

func (v *Contact) Encode(sw stream.Writer) error

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

func (v *Contact) Equals(rhs *Contact) bool

Equals returns true if all the fields of this Contact match the provided Contact.

This function performs a deep comparison.

func (*Contact) FromWire

func (v *Contact) FromWire(w wire.Value) error

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

func (v *Contact) IsSetAttributes() bool

IsSetAttributes returns true if Attributes is not nil.

func (*Contact) IsSetFragments

func (v *Contact) IsSetFragments() bool

IsSetFragments returns true if Fragments is not nil.

func (Contact) MarshalEasyJSON

func (v Contact) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Contact) MarshalJSON

func (v Contact) MarshalJSON() ([]byte, error)

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) String

func (v *Contact) String() string

String returns a readable string representation of a Contact struct.

func (*Contact) ToWire

func (v *Contact) ToWire() (wire.Value, error)

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

func (v *Contact) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Contact) UnmarshalJSON

func (v *Contact) UnmarshalJSON(data []byte) error

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) Encode

func (v ContactFragmentType) Encode(sw stream.Writer) error

func (ContactFragmentType) Equals

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

ContactFragmentTypePtr returns a pointer to a ContactFragmentType

func (ContactFragmentType) String

func (v ContactFragmentType) String() string

String returns a readable string representation of ContactFragmentType.

func (ContactFragmentType) ToWire

func (v ContactFragmentType) ToWire() (wire.Value, error)

ToWire translates ContactFragmentType into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

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

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

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

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

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

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

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*Contacts_SaveContacts_Result) Equals

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

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

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

String returns a readable string representation of a Contacts_SaveContacts_Result struct.

func (*Contacts_SaveContacts_Result) ToWire

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

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

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

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

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

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

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

func (v *NotFound) Decode(sr stream.Reader) error

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

func (v *NotFound) Encode(sw stream.Writer) error

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

func (v *NotFound) Equals(rhs *NotFound) bool

Equals returns true if all the fields of this NotFound match the provided NotFound.

This function performs a deep comparison.

func (*NotFound) Error

func (v *NotFound) Error() string

func (*NotFound) ErrorName

func (*NotFound) ErrorName() string

ErrorName is the name of this type as defined in the Thrift file.

func (*NotFound) FromWire

func (v *NotFound) FromWire(w wire.Value) error

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

func (v NotFound) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (NotFound) MarshalJSON

func (v NotFound) MarshalJSON() ([]byte, error)

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) String

func (v *NotFound) String() string

String returns a readable string representation of a NotFound struct.

func (*NotFound) ToWire

func (v *NotFound) ToWire() (wire.Value, error)

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

func (v *NotFound) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*NotFound) UnmarshalJSON

func (v *NotFound) 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) 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

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

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) Decode

func (v *UUID) Decode(sr stream.Reader) error

Decode deserializes UUID directly off the wire.

func (UUID) Encode

func (v UUID) Encode(sw stream.Writer) error

func (UUID) Equals

func (lhs UUID) Equals(rhs UUID) bool

Equals returns true if this UUID is equal to the provided UUID.

func (*UUID) FromWire

func (v *UUID) FromWire(w wire.Value) error

FromWire deserializes UUID from its Thrift-level representation. The Thrift-level representation may be obtained from a ThriftRW protocol implementation.

func (UUID) Ptr

func (v UUID) Ptr() *UUID

UUIDPtr returns a pointer to a UUID

func (UUID) String

func (v UUID) String() string

String returns a readable string representation of UUID.

func (UUID) ToWire

func (v UUID) ToWire() (wire.Value, error)

ToWire translates UUID into a Thrift-level intermediate representation. This intermediate representation may be serialized into bytes using a ThriftRW protocol implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL