googlenow

package
v0.0.0-...-78da9c4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoogleNowService_AddCredentials_Helper = struct {
	// Args accepts the parameters of addCredentials in-order and returns
	// the arguments struct for the function.
	Args func(
		authCode string,
	) *GoogleNowService_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 := GoogleNowService_AddCredentials_Helper.WrapResponse(err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from addCredentials: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(error) (*GoogleNowService_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 := GoogleNowService_AddCredentials_Helper.UnwrapResponse(result)
	UnwrapResponse func(*GoogleNowService_AddCredentials_Result) error
}{}

GoogleNowService_AddCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNowService.addCredentials function.

View Source
var GoogleNowService_CheckCredentials_Helper = struct {
	// Args accepts the parameters of checkCredentials in-order and returns
	// the arguments struct for the function.
	Args func() *GoogleNowService_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 := GoogleNowService_CheckCredentials_Helper.WrapResponse(err)
	//   if err != nil {
	//     return fmt.Errorf("unexpected error from checkCredentials: %v", err)
	//   }
	//   serialize(result)
	WrapResponse func(error) (*GoogleNowService_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 := GoogleNowService_CheckCredentials_Helper.UnwrapResponse(result)
	UnwrapResponse func(*GoogleNowService_CheckCredentials_Result) error
}{}

GoogleNowService_CheckCredentials_Helper provides functions that aid in handling the parameters and return values of the GoogleNowService.checkCredentials function.

Functions

This section is empty.

Types

type GoogleNowService_AddCredentials_Args

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

GoogleNowService_AddCredentials_Args represents the arguments for the GoogleNowService.addCredentials function.

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

func (*GoogleNowService_AddCredentials_Args) Decode

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

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

func (*GoogleNowService_AddCredentials_Args) Encode

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

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

func (*GoogleNowService_AddCredentials_Args) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*GoogleNowService_AddCredentials_Args) Equals

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

This function performs a deep comparison.

func (*GoogleNowService_AddCredentials_Args) FromWire

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

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

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

func (*GoogleNowService_AddCredentials_Args) GetAuthCode

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

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

func (GoogleNowService_AddCredentials_Args) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNowService_AddCredentials_Args) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNowService_AddCredentials_Args) MarshalLogObject

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

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

func (*GoogleNowService_AddCredentials_Args) MethodName

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 (*GoogleNowService_AddCredentials_Args) String

String returns a readable string representation of a GoogleNowService_AddCredentials_Args struct.

func (*GoogleNowService_AddCredentials_Args) ToWire

ToWire translates a GoogleNowService_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 (*GoogleNowService_AddCredentials_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNowService_AddCredentials_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GoogleNowService_AddCredentials_Result

type GoogleNowService_AddCredentials_Result struct {
}

GoogleNowService_AddCredentials_Result represents the result of a GoogleNowService.addCredentials function call.

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

func (*GoogleNowService_AddCredentials_Result) Decode

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

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

func (*GoogleNowService_AddCredentials_Result) Encode

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

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

func (*GoogleNowService_AddCredentials_Result) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*GoogleNowService_AddCredentials_Result) Equals

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

This function performs a deep comparison.

func (*GoogleNowService_AddCredentials_Result) FromWire

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

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

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

func (GoogleNowService_AddCredentials_Result) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNowService_AddCredentials_Result) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNowService_AddCredentials_Result) MarshalLogObject

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

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

func (*GoogleNowService_AddCredentials_Result) MethodName

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 (*GoogleNowService_AddCredentials_Result) String

String returns a readable string representation of a GoogleNowService_AddCredentials_Result struct.

func (*GoogleNowService_AddCredentials_Result) ToWire

ToWire translates a GoogleNowService_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 (*GoogleNowService_AddCredentials_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNowService_AddCredentials_Result) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GoogleNowService_CheckCredentials_Args

type GoogleNowService_CheckCredentials_Args struct {
}

GoogleNowService_CheckCredentials_Args represents the arguments for the GoogleNowService.checkCredentials function.

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

func (*GoogleNowService_CheckCredentials_Args) Decode

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

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

func (*GoogleNowService_CheckCredentials_Args) Encode

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

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

func (*GoogleNowService_CheckCredentials_Args) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Call for this struct.

func (*GoogleNowService_CheckCredentials_Args) Equals

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

This function performs a deep comparison.

func (*GoogleNowService_CheckCredentials_Args) FromWire

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

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

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

func (GoogleNowService_CheckCredentials_Args) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNowService_CheckCredentials_Args) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GoogleNowService_CheckCredentials_Args) MarshalLogObject

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

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

func (*GoogleNowService_CheckCredentials_Args) MethodName

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 (*GoogleNowService_CheckCredentials_Args) String

String returns a readable string representation of a GoogleNowService_CheckCredentials_Args struct.

func (*GoogleNowService_CheckCredentials_Args) ToWire

ToWire translates a GoogleNowService_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 (*GoogleNowService_CheckCredentials_Args) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNowService_CheckCredentials_Args) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GoogleNowService_CheckCredentials_Result

type GoogleNowService_CheckCredentials_Result struct {
}

GoogleNowService_CheckCredentials_Result represents the result of a GoogleNowService.checkCredentials function call.

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

func (*GoogleNowService_CheckCredentials_Result) Decode

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

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

func (*GoogleNowService_CheckCredentials_Result) Encode

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

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

func (*GoogleNowService_CheckCredentials_Result) EnvelopeType

EnvelopeType returns the kind of value inside this struct.

This will always be Reply for this struct.

func (*GoogleNowService_CheckCredentials_Result) Equals

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

This function performs a deep comparison.

func (*GoogleNowService_CheckCredentials_Result) FromWire

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

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

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

func (GoogleNowService_CheckCredentials_Result) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GoogleNowService_CheckCredentials_Result) MarshalJSON

MarshalJSON supports json.Marshaler interface

func (*GoogleNowService_CheckCredentials_Result) MarshalLogObject

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

func (*GoogleNowService_CheckCredentials_Result) MethodName

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 (*GoogleNowService_CheckCredentials_Result) String

String returns a readable string representation of a GoogleNowService_CheckCredentials_Result struct.

func (*GoogleNowService_CheckCredentials_Result) ToWire

ToWire translates a GoogleNowService_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 (*GoogleNowService_CheckCredentials_Result) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GoogleNowService_CheckCredentials_Result) UnmarshalJSON

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