v2

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DevicePlatform_name = map[int32]string{
		0: "UNKNOWN",
		1: "iOS",
		2: "ANDROID",
		3: "WEB",
	}
	DevicePlatform_value = map[string]int32{
		"UNKNOWN": 0,
		"iOS":     1,
		"ANDROID": 2,
		"WEB":     3,
	}
)

Enum value maps for DevicePlatform.

View Source
var (
	SensorType_name = map[int32]string{
		0:  "UNKNOWN_SENSOR",
		1:  "LOCATION",
		2:  "ACCELEROMETER",
		3:  "LINEAR_ACCELEROMETER",
		4:  "MAGNETOMETER",
		5:  "GYROSCOPE",
		6:  "BATTERY",
		7:  "ORIENTATION",
		14: "POINTER",
		15: "TEXT_CHANGE",
		16: "KEY_PRESS",
		17: "FOCUS_CHANGE",
		18: "VIEW_SCROLL",
		19: "MOUSE_WHEEL",
		20: "CLICK",
		21: "INPUT_CHANGE",
		22: "FORM_SUBMIT",
		23: "CONTEXT_MENU",
		24: "FRAME_RATE",
	}
	SensorType_value = map[string]int32{
		"UNKNOWN_SENSOR":       0,
		"LOCATION":             1,
		"ACCELEROMETER":        2,
		"LINEAR_ACCELEROMETER": 3,
		"MAGNETOMETER":         4,
		"GYROSCOPE":            5,
		"BATTERY":              6,
		"ORIENTATION":          7,
		"POINTER":              14,
		"TEXT_CHANGE":          15,
		"KEY_PRESS":            16,
		"FOCUS_CHANGE":         17,
		"VIEW_SCROLL":          18,
		"MOUSE_WHEEL":          19,
		"CLICK":                20,
		"INPUT_CHANGE":         21,
		"FORM_SUBMIT":          22,
		"CONTEXT_MENU":         23,
		"FRAME_RATE":           24,
	}
)

Enum value maps for SensorType.

View Source
var File_common_v2_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DevicePlatform

type DevicePlatform int32

============================================================

Enums

============================================================

const (
	DevicePlatform_UNKNOWN DevicePlatform = 0
	DevicePlatform_iOS     DevicePlatform = 1
	DevicePlatform_ANDROID DevicePlatform = 2
	DevicePlatform_WEB     DevicePlatform = 3
)

func (DevicePlatform) Descriptor

func (DevicePlatform) Enum

func (x DevicePlatform) Enum() *DevicePlatform

func (DevicePlatform) EnumDescriptor deprecated

func (DevicePlatform) EnumDescriptor() ([]byte, []int)

Deprecated: Use DevicePlatform.Descriptor instead.

func (DevicePlatform) Number

func (DevicePlatform) String

func (x DevicePlatform) String() string

func (DevicePlatform) Type

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

An empty message used as response for any call that does not return a body.

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Empty) ValidateAll

func (m *Empty) ValidateAll() error

ValidateAll checks the field values on Empty with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EmptyMultiError, or nil if none found.

type EmptyMultiError

type EmptyMultiError []error

EmptyMultiError is an error wrapping multiple validation errors returned by Empty.ValidateAll() if the designated constraints aren't met.

func (EmptyMultiError) AllErrors

func (m EmptyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyMultiError) Error

