googlenow

package
v2.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoogleNow_AddCredentials_Helper = struct {
	// Args accepts the parameters of addCredentials in-order and returns
	// the arguments struct for the function.
	Args func(
		authCode string,
	) *GoogleNow_AddCredentials_Args

	// IsException returns true if the given error can be thrown
	// by addCredentials.
	//
	// An error can be thrown by addCredentials 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 addCredentials
	// given the error returned by it. The provided error may
	// be nil if addCredentials did not fail.
	//
	// This allows mapping errors returned by addCredentials into a
	// serializable result struct. WrapResponse returns a
	// non-nil error if the provided error cannot be thrown by
	// addCredentials
	//
	//   err := addCredentials(args)
	//   result, err := GoogleNow_AddCredentials_Helper.WrapResponse(err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from addCredentials: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(error) (*GoogleNow_AddCredentials_Result, error)

	// UnwrapResponse takes the result struct for addCredentials
	// and returns the erorr returned by it (if any).
	//
	// The error is non-nil only if addCredentials threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   err := GoogleNow_AddCredentials_Helper.UnwrapResponse(result)
	UnwrapResponse func(*GoogleNow_AddCredentials_Result) error
}{}

GoogleNow_AddCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNow.addCredentials function.

View Source
var GoogleNow_CheckCredentials_Helper = struct {
	// Args accepts the parameters of checkCredentials in-order and returns
	// the arguments struct for the function.
	Args func() *GoogleNow_CheckCredentials_Args

	// IsException returns true if the given error can be thrown
	// by checkCredentials.
	//
	// An error can be thrown by checkCredentials 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 checkCredentials
	// given the error returned by it. The provided error may
	// be nil if checkCredentials did not fail.
	//
	// This allows mapping errors returned by checkCredentials into a
	// serializable result struct. WrapResponse returns a
	// non-nil error if the provided error cannot be thrown by
	// checkCredentials
	//
	//   err := checkCredentials(args)
	//   result, err := GoogleNow_CheckCredentials_Helper.WrapResponse(err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from checkCredentials: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(error) (*GoogleNow_CheckCredentials_Result, error)

	// UnwrapResponse takes the result struct for checkCredentials
	// and returns the erorr returned by it (if any).
	//
	// The error is non-nil only if checkCredentials threw an
	// exception.
	//
	//   result := deserialize(bytes)
	//   err := GoogleNow_CheckCredentials_Helper.UnwrapResponse(result)
	UnwrapResponse func(*GoogleNow_CheckCredentials_Result) error
}{}

GoogleNow_CheckCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNow.checkCredentials function.

Functions

This section is empty.

Types

type GoogleNow_AddCredentials_Args

type GoogleNow_AddCredentials_Args struct {
	AuthCode string `json:"authCode,required"`
}

GoogleNow_AddCredentials_Args represents the arguments for the GoogleNow.addCredentials function.

The arguments for addCredentials are sent and received over the wire as this struct.

func (*GoogleNow_AddCredentials_Args) Decode

Decode deserializes a GoogleNow_AddCredentials_Args struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a GoogleNow_AddCredentials_Args struct could not be generated from the wire representation.

func (*GoogleNow_AddCredentials_Args) Encode

Encode serializes a GoogleNow_AddCredentials_Args struct directly into bytes, without going through an intermediary type.

An error is returned if a GoogleNow_AddCredentials_Args struct could not be encoded.

func (*GoogleNow_AddCredentials_Args) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*GoogleNow_AddCredentials_Args) Equals

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

This function performs a deep comparison.

func (*GoogleNow_AddCredentials_Args) FromWire

FromWire deserializes a GoogleNow_AddCredentials_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 GoogleNow_AddCredentials_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v GoogleNow_AddCredentials_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (*GoogleNow_AddCredentials_Args) GetAuthCode

func (v *GoogleNow_AddCredentials_Args) GetAuthCode() (o string)

GetAuthCode returns the value of AuthCode if it is set or its zero value if it is unset.

func (GoogleNow_AddCredentials_Args) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNow_AddCredentials_Args) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNow_AddCredentials_Args) MarshalLogObject

func (v *GoogleNow_AddCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_AddCredentials_Args.

func (*GoogleNow_AddCredentials_Args) MethodName

func (v *GoogleNow_AddCredentials_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 "addCredentials" for this struct.

func (*GoogleNow_AddCredentials_Args) String

String returns a readable string representation of a GoogleNow_AddCredentials_Args struct.

func (*GoogleNow_AddCredentials_Args) ToWire

ToWire translates a GoogleNow_AddCredentials_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 (*GoogleNow_AddCredentials_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNow_AddCredentials_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GoogleNow_AddCredentials_Result

type GoogleNow_AddCredentials_Result struct {
}

GoogleNow_AddCredentials_Result represents the result of a GoogleNow.addCredentials function call.

The result of a addCredentials execution is sent and received over the wire as this struct.

func (*GoogleNow_AddCredentials_Result) Decode

Decode deserializes a GoogleNow_AddCredentials_Result struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a GoogleNow_AddCredentials_Result struct could not be generated from the wire representation.

func (*GoogleNow_AddCredentials_Result) Encode

Encode serializes a GoogleNow_AddCredentials_Result struct directly into bytes, without going through an intermediary type.

An error is returned if a GoogleNow_AddCredentials_Result struct could not be encoded.

func (*GoogleNow_AddCredentials_Result) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*GoogleNow_AddCredentials_Result) Equals

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

This function performs a deep comparison.

func (*GoogleNow_AddCredentials_Result) FromWire

FromWire deserializes a GoogleNow_AddCredentials_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 GoogleNow_AddCredentials_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v GoogleNow_AddCredentials_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (GoogleNow_AddCredentials_Result) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNow_AddCredentials_Result) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNow_AddCredentials_Result) MarshalLogObject

