action

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeviceInteractionType_name = map[int32]string{
		0:  "LockDevice",
		1:  "UnlockDevice",
		2:  "GetDeviceState",
		3:  "IsAppInstalled",
		4:  "InstallApp",
		5:  "UninstallApp",
		6:  "StartApp",
		7:  "StopApp",
		8:  "IsAppConnected",
		9:  "StartRecording",
		10: "StopRecording",
		11: "HasFeature",
		12: "ExecuteFeature",
		13: "GetScreenShot",
	}
	DeviceInteractionType_value = map[string]int32{
		"LockDevice":     0,
		"UnlockDevice":   1,
		"GetDeviceState": 2,
		"IsAppInstalled": 3,
		"InstallApp":     4,
		"UninstallApp":   5,
		"StartApp":       6,
		"StopApp":        7,
		"IsAppConnected": 8,
		"StartRecording": 9,
		"StopRecording":  10,
		"HasFeature":     11,
		"ExecuteFeature": 12,
		"GetScreenShot":  13,
	}
)

Enum value maps for DeviceInteractionType.

View Source
var (
	ActionType_name = map[int32]string{
		0:  "Custom",
		1:  "GetSceneGraph",
		2:  "ElementIsDisplayed",
		3:  "ElementSetValue",
		4:  "ElementGetValue",
		5:  "Move",
		6:  "TouchDown",
		7:  "TouchMove",
		8:  "TouchUp",
		9:  "DragAndDrop",
		10: "LongTouch",
		11: "ElementTouch",
		12: "GetScreenshot",
		13: "GetTests",
		14: "ExecuteTest",
		15: "ExecutionResult",
		16: "Log",
		17: "UnityReset",
		18: "Performance",
		19: "NativeScript",
	}
	ActionType_value = map[string]int32{
		"Custom":             0,
		"GetSceneGraph":      1,
		"ElementIsDisplayed": 2,
		"ElementSetValue":    3,
		"ElementGetValue":    4,
		"Move":               5,
		"TouchDown":          6,
		"TouchMove":          7,
		"TouchUp":            8,
		"DragAndDrop":        9,
		"LongTouch":          10,
		"ElementTouch":       11,
		"GetScreenshot":      12,
		"GetTests":           13,
		"ExecuteTest":        14,
		"ExecutionResult":    15,
		"Log":                16,
		"UnityReset":         17,
		"Performance":        18,
		"NativeScript":       19,
	}
)

Enum value maps for ActionType.

View Source
var (
	LogType_name = map[int32]string{
		0: "DeviceLog",
		1: "StepLog",
		2: "StatusLog",
		3: "CheckpointLog",
		4: "PerformanceLog",
	}
	LogType_value = map[string]int32{
		"DeviceLog":      0,
		"StepLog":        1,
		"StatusLog":      2,
		"CheckpointLog":  3,
		"PerformanceLog": 4,
	}
)

Enum value maps for LogType.

View Source
var (
	LogLevel_name = map[int32]string{
		0: "Debug",
		1: "Info",
		2: "Warning",
		3: "Error",
		4: "Exception",
	}
	LogLevel_value = map[string]int32{
		"Debug":     0,
		"Info":      1,
		"Warning":   2,
		"Error":     3,
		"Exception": 4,
	}
)

Enum value maps for LogLevel.

View Source
var (
	ContentType_name = map[int32]string{
		0: "Flatbuffer",
		1: "Json",
		2: "Xml",
	}
	ContentType_value = map[string]int32{
		"Flatbuffer": 0,
		"Json":       1,
		"Xml":        2,
	}
)

Enum value maps for ContentType.

View Source
var (
	AppType_name = map[int32]string{
		0: "Cocos",
		1: "Unity",
	}
	AppType_value = map[string]int32{
		"Cocos": 0,
		"Unity": 1,
	}
)

Enum value maps for AppType.

View Source
var File_action_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ActionHandler

type ActionHandler interface {
	OnActionResponse(interface{}, *Response)
}

type ActionType

type ActionType int32
const (
	ActionType_Custom             ActionType = 0
	ActionType_GetSceneGraph      ActionType = 1
	ActionType_ElementIsDisplayed ActionType = 2
	ActionType_ElementSetValue    ActionType = 3
	ActionType_ElementGetValue    ActionType = 4
	ActionType_Move               ActionType = 5
	ActionType_TouchDown          ActionType = 6
	ActionType_TouchMove          ActionType = 7
	ActionType_TouchUp            ActionType = 8
	ActionType_DragAndDrop        ActionType = 9
	ActionType_LongTouch          ActionType = 10
	ActionType_ElementTouch       ActionType = 11
	ActionType_GetScreenshot      ActionType = 12
	ActionType_GetTests           ActionType = 13
	ActionType_ExecuteTest        ActionType = 14
	ActionType_ExecutionResult    ActionType = 15
	ActionType_Log                ActionType = 16
	ActionType_UnityReset         ActionType = 17
	ActionType_Performance        ActionType = 18
	ActionType_NativeScript       ActionType = 19
)