func (m EmptyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyValidationError

type EmptyValidationError struct {
	// contains filtered or unexported fields
}

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type ErrorResponse

type ErrorResponse struct {
	Type    string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Param   string `protobuf:"bytes,2,opt,name=param,proto3" json:"param,omitempty"`
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Returned for a response that has failed in some manner. This is used for almost all errors including messages that return a 400, 401, 403, 404, and 500

func (*ErrorResponse) Descriptor deprecated

func (*ErrorResponse) Descriptor() ([]byte, []int)

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetMessage

func (x *ErrorResponse) GetMessage() string

func (*ErrorResponse) GetParam

func (x *ErrorResponse) GetParam() string

func (*ErrorResponse) GetType

func (x *ErrorResponse) GetType() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect

func (x *ErrorResponse) ProtoReflect() protoreflect.Message

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate() error

Validate checks the field values on ErrorResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ErrorResponse) ValidateAll

func (m *ErrorResponse) ValidateAll() error

ValidateAll checks the field values on ErrorResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorResponseMultiError, or nil if none found.

type ErrorResponseMultiError

type ErrorResponseMultiError []error

ErrorResponseMultiError is an error wrapping multiple validation errors returned by ErrorResponse.ValidateAll() if the designated constraints aren't met.

func (ErrorResponseMultiError) AllErrors

func (m ErrorResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ErrorResponseMultiError) Error

func (m ErrorResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ErrorResponseValidationError

type ErrorResponseValidationError struct {
	// contains filtered or unexported fields
}

ErrorResponseValidationError is the validation error returned by ErrorResponse.Validate if the designated constraints aren't met.

func (ErrorResponseValidationError) Cause

Cause function returns cause value.

func (ErrorResponseValidationError) Error

Error satisfies the builtin error interface

func (ErrorResponseValidationError) ErrorName

func (e ErrorResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ErrorResponseValidationError) Field

Field function returns field value.

func (ErrorResponseValidationError) Key

Key function returns key value.

func (ErrorResponseValidationError) Reason

Reason function returns reason value.

type SensorType

type SensorType int32

A list of possible sensor types that can be passed to the config. All sensor types may not be available in the SDK. For SDK configuration, follow the SDK documentation for which sensors are available.

const (
	SensorType_UNKNOWN_SENSOR       SensorType = 0
	SensorType_LOCATION             SensorType = 1
	SensorType_ACCELEROMETER        SensorType = 2
	SensorType_LINEAR_ACCELEROMETER SensorType = 3
	SensorType_MAGNETOMETER         SensorType = 4
	SensorType_GYROSCOPE            SensorType = 5
	SensorType_BATTERY              SensorType = 6
	SensorType_ORIENTATION          SensorType = 7
	SensorType_POINTER              SensorType = 14
	// Deprecated: Do not use.
	SensorType_TEXT_CHANGE  SensorType = 15
	SensorType_KEY_PRESS    SensorType = 16
	SensorType_FOCUS_CHANGE SensorType = 17
	SensorType_VIEW_SCROLL  SensorType = 18
	SensorType_MOUSE_WHEEL  SensorType = 19
	SensorType_CLICK        SensorType = 20
	SensorType_INPUT_CHANGE SensorType = 21
	SensorType_FORM_SUBMIT  SensorType = 22
	SensorType_CONTEXT_MENU SensorType = 23
	SensorType_FRAME_RATE   SensorType = 24
)

func (SensorType) Descriptor

func (SensorType) Descriptor() protoreflect.EnumDescriptor

func (SensorType) Enum

func (x SensorType) Enum() *SensorType

func (SensorType) EnumDescriptor deprecated

func (SensorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SensorType.Descriptor instead.

func (SensorType) Number

func (x SensorType) Number() protoreflect.EnumNumber

func (SensorType) String

func (x SensorType) String() string

func (SensorType) Type

type TokenSelfResponse

type TokenSelfResponse struct {
	AppId        string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	ProjectId    string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Scopes       string `protobuf:"bytes,3,opt,name=scopes,proto3" json:"scopes,omitempty"`
	UserId       string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CredentialId string `protobuf:"bytes,5,opt,name=credential_id,json=credentialId,proto3" json:"credential_id,omitempty"`
	Type         int64  `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

The response to a GET "token/self" request

func (*TokenSelfResponse) Descriptor deprecated

func (*TokenSelfResponse) Descriptor() ([]byte, []int)

Deprecated: Use TokenSelfResponse.ProtoReflect.Descriptor instead.

func (*TokenSelfResponse) GetAppId

func (x *TokenSelfResponse) GetAppId() string

func (*TokenSelfResponse) GetCredentialId

func (x *TokenSelfResponse) GetCredentialId() string

func (*TokenSelfResponse) GetProjectId

func (x *TokenSelfResponse) GetProjectId() string

func (*TokenSelfResponse) GetScopes

func (x *TokenSelfResponse) GetScopes() string

func (*TokenSelfResponse) GetType

func (x *TokenSelfResponse) GetType() int64

func (*TokenSelfResponse) GetUserId

func (x *TokenSelfResponse) GetUserId() string

func (*TokenSelfResponse) ProtoMessage

func (*TokenSelfResponse) ProtoMessage()

func (*TokenSelfResponse) ProtoReflect

func (x *TokenSelfResponse) ProtoReflect() protoreflect.Message

func (*TokenSelfResponse) Reset

func (x *TokenSelfResponse) Reset()

func (*TokenSelfResponse) String

func (x *TokenSelfResponse) String() string

func (*TokenSelfResponse) Validate

func (m *TokenSelfResponse) Validate() error

Validate checks the field values on TokenSelfResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TokenSelfResponse) ValidateAll

func (m *TokenSelfResponse) ValidateAll() error

ValidateAll checks the field values on TokenSelfResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TokenSelfResponseMultiError, or nil if none found.

type TokenSelfResponseMultiError

type TokenSelfResponseMultiError []error

TokenSelfResponseMultiError is an error wrapping multiple validation errors returned by TokenSelfResponse.ValidateAll() if the designated constraints aren't met.

func (TokenSelfResponseMultiError) AllErrors

func (m TokenSelfResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TokenSelfResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TokenSelfResponseValidationError

type TokenSelfResponseValidationError struct {
	// contains filtered or unexported fields
}

TokenSelfResponseValidationError is the validation error returned by TokenSelfResponse.Validate if the designated constraints aren't met.

func (TokenSelfResponseValidationError) Cause

Cause function returns cause value.

func (TokenSelfResponseValidationError) Error

Error satisfies the builtin error interface

func (TokenSelfResponseValidationError) ErrorName

ErrorName returns error name.

func (TokenSelfResponseValidationError) Field

Field function returns field value.

func (TokenSelfResponseValidationError) Key

Key function returns key value.

func (TokenSelfResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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