func (v *GoogleNow_AddCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_AddCredentials_Result.

func (*GoogleNow_AddCredentials_Result) MethodName

func (v *GoogleNow_AddCredentials_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 "addCredentials" for this struct.

func (*GoogleNow_AddCredentials_Result) String

String returns a readable string representation of a GoogleNow_AddCredentials_Result struct.

func (*GoogleNow_AddCredentials_Result) ToWire

ToWire translates a GoogleNow_AddCredentials_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 (*GoogleNow_AddCredentials_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNow_AddCredentials_Result) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GoogleNow_CheckCredentials_Args

type GoogleNow_CheckCredentials_Args struct {
}

GoogleNow_CheckCredentials_Args represents the arguments for the GoogleNow.checkCredentials function.

The arguments for checkCredentials are sent and received over the wire as this struct.

func (*GoogleNow_CheckCredentials_Args) Decode

Decode deserializes a GoogleNow_CheckCredentials_Args struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a GoogleNow_CheckCredentials_Args struct could not be generated from the wire representation.

func (*GoogleNow_CheckCredentials_Args) Encode

Encode serializes a GoogleNow_CheckCredentials_Args struct directly into bytes, without going through an intermediary type.

An error is returned if a GoogleNow_CheckCredentials_Args struct could not be encoded.

func (*GoogleNow_CheckCredentials_Args) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*GoogleNow_CheckCredentials_Args) Equals

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

This function performs a deep comparison.

func (*GoogleNow_CheckCredentials_Args) FromWire

FromWire deserializes a GoogleNow_CheckCredentials_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 GoogleNow_CheckCredentials_Args struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v GoogleNow_CheckCredentials_Args
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (GoogleNow_CheckCredentials_Args) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNow_CheckCredentials_Args) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNow_CheckCredentials_Args) MarshalLogObject

func (v *GoogleNow_CheckCredentials_Args) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_CheckCredentials_Args.

func (*GoogleNow_CheckCredentials_Args) MethodName

func (v *GoogleNow_CheckCredentials_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 "checkCredentials" for this struct.

func (*GoogleNow_CheckCredentials_Args) String

String returns a readable string representation of a GoogleNow_CheckCredentials_Args struct.

func (*GoogleNow_CheckCredentials_Args) ToWire

ToWire translates a GoogleNow_CheckCredentials_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 (*GoogleNow_CheckCredentials_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNow_CheckCredentials_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GoogleNow_CheckCredentials_Result

type GoogleNow_CheckCredentials_Result struct {
}

GoogleNow_CheckCredentials_Result represents the result of a GoogleNow.checkCredentials function call.

The result of a checkCredentials execution is sent and received over the wire as this struct.

func (*GoogleNow_CheckCredentials_Result) Decode

Decode deserializes a GoogleNow_CheckCredentials_Result struct directly from its Thrift-level representation, without going through an intemediary type.

An error is returned if a GoogleNow_CheckCredentials_Result struct could not be generated from the wire representation.

func (*GoogleNow_CheckCredentials_Result) Encode

Encode serializes a GoogleNow_CheckCredentials_Result struct directly into bytes, without going through an intermediary type.

An error is returned if a GoogleNow_CheckCredentials_Result struct could not be encoded.

func (*GoogleNow_CheckCredentials_Result) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*GoogleNow_CheckCredentials_Result) Equals

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

This function performs a deep comparison.

func (*GoogleNow_CheckCredentials_Result) FromWire

FromWire deserializes a GoogleNow_CheckCredentials_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 GoogleNow_CheckCredentials_Result struct from the provided intermediate representation.

x, err := binaryProtocol.Decode(reader, wire.TStruct)
if err != nil {
  return nil, err
}

var v GoogleNow_CheckCredentials_Result
if err := v.FromWire(x); err != nil {
  return nil, err
}
return &v, nil

func (GoogleNow_CheckCredentials_Result) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNow_CheckCredentials_Result) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNow_CheckCredentials_Result) MarshalLogObject

func (v *GoogleNow_CheckCredentials_Result) MarshalLogObject(enc zapcore.ObjectEncoder) (err error)

MarshalLogObject implements zapcore.ObjectMarshaler, enabling fast logging of GoogleNow_CheckCredentials_Result.

func (*GoogleNow_CheckCredentials_Result) MethodName

func (v *GoogleNow_CheckCredentials_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 "checkCredentials" for this struct.

func (*GoogleNow_CheckCredentials_Result) String

String returns a readable string representation of a GoogleNow_CheckCredentials_Result struct.

func (*GoogleNow_CheckCredentials_Result) ToWire

ToWire translates a GoogleNow_CheckCredentials_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 (*GoogleNow_CheckCredentials_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNow_CheckCredentials_Result) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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