func (ActionType) Descriptor

func (ActionType) Descriptor() protoreflect.EnumDescriptor

func (ActionType) Enum

func (x ActionType) Enum() *ActionType

func (ActionType) EnumDescriptor deprecated

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

Deprecated: Use ActionType.Descriptor instead.

func (ActionType) Number

func (x ActionType) Number() protoreflect.EnumNumber

func (ActionType) String

func (x ActionType) String() string

func (ActionType) Type

type AppType

type AppType int32
const (
	AppType_Cocos AppType = 0
	AppType_Unity AppType = 1
)

func (AppType) Descriptor

func (AppType) Descriptor() protoreflect.EnumDescriptor

func (AppType) Enum

func (x AppType) Enum() *AppType

func (AppType) EnumDescriptor deprecated

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

Deprecated: Use AppType.Descriptor instead.

func (AppType) Number

func (x AppType) Number() protoreflect.EnumNumber

func (AppType) String

func (x AppType) String() string

func (AppType) Type

func (AppType) Type() protoreflect.EnumType

type Connect

type Connect struct {
	CustomerId string  `protobuf:"bytes,1,opt,name=customerId,proto3" json:"customerId,omitempty"`
	AppID      string  `protobuf:"bytes,2,opt,name=appID,proto3" json:"appID,omitempty"`
	AppType    AppType `protobuf:"varint,3,opt,name=appType,proto3,enum=action.AppType" json:"appType,omitempty"`
	DeviceID   string  `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID,omitempty"`
	SessionID  string  `protobuf:"bytes,5,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	Version    string  `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Connect) Descriptor deprecated

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

Deprecated: Use Connect.ProtoReflect.Descriptor instead.

func (*Connect) GetAppID

func (x *Connect) GetAppID() string

func (*Connect) GetAppType

func (x *Connect) GetAppType() AppType

func (*Connect) GetCustomerId

func (x *Connect) GetCustomerId() string

func (*Connect) GetDeviceID

func (x *Connect) GetDeviceID() string

func (*Connect) GetSessionID

func (x *Connect) GetSessionID() string

func (*Connect) GetVersion

func (x *Connect) GetVersion() string

func (*Connect) ProtoMessage

func (*Connect) ProtoMessage()

func (*Connect) ProtoReflect

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

func (*Connect) Reset

func (x *Connect) Reset()

func (*Connect) String

func (x *Connect) String() string

type ContentType

type ContentType int32
const (
	ContentType_Flatbuffer ContentType = 0
	ContentType_Json       ContentType = 1
	ContentType_Xml        ContentType = 2
)

func (ContentType) Descriptor

func (ContentType) Enum

func (x ContentType) Enum() *ContentType

func (ContentType) EnumDescriptor deprecated

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

Deprecated: Use ContentType.Descriptor instead.

func (ContentType) Number

func (x ContentType) Number() protoreflect.EnumNumber

func (ContentType) String

func (x ContentType) String() string

func (ContentType) Type

type Custom

type Custom struct {
	RequestData string
	Content     []byte
	Success     bool
}

func (*Custom) GetActionType

func (a *Custom) GetActionType() ActionType

func (*Custom) ProcessResponse

func (a *Custom) ProcessResponse(response *Response) error

func (*Custom) Serialize

func (a *Custom) Serialize() ([]byte, error)

type Device

type Device struct {
	Manager                string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"`
	DeviceId               string `protobuf:"bytes,2,opt,name=deviceId,proto3" json:"deviceId,omitempty"`
	Name                   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	OperationSystem        string `protobuf:"bytes,4,opt,name=OperationSystem,proto3" json:"OperationSystem,omitempty"`
	SupportedArchitectures string `protobuf:"bytes,5,opt,name=SupportedArchitectures,proto3" json:"SupportedArchitectures,omitempty"`
	Status                 string `protobuf:"bytes,6,opt,name=Status,proto3" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetDeviceId

func (x *Device) GetDeviceId() string

func (*Device) GetManager

func (x *Device) GetManager() string

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetOperationSystem

func (x *Device) GetOperationSystem() string

func (*Device) GetStatus

func (x *Device) GetStatus() string

func (*Device) GetSupportedArchitectures

func (x *Device) GetSupportedArchitectures() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DeviceInteractionType

type DeviceInteractionType int32
const (
	DeviceInteractionType_LockDevice     DeviceInteractionType = 0
	DeviceInteractionType_UnlockDevice   DeviceInteractionType = 1
	DeviceInteractionType_GetDeviceState DeviceInteractionType = 2
	DeviceInteractionType_IsAppInstalled DeviceInteractionType = 3
	DeviceInteractionType_InstallApp     DeviceInteractionType = 4
	DeviceInteractionType_UninstallApp   DeviceInteractionType = 5
	DeviceInteractionType_StartApp       DeviceInteractionType = 6
	DeviceInteractionType_StopApp        DeviceInteractionType = 7
	DeviceInteractionType_IsAppConnected DeviceInteractionType = 8
	DeviceInteractionType_StartRecording DeviceInteractionType = 9
	DeviceInteractionType_StopRecording  DeviceInteractionType = 10
	DeviceInteractionType_HasFeature     DeviceInteractionType = 11
	DeviceInteractionType_ExecuteFeature DeviceInteractionType = 12
	DeviceInteractionType_GetScreenShot  DeviceInteractionType = 13
)

func (DeviceInteractionType) Descriptor

func (DeviceInteractionType) Enum

func (DeviceInteractionType) EnumDescriptor deprecated

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

Deprecated: Use DeviceInteractionType.Descriptor instead.

func (DeviceInteractionType) Number

func (DeviceInteractionType) String

func (x DeviceInteractionType) String() string

func (DeviceInteractionType) Type

type DeviceRequest

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

func (*DeviceRequest) Descriptor deprecated

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

Deprecated: Use DeviceRequest.ProtoReflect.Descriptor instead.

func (*DeviceRequest) ProtoMessage

func (*DeviceRequest) ProtoMessage()

func (*DeviceRequest) ProtoReflect

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

func (*DeviceRequest) Reset

func (x *DeviceRequest) Reset()

func (*DeviceRequest) String

func (x *DeviceRequest) String() string

type DeviceResponse

type DeviceResponse struct {
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceResponse) Descriptor deprecated

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

Deprecated: Use DeviceResponse.ProtoReflect.Descriptor instead.

func (*DeviceResponse) GetDevices

func (x *DeviceResponse) GetDevices() []*Device

func (*DeviceResponse) ProtoMessage

func (*DeviceResponse) ProtoMessage()

func (*DeviceResponse) ProtoReflect

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

func (*DeviceResponse) Reset

func (x *DeviceResponse) Reset()

func (*DeviceResponse) String

func (x *DeviceResponse) String() string

type DragAndDrop

type DragAndDrop struct {
	From string
	To   string
}

func (*DragAndDrop) GetActionType

func (a *DragAndDrop) GetActionType() ActionType

func (*DragAndDrop) ProcessResponse

func (a *DragAndDrop) ProcessResponse(response *Response) error

func (*DragAndDrop) Serialize

func (a *DragAndDrop) Serialize() ([]byte, error)

type GetAttr

type GetAttr struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAttr) Descriptor deprecated

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

Deprecated: Use GetAttr.ProtoReflect.Descriptor instead.

func (*GetAttr) GetAttr

func (x *GetAttr) GetAttr() string

func (*GetAttr) GetId

func (x *GetAttr) GetId() string

func (*GetAttr) ProtoMessage

func (*GetAttr) ProtoMessage()

func (*GetAttr) ProtoReflect

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

func (*GetAttr) Reset

func (x *GetAttr) Reset()

func (*GetAttr) String

func (x *GetAttr) String() string

type GetSceenGraph

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

func (*GetSceenGraph) Content

func (a *GetSceenGraph) Content() string

func (*GetSceenGraph) GetActionType

func (a *GetSceenGraph) GetActionType() ActionType

func (*GetSceenGraph) ProcessResponse

func (a *GetSceenGraph) ProcessResponse(response *Response) error

func (*GetSceenGraph) Serialize

func (a *GetSceenGraph) Serialize() ([]byte, error)

func (*GetSceenGraph) XML

func (a *GetSceenGraph) XML() (*xmlquery.Node, error)

type GetScreenshot

type GetScreenshot struct {
	Success bool
	// contains filtered or unexported fields
}

func (*GetScreenshot) GetActionType

func (a *GetScreenshot) GetActionType() ActionType

func (*GetScreenshot) Height

func (a *GetScreenshot) Height() int

func (*GetScreenshot) ProcessResponse

func (a *GetScreenshot) ProcessResponse(response *Response) error

func (*GetScreenshot) SceengraphXML

func (a *GetScreenshot) SceengraphXML() []byte

func (*GetScreenshot) ScreenshotData

func (a *GetScreenshot) ScreenshotData() []byte

func (*GetScreenshot) Serialize

func (a *GetScreenshot) Serialize() ([]byte, error)

func (*GetScreenshot) Width

func (a *GetScreenshot) Width() int

type GetValue

type GetValue struct {
	ElementID string
	Success   bool
	Attr      string
	Value     string
}

func (*GetValue) GetActionType

func (a *GetValue) GetActionType() ActionType

func (*GetValue) ProcessResponse

func (a *GetValue) ProcessResponse(response *Response) error

func (*GetValue) Serialize

func (a *GetValue) Serialize() ([]byte, error)

type InteractionRequest

type InteractionRequest struct {
	DeviceID string                `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
	Type     DeviceInteractionType `protobuf:"varint,2,opt,name=type,proto3,enum=action.DeviceInteractionType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*InteractionRequest) Descriptor deprecated

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

Deprecated: Use InteractionRequest.ProtoReflect.Descriptor instead.

func (*InteractionRequest) GetDeviceID

func (x *InteractionRequest) GetDeviceID() string

func (*InteractionRequest) GetType

func (*InteractionRequest) ProtoMessage

func (*InteractionRequest) ProtoMessage()

func (*InteractionRequest) ProtoReflect

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

func (*InteractionRequest) Reset

func (x *InteractionRequest) Reset()

func (*InteractionRequest) String

func (x *InteractionRequest) String() string

type InteractionResponse

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

func (*InteractionResponse) Descriptor deprecated

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

Deprecated: Use InteractionResponse.ProtoReflect.Descriptor instead.

func (*InteractionResponse) ProtoMessage

func (*InteractionResponse) ProtoMessage()

func (*InteractionResponse) ProtoReflect

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

func (*InteractionResponse) Reset

func (x *InteractionResponse) Reset()

func (*InteractionResponse) String

func (x *InteractionResponse) String() string

type Interface

type Interface interface {
	GetActionType() ActionType
	Serialize() ([]byte, error)
	ProcessResponse(response *Response) error
}

type IsDisplayed

type IsDisplayed struct {
	ElementID   string
	Success     bool
	IsDisplayed bool
}

func (*IsDisplayed) GetActionType

func (a *IsDisplayed) GetActionType() ActionType

func (*IsDisplayed) ProcessResponse

func (a *IsDisplayed) ProcessResponse(response *Response) error

func (*IsDisplayed) Serialize

func (a *IsDisplayed) Serialize() ([]byte, error)

type LogData

type LogData struct {
	Type    LogType  `protobuf:"varint,1,opt,name=type,proto3,enum=action.LogType" json:"type,omitempty"`
	Level   LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=action.LogLevel" json:"level,omitempty"`
	Message string   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*LogData) Descriptor deprecated

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

Deprecated: Use LogData.ProtoReflect.Descriptor instead.

func (*LogData) GetLevel

func (x *LogData) GetLevel() LogLevel

func (*LogData) GetMessage

func (x *LogData) GetMessage() string

func (*LogData) GetType

func (x *LogData) GetType() LogType

func (*LogData) ProtoMessage

func (*LogData) ProtoMessage()

func (*LogData) ProtoReflect

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

func (*LogData) Reset

func (x *LogData) Reset()

func (*LogData) String

func (x *LogData) String() string

type LogLevel

type LogLevel int32
const (
	LogLevel_Debug     LogLevel = 0
	LogLevel_Info      LogLevel = 1
	LogLevel_Warning   LogLevel = 2
	LogLevel_Error     LogLevel = 3
	LogLevel_Exception LogLevel = 4
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

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

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

type LogType

type LogType int32
const (
	LogType_DeviceLog      LogType = 0
	LogType_StepLog        LogType = 1
	LogType_StatusLog      LogType = 2
	LogType_CheckpointLog  LogType = 3
	LogType_PerformanceLog LogType = 4
)

func (LogType) Descriptor

func (LogType) Descriptor() protoreflect.EnumDescriptor

func (LogType) Enum

func (x LogType) Enum() *LogType

func (LogType) EnumDescriptor deprecated

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

Deprecated: Use LogType.Descriptor instead.

func (LogType) Number

func (x LogType) Number() protoreflect.EnumNumber

func (LogType) String

func (x LogType) String() string

func (LogType) Type

func (LogType) Type() protoreflect.EnumType

type LongTouchElement

type LongTouchElement struct {
	ElementID string
	Success   bool
}

func (*LongTouchElement) GetActionType

func (a *LongTouchElement) GetActionType() ActionType

func (*LongTouchElement) ProcessResponse

func (a *LongTouchElement) ProcessResponse(response *Response) error

func (*LongTouchElement) Serialize

func (a *LongTouchElement) Serialize() ([]byte, error)

type MoveElement

type MoveElement struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveElement) Descriptor deprecated

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

Deprecated: Use MoveElement.ProtoReflect.Descriptor instead.

func (*MoveElement) GetFrom

func (x *MoveElement) GetFrom() string

func (*MoveElement) GetTo

func (x *MoveElement) GetTo() string

func (*MoveElement) ProtoMessage

func (*MoveElement) ProtoMessage()

func (*MoveElement) ProtoReflect

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

func (*MoveElement) Reset

func (x *MoveElement) Reset()

func (*MoveElement) String

func (x *MoveElement) String() string

type MoveOffset

type MoveOffset struct {
	From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
	To   int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveOffset) Descriptor deprecated

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

Deprecated: Use MoveOffset.ProtoReflect.Descriptor instead.

func (*MoveOffset) GetFrom

func (x *MoveOffset) GetFrom() int64

func (*MoveOffset) GetTo

func (x *MoveOffset) GetTo() int64

func (*MoveOffset) ProtoMessage

func (*MoveOffset) ProtoMessage()

func (*MoveOffset) ProtoReflect

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

func (*MoveOffset) Reset

func (x *MoveOffset) Reset()

func (*MoveOffset) String

func (x *MoveOffset) String() string

type Node

type Node struct {
	XMLName    xml.Name `xml:""`
	Class      string   `xml:"Class,attr"`
	Id         int32    `xml:"ID,attr"`
	Name       string   `xml:"Name,attr"`
	CSS        string   `xml:"CSS,attr"`
	X          int32    `xml:"X,attr"`
	Y          int32    `xml:"Y,attr"`
	RectangleX int32    `xml:"RectangleX,attr"`
	RectangleY int32    `xml:"RectangleY,attr"`
	IsVisible  byte     `xml:"isVisible,attr"`
	LabelText  string   `xml:"LabelText,attr"`
	Children   []Node   `xml:""`
}

type PerformanceData

type PerformanceData struct {
	Checkpoint string  `protobuf:"bytes,1,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"`
	Cpu        float32 `protobuf:"fixed32,2,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Memory     float32 `protobuf:"fixed32,3,opt,name=memory,proto3" json:"memory,omitempty"`
	Fps        float32 `protobuf:"fixed32,4,opt,name=fps,proto3" json:"fps,omitempty"`
	// contains filtered or unexported fields
}

func (*PerformanceData) Descriptor deprecated

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

Deprecated: Use PerformanceData.ProtoReflect.Descriptor instead.

func (*PerformanceData) GetCheckpoint

func (x *PerformanceData) GetCheckpoint() string

func (*PerformanceData) GetCpu

func (x *PerformanceData) GetCpu() float32

func (*PerformanceData) GetFps

func (x *PerformanceData) GetFps() float32

func (*PerformanceData) GetMemory

func (x *PerformanceData) GetMemory() float32

func (*PerformanceData) ProtoMessage

func (*PerformanceData) ProtoMessage()

func (*PerformanceData) ProtoReflect

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

func (*PerformanceData) Reset

func (x *PerformanceData) Reset()

func (*PerformanceData) String

func (x *PerformanceData) String() string

type Request

type Request struct {
	ActionID   string     `protobuf:"bytes,1,opt,name=actionID,proto3" json:"actionID,omitempty"`
	ActionType ActionType `protobuf:"varint,2,opt,name=actionType,proto3,enum=action.ActionType" json:"actionType,omitempty"`
	// Types that are assignable to Payload:
	//	*Request_Id
	//	*Request_Data
	//	*Request_SetAttr
	//	*Request_GetAttr
	//	*Request_MoveOffset
	//	*Request_Touch
	//	*Request_MoveElement
	//	*Request_Test
	Payload isRequest_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetActionID

func (x *Request) GetActionID() string

func (*Request) GetActionType

func (x *Request) GetActionType() ActionType

func (*Request) GetData

func (x *Request) GetData() string

func (*Request) GetGetAttr

func (x *Request) GetGetAttr() *GetAttr

func (*Request) GetId

func (x *Request) GetId() string

func (*Request) GetMoveElement

func (x *Request) GetMoveElement() *MoveElement

func (*Request) GetMoveOffset

func (x *Request) GetMoveOffset() *MoveOffset

func (*Request) GetPayload

func (m *Request) GetPayload() isRequest_Payload

func (*Request) GetSetAttr

func (x *Request) GetSetAttr() *SetAttr

func (*Request) GetTest

func (x *Request) GetTest() *Test

func (*Request) GetTouch

func (x *Request) GetTouch() *Touch

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_Data

type Request_Data struct {
	Data string `protobuf:"bytes,4,opt,name=data,proto3,oneof"`
}

type Request_GetAttr

type Request_GetAttr struct {
	GetAttr *GetAttr `protobuf:"bytes,6,opt,name=getAttr,proto3,oneof"`
}

type Request_Id

type Request_Id struct {
	Id string `protobuf:"bytes,3,opt,name=id,proto3,oneof"`
}

type Request_MoveElement

type Request_MoveElement struct {
	MoveElement *MoveElement `protobuf:"bytes,9,opt,name=moveElement,proto3,oneof"`
}

type Request_MoveOffset

type Request_MoveOffset struct {
	MoveOffset *MoveOffset `protobuf:"bytes,7,opt,name=moveOffset,proto3,oneof"`
}

type Request_SetAttr

type Request_SetAttr struct {
	SetAttr *SetAttr `protobuf:"bytes,5,opt,name=setAttr,proto3,oneof"`
}

type Request_Test

type Request_Test struct {
	Test *Test `protobuf:"bytes,10,opt,name=test,proto3,oneof"`
}

type Request_Touch

type Request_Touch struct {
	Touch *Touch `protobuf:"bytes,8,opt,name=touch,proto3,oneof"`
}

type Response

type Response struct {
	ActionID   string     `protobuf:"bytes,1,opt,name=actionID,proto3" json:"actionID,omitempty"`
	ActionType ActionType `protobuf:"varint,2,opt,name=actionType,proto3,enum=action.ActionType" json:"actionType,omitempty"`
	Success    bool       `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
	// Types that are assignable to Payload:
	//	*Response_Visible
	//	*Response_Data
	//	*Response_Value
	//	*Response_Screenshot
	//	*Response_Connect
	//	*Response_Tests
	//	*Response_Log
	//	*Response_TestDetails
	//	*Response_Performance
	Payload isResponse_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetActionID

func (x *Response) GetActionID() string

func (*Response) GetActionType

func (x *Response) GetActionType() ActionType

func (*Response) GetConnect

func (x *Response) GetConnect() *Connect

func (*Response) GetData

func (x *Response) GetData() []byte

func (*Response) GetLog

func (x *Response) GetLog() *LogData

func (*Response) GetPayload

func (m *Response) GetPayload() isResponse_Payload

func (*Response) GetPerformance

func (x *Response) GetPerformance() *PerformanceData

func (*Response) GetScreenshot

func (x *Response) GetScreenshot() *Screenshot

func (*Response) GetSuccess

func (x *Response) GetSuccess() bool

func (*Response) GetTestDetails

func (x *Response) GetTestDetails() *TestDetails

func (*Response) GetTests

func (x *Response) GetTests() *Tests

func (*Response) GetValue

func (x *Response) GetValue() string

func (*Response) GetVisible

func (x *Response) GetVisible() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_Connect

type Response_Connect struct {
	Connect *Connect `protobuf:"bytes,8,opt,name=connect,proto3,oneof"`
}

type Response_Data

type Response_Data struct {
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3,oneof"`
}

type Response_Log

type Response_Log struct {
	Log *LogData `protobuf:"bytes,10,opt,name=log,proto3,oneof"`
}

type Response_Performance

type Response_Performance struct {
	Performance *PerformanceData `protobuf:"bytes,12,opt,name=performance,proto3,oneof"`
}

type Response_Screenshot

type Response_Screenshot struct {
	Screenshot *Screenshot `protobuf:"bytes,7,opt,name=screenshot,proto3,oneof"`
}

type Response_TestDetails

type Response_TestDetails struct {
	TestDetails *TestDetails `protobuf:"bytes,11,opt,name=testDetails,proto3,oneof"`
}

type Response_Tests

type Response_Tests struct {
	Tests *Tests `protobuf:"bytes,9,opt,name=tests,proto3,oneof"`
}

type Response_Value

type Response_Value struct {
	Value string `protobuf:"bytes,6,opt,name=value,proto3,oneof"`
}

type Response_Visible

type Response_Visible struct {
	Visible bool `protobuf:"varint,4,opt,name=visible,proto3,oneof"`
}

type Screenshot

type Screenshot struct {
	Sceengraph  []byte      `protobuf:"bytes,1,opt,name=sceengraph,proto3" json:"sceengraph,omitempty"`
	Screenshot  []byte      `protobuf:"bytes,2,opt,name=screenshot,proto3" json:"screenshot,omitempty"`
	ContentType ContentType `protobuf:"varint,3,opt,name=contentType,proto3,enum=action.ContentType" json:"contentType,omitempty"`
	// contains filtered or unexported fields
}

func (*Screenshot) Descriptor deprecated

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

Deprecated: Use Screenshot.ProtoReflect.Descriptor instead.

func (*Screenshot) GetContentType

func (x *Screenshot) GetContentType() ContentType

func (*Screenshot) GetSceengraph

func (x *Screenshot) GetSceengraph() []byte

func (*Screenshot) GetScreenshot

func (x *Screenshot) GetScreenshot() []byte

func (*Screenshot) ProtoMessage

func (*Screenshot) ProtoMessage()

func (*Screenshot) ProtoReflect

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

func (*Screenshot) Reset

func (x *Screenshot) Reset()

func (*Screenshot) String

func (x *Screenshot) String() string

type Scroll

type Scroll struct {
	OffsetX int64
	OffsetY int64
}

func (*Scroll) GetActionType

func (a *Scroll) GetActionType() ActionType

func (*Scroll) ProcessResponse

func (a *Scroll) ProcessResponse(response *Response) error

func (*Scroll) Serialize

func (a *Scroll) Serialize() ([]byte, error)

type SetAttr

type SetAttr struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"`
	Val  string `protobuf:"bytes,3,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAttr) Descriptor deprecated

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

Deprecated: Use SetAttr.ProtoReflect.Descriptor instead.

func (*SetAttr) GetAttr

func (x *SetAttr) GetAttr() string

func (*SetAttr) GetId

func (x *SetAttr) GetId() string

func (*SetAttr) GetVal

func (x *SetAttr) GetVal() string

func (*SetAttr) ProtoMessage

func (*SetAttr) ProtoMessage()

func (*SetAttr) ProtoReflect

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

func (*SetAttr) Reset

func (x *SetAttr) Reset()

func (*SetAttr) String

func (x *SetAttr) String() string

type SetValue

type SetValue struct {
	ElementID string
	Success   bool
	Attr      string
	Value     string
}

func (*SetValue) GetActionType

func (a *SetValue) GetActionType() ActionType

func (*SetValue) ProcessResponse

func (a *SetValue) ProcessResponse(response *Response) error

func (*SetValue) Serialize

func (a *SetValue) Serialize() ([]byte, error)

type Test

type Test struct {
	Assembly   string            `protobuf:"bytes,1,opt,name=assembly,proto3" json:"assembly,omitempty"`
	Class      string            `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"`
	Method     string            `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Parameter  map[string]string `` /* 159-byte string literal not displayed */
	Categories []string          `protobuf:"bytes,5,rep,name=categories,proto3" json:"categories,omitempty"`
	// contains filtered or unexported fields
}

func (*Test) Descriptor deprecated

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

Deprecated: Use Test.ProtoReflect.Descriptor instead.

func (*Test) GetAssembly

func (x *Test) GetAssembly() string

func (*Test) GetCategories

func (x *Test) GetCategories() []string

func (*Test) GetClass

func (x *Test) GetClass() string

func (*Test) GetMethod

func (x *Test) GetMethod() string

func (*Test) GetParameter

func (x *Test) GetParameter() map[string]string

func (*Test) ProtoMessage

func (*Test) ProtoMessage()

func (*Test) ProtoReflect

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

func (*Test) Reset

func (x *Test) Reset()

func (*Test) String

func (x *Test) String() string

type TestDetails

type TestDetails struct {
	Timeout    int32    `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Categories []string `protobuf:"bytes,2,rep,name=categories,proto3" json:"categories,omitempty"`
	// contains filtered or unexported fields
}

func (*TestDetails) Descriptor deprecated

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

Deprecated: Use TestDetails.ProtoReflect.Descriptor instead.

func (*TestDetails) GetCategories

func (x *TestDetails) GetCategories() []string

func (*TestDetails) GetTimeout

func (x *TestDetails) GetTimeout() int32

func (*TestDetails) ProtoMessage

func (*TestDetails) ProtoMessage()

func (*TestDetails) ProtoReflect

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

func (*TestDetails) Reset

func (x *TestDetails) Reset()

func (*TestDetails) String

func (x *TestDetails) String() string

type TestStart

type TestStart struct {
	Assembly string
	Class    string
	Method   string
	Env      map[string]string
	Success  bool
}

func (*TestStart) GetActionType

func (a *TestStart) GetActionType() ActionType

func (*TestStart) ProcessResponse

func (a *TestStart) ProcessResponse(response *Response) error

func (*TestStart) Serialize

func (a *TestStart) Serialize() ([]byte, error)

type Tests

type Tests struct {
	Tests []*Test `protobuf:"bytes,1,rep,name=tests,proto3" json:"tests,omitempty"`
	// contains filtered or unexported fields
}

func (*Tests) Descriptor deprecated

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

Deprecated: Use Tests.ProtoReflect.Descriptor instead.

func (*Tests) GetTests

func (x *Tests) GetTests() []*Test

func (*Tests) ProtoMessage

func (*Tests) ProtoMessage()

func (*Tests) ProtoReflect

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

func (*Tests) Reset

func (x *Tests) Reset()

func (*Tests) String

func (x *Tests) String() string

type TestsGet

type TestsGet struct {
	Tests   []*Test
	Success bool
}

func (*TestsGet) GetActionType

func (a *TestsGet) GetActionType() ActionType

func (*TestsGet) ProcessResponse

func (a *TestsGet) ProcessResponse(response *Response) error

func (*TestsGet) Serialize

func (a *TestsGet) Serialize() ([]byte, error)

type Touch

type Touch struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Xoffset int64  `protobuf:"varint,2,opt,name=xoffset,proto3" json:"xoffset,omitempty"`
	Yoffset int64  `protobuf:"varint,3,opt,name=yoffset,proto3" json:"yoffset,omitempty"`
	// contains filtered or unexported fields
}

func (*Touch) Descriptor deprecated

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

Deprecated: Use Touch.ProtoReflect.Descriptor instead.

func (*Touch) GetId

func (x *Touch) GetId() string

func (*Touch) GetXoffset

func (x *Touch) GetXoffset() int64

func (*Touch) GetYoffset

func (x *Touch) GetYoffset() int64

func (*Touch) ProtoMessage

func (*Touch) ProtoMessage()

func (*Touch) ProtoReflect

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

func (*Touch) Reset

func (x *Touch) Reset()

func (*Touch) String

func (x *Touch) String() string

type TouchDownPosition

type TouchDownPosition struct {
	PosX    int64
	PosY    int64
	Success bool
}

func (*TouchDownPosition) GetActionType

func (a *TouchDownPosition) GetActionType() ActionType

func (*TouchDownPosition) ProcessResponse

func (a *TouchDownPosition) ProcessResponse(response *Response) error

func (*TouchDownPosition) Serialize

func (a *TouchDownPosition) Serialize() ([]byte, error)

type TouchElement

type TouchElement struct {
	ElementID string
	Success   bool
}

func (*TouchElement) GetActionType

func (a *TouchElement) GetActionType() ActionType

func (*TouchElement) ProcessResponse

func (a *TouchElement) ProcessResponse(response *Response) error

func (*TouchElement) Serialize

func (a *TouchElement) Serialize() ([]byte, error)

type TouchMovePosition

type TouchMovePosition struct {
	PosX    int64
	PosY    int64
	Success bool
}

func (*TouchMovePosition) GetActionType

func (a *TouchMovePosition) GetActionType() ActionType

func (*TouchMovePosition) ProcessResponse

func (a *TouchMovePosition) ProcessResponse(response *Response) error

func (*TouchMovePosition) Serialize

func (a *TouchMovePosition) Serialize() ([]byte, error)

type TouchUpPosition

type TouchUpPosition struct {
	PosX    int64
	PosY    int64
	Success bool
}

func (*TouchUpPosition) GetActionType

func (a *TouchUpPosition) GetActionType() ActionType

func (*TouchUpPosition) ProcessResponse

func (a *TouchUpPosition) ProcessResponse(response *Response) error

func (*TouchUpPosition) Serialize

func (a *TouchUpPosition) Serialize() ([]byte, error)

type UnityReset

type UnityReset struct {
	Assembly string
	Class    string
	Method   string
	Success  bool
}

func (*UnityReset) GetActionType

func (a *UnityReset) GetActionType() ActionType

func (*UnityReset) ProcessResponse

func (a *UnityReset) ProcessResponse(response *Response) error

func (*UnityReset) Serialize

func (a *UnityReset) Serialize() ([]byte, error)

Jump to

Keyboard shortcuts

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