hagallpb

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EntityFlag_name = map[int32]string{
		0: "ENTITY_FLAG_EMPTY",
		1: "ENTITY_FLAG_PARTICIPANT_ENTITY",
	}
	EntityFlag_value = map[string]int32{
		"ENTITY_FLAG_EMPTY":              0,
		"ENTITY_FLAG_PARTICIPANT_ENTITY": 1,
	}
)

Enum value maps for EntityFlag.

View Source
var (
	MsgType_name = map[int32]string{
		0:  "MSG_TYPE_ERROR_RESPONSE",
		1:  "MSG_TYPE_SYNC_CLOCK",
		2:  "MSG_TYPE_SESSION_STATE",
		3:  "MSG_TYPE_PARTICIPANT_JOIN_REQUEST",
		4:  "MSG_TYPE_PARTICIPANT_JOIN_RESPONSE",
		5:  "MSG_TYPE_PARTICIPANT_JOIN_BROADCAST",
		6:  "MSG_TYPE_PARTICIPANT_LEAVE_REQUEST",
		7:  "MSG_TYPE_PARTICIPANT_LEAVE_BROADCAST",
		8:  "MSG_TYPE_ENTITY_ADD_REQUEST",
		9:  "MSG_TYPE_ENTITY_ADD_RESPONSE",
		10: "MSG_TYPE_ENTITY_ADD_BROADCAST",
		11: "MSG_TYPE_ENTITY_DELETE_REQUEST",
		12: "MSG_TYPE_ENTITY_DELETE_RESPONSE",
		13: "MSG_TYPE_ENTITY_DELETE_BROADCAST",
		14: "MSG_TYPE_ENTITY_UPDATE_POSE",
		15: "MSG_TYPE_ENTITY_UPDATE_POSE_BROADCAST",
		16: "MSG_TYPE_CUSTOM_MESSAGE",
		17: "MSG_TYPE_CUSTOM_MESSAGE_BROADCAST",
		18: "MSG_TYPE_ENTITY_COMPONENT_TYPE_ADD_REQUEST",
		19: "MSG_TYPE_ENTITY_COMPONENT_TYPE_ADD_RESPONSE",
		20: "MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_NAME_REQUEST",
		21: "MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_NAME_RESPONSE",
		22: "MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_ID_REQUEST",
		23: "MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_ID_RESPONSE",
		24: "MSG_TYPE_ENTITY_COMPONENT_ADD_REQUEST",
		25: "MSG_TYPE_ENTITY_COMPONENT_ADD_RESPONSE",
		26: "MSG_TYPE_ENTITY_COMPONENT_ADD_BROADCAST",
		27: "MSG_TYPE_ENTITY_COMPONENT_DELETE_REQUEST",
		28: "MSG_TYPE_ENTITY_COMPONENT_DELETE_RESPONSE",
		29: "MSG_TYPE_ENTITY_COMPONENT_DELETE_BROADCAST",
		30: "MSG_TYPE_ENTITY_COMPONENT_UPDATE",
		31: "MSG_TYPE_ENTITY_COMPONENT_UPDATE_BROADCAST",
		32: "MSG_TYPE_ENTITY_COMPONENT_LIST_REQUEST",
		33: "MSG_TYPE_ENTITY_COMPONENT_LIST_RESPONSE",
		34: "MSG_TYPE_ENTITY_COMPONENT_TYPE_SUBSCRIBE_REQUEST",
		35: "MSG_TYPE_ENTITY_COMPONENT_TYPE_SUBSCRIBE_RESPONSE",
		36: "MSG_TYPE_ENTITY_COMPONENT_TYPE_UNSUBSCRIBE_REQUEST",
		37: "MSG_TYPE_ENTITY_COMPONENT_TYPE_UNSUBSCRIBE_RESPONSE",
		38: "MSG_TYPE_PING_REQUEST",
		39: "MSG_TYPE_PING_RESPONSE",
		40: "MSG_TYPE_RECEIPT_REQUEST",
		41: "MSG_TYPE_RECEIPT_RESPONSE",
		42: "MSG_TYPE_SIGNED_LATENCY_REQUEST",
		43: "MSG_TYPE_SIGNED_LATENCY_RESPONSE",
	}
	MsgType_value = map[string]int32{
		"MSG_TYPE_ERROR_RESPONSE":                             0,
		"MSG_TYPE_SYNC_CLOCK":                                 1,
		"MSG_TYPE_SESSION_STATE":                              2,
		"MSG_TYPE_PARTICIPANT_JOIN_REQUEST":                   3,
		"MSG_TYPE_PARTICIPANT_JOIN_RESPONSE":                  4,
		"MSG_TYPE_PARTICIPANT_JOIN_BROADCAST":                 5,
		"MSG_TYPE_PARTICIPANT_LEAVE_REQUEST":                  6,
		"MSG_TYPE_PARTICIPANT_LEAVE_BROADCAST":                7,
		"MSG_TYPE_ENTITY_ADD_REQUEST":                         8,
		"MSG_TYPE_ENTITY_ADD_RESPONSE":                        9,
		"MSG_TYPE_ENTITY_ADD_BROADCAST":                       10,
		"MSG_TYPE_ENTITY_DELETE_REQUEST":                      11,
		"MSG_TYPE_ENTITY_DELETE_RESPONSE":                     12,
		"MSG_TYPE_ENTITY_DELETE_BROADCAST":                    13,
		"MSG_TYPE_ENTITY_UPDATE_POSE":                         14,
		"MSG_TYPE_ENTITY_UPDATE_POSE_BROADCAST":               15,
		"MSG_TYPE_CUSTOM_MESSAGE":                             16,
		"MSG_TYPE_CUSTOM_MESSAGE_BROADCAST":                   17,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_ADD_REQUEST":          18,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_ADD_RESPONSE":         19,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_NAME_REQUEST":     20,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_NAME_RESPONSE":    21,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_ID_REQUEST":       22,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_ID_RESPONSE":      23,
		"MSG_TYPE_ENTITY_COMPONENT_ADD_REQUEST":               24,
		"MSG_TYPE_ENTITY_COMPONENT_ADD_RESPONSE":              25,
		"MSG_TYPE_ENTITY_COMPONENT_ADD_BROADCAST":             26,
		"MSG_TYPE_ENTITY_COMPONENT_DELETE_REQUEST":            27,
		"MSG_TYPE_ENTITY_COMPONENT_DELETE_RESPONSE":           28,
		"MSG_TYPE_ENTITY_COMPONENT_DELETE_BROADCAST":          29,
		"MSG_TYPE_ENTITY_COMPONENT_UPDATE":                    30,
		"MSG_TYPE_ENTITY_COMPONENT_UPDATE_BROADCAST":          31,
		"MSG_TYPE_ENTITY_COMPONENT_LIST_REQUEST":              32,
		"MSG_TYPE_ENTITY_COMPONENT_LIST_RESPONSE":             33,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_SUBSCRIBE_REQUEST":    34,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_SUBSCRIBE_RESPONSE":   35,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_UNSUBSCRIBE_REQUEST":  36,
		"MSG_TYPE_ENTITY_COMPONENT_TYPE_UNSUBSCRIBE_RESPONSE": 37,
		"MSG_TYPE_PING_REQUEST":                               38,
		"MSG_TYPE_PING_RESPONSE":                              39,
		"MSG_TYPE_RECEIPT_REQUEST":                            40,
		"MSG_TYPE_RECEIPT_RESPONSE":                           41,
		"MSG_TYPE_SIGNED_LATENCY_REQUEST":                     42,
		"MSG_TYPE_SIGNED_LATENCY_RESPONSE":                    43,
	}
)

Enum value maps for MsgType.

View Source
var (
	ErrorCode_name = map[int32]string{
		0:   "ERROR_CODE_UNKNOWN",
		400: "ERROR_CODE_BAD_REQUEST",
		401: "ERROR_CODE_UNAUTHORIZED",
		404: "ERROR_CODE_NOT_FOUND",
		409: "ERROR_CODE_CONFLICT",
		413: "ERROR_CODE_TOO_LARGE",
		460: "ERROR_CODE_SESSION_NOT_JOINED",
		461: "ERROR_CODE_SESSION_ALREADY_JOINED",
		500: "ERROR_CODE_INTERNAL_SERVER_ERROR",
		501: "ERROR_CODE_NOT_IMPLEMENTED",
		503: "ERROR_CODE_SERVER_TOO_BUSY",
	}
	ErrorCode_value = map[string]int32{
		"ERROR_CODE_UNKNOWN":                0,
		"ERROR_CODE_BAD_REQUEST":            400,
		"ERROR_CODE_UNAUTHORIZED":           401,
		"ERROR_CODE_NOT_FOUND":              404,
		"ERROR_CODE_CONFLICT":               409,
		"ERROR_CODE_TOO_LARGE":              413,
		"ERROR_CODE_SESSION_NOT_JOINED":     460,
		"ERROR_CODE_SESSION_ALREADY_JOINED": 461,
		"ERROR_CODE_INTERNAL_SERVER_ERROR":  500,
		"ERROR_CODE_NOT_IMPLEMENTED":        501,
		"ERROR_CODE_SERVER_TOO_BUSY":        503,
	}
)

Enum value maps for ErrorCode.

View Source
var File_messages_hagallpb_hagall_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CustomMessage

type CustomMessage struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The ids of the participants who will receive the message. The message is
	// sent to all participants when empty.
	ParticipantIds []uint32 `protobuf:"varint,3,rep,packed,name=participant_ids,json=participantIds,proto3" json:"participant_ids,omitempty"`
	// The message body.
	Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

CustomMessage represents a message to send a custom message to one or many other participants.

func (*CustomMessage) Descriptor deprecated

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

Deprecated: Use CustomMessage.ProtoReflect.Descriptor instead.

func (*CustomMessage) GetBody

func (x *CustomMessage) GetBody() []byte

func (*CustomMessage) GetParticipantIds

func (x *CustomMessage) GetParticipantIds() []uint32

func (*CustomMessage) GetTimestamp

func (x *CustomMessage) GetTimestamp() *timestamppb.Timestamp

func (*CustomMessage) GetType

func (x *CustomMessage) GetType() MsgType

func (*CustomMessage) ProtoMessage

func (*CustomMessage) ProtoMessage()

func (*CustomMessage) ProtoReflect

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

func (*CustomMessage) Reset

func (x *CustomMessage) Reset()

func (*CustomMessage) String

func (x *CustomMessage) String() string

type CustomMessageBroadcast

type CustomMessageBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The id of the participant that sent the message.
	ParticipantId uint32 `protobuf:"varint,4,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// The message body.
	Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

CustomMessageBroadcast represents a message that notifies a participant that a custom message has been sent.

func (*CustomMessageBroadcast) Descriptor deprecated

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

Deprecated: Use CustomMessageBroadcast.ProtoReflect.Descriptor instead.

func (*CustomMessageBroadcast) GetBody

func (x *CustomMessageBroadcast) GetBody() []byte

func (*CustomMessageBroadcast) GetOriginTimestamp

func (x *CustomMessageBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*CustomMessageBroadcast) GetParticipantId

func (x *CustomMessageBroadcast) GetParticipantId() uint32

func (*CustomMessageBroadcast) GetTimestamp

func (x *CustomMessageBroadcast) GetTimestamp() *timestamppb.Timestamp

func (*CustomMessageBroadcast) GetType

func (x *CustomMessageBroadcast) GetType() MsgType

func (*CustomMessageBroadcast) ProtoMessage

func (*CustomMessageBroadcast) ProtoMessage()

func (*CustomMessageBroadcast) ProtoReflect

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

func (*CustomMessageBroadcast) Reset

func (x *CustomMessageBroadcast) Reset()

func (*CustomMessageBroadcast) String

func (x *CustomMessageBroadcast) String() string

type Entity

type Entity struct {

	// The entity id.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The id of the participant who owns the entity.
	ParticipantId uint32 `protobuf:"varint,2,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// The pose in the current session.
	Pose *Pose `protobuf:"bytes,3,opt,name=pose,proto3" json:"pose,omitempty"`
	// The entity flag.
	Flag EntityFlag `protobuf:"varint,4,opt,name=flag,proto3,enum=hagall.EntityFlag" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

An entity that have a pose in a session.

func (*Entity) Descriptor deprecated

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

Deprecated: Use Entity.ProtoReflect.Descriptor instead.

func (*Entity) GetFlag

func (x *Entity) GetFlag() EntityFlag

func (*Entity) GetId

func (x *Entity) GetId() uint32

func (*Entity) GetParticipantId

func (x *Entity) GetParticipantId() uint32

func (*Entity) GetPose

func (x *Entity) GetPose() *Pose

func (*Entity) ProtoMessage

func (*Entity) ProtoMessage()

func (*Entity) ProtoReflect

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

func (*Entity) Reset

func (x *Entity) Reset()

func (*Entity) String

func (x *Entity) String() string

type EntityAddBroadcast

type EntityAddBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The added entity.
	Entity *Entity `protobuf:"bytes,4,opt,name=entity,proto3" json:"entity,omitempty"`
	// contains filtered or unexported fields
}

EntityAddBroadcast represents a message that notifies that an entity has been added to the current session.

func (*EntityAddBroadcast) Descriptor deprecated

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

Deprecated: Use EntityAddBroadcast.ProtoReflect.Descriptor instead.

func (*EntityAddBroadcast) GetEntity

func (x *EntityAddBroadcast) GetEntity() *Entity

func (*EntityAddBroadcast) GetOriginTimestamp

func (x *EntityAddBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*EntityAddBroadcast) GetTimestamp

func (x *EntityAddBroadcast) GetTimestamp() *timestamppb.Timestamp

func (*EntityAddBroadcast) GetType

func (x *EntityAddBroadcast) GetType() MsgType

func (*EntityAddBroadcast) ProtoMessage

func (*EntityAddBroadcast) ProtoMessage()

func (*EntityAddBroadcast) ProtoReflect

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

func (*EntityAddBroadcast) Reset

func (x *EntityAddBroadcast) Reset()

func (*EntityAddBroadcast) String

func (x *EntityAddBroadcast) String() string

type EntityAddRequest

type EntityAddRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The initial pose of the entity.
	Pose *Pose `protobuf:"bytes,3,opt,name=pose,proto3" json:"pose,omitempty"`
	// A boolean that reports whether the entity is deleted when its owner
	// (a participant) leaves the current session.
	Persist bool `protobuf:"varint,4,opt,name=persist,proto3" json:"persist,omitempty"`
	// The entity flag that gives context to the entity.
	Flag EntityFlag `protobuf:"varint,5,opt,name=flag,proto3,enum=hagall.EntityFlag" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

EntityAddRequest represents a message to add an entity into the current session.

func (*EntityAddRequest) Descriptor deprecated

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

Deprecated: Use EntityAddRequest.ProtoReflect.Descriptor instead.

func (*EntityAddRequest) GetFlag

func (x *EntityAddRequest) GetFlag() EntityFlag

func (*EntityAddRequest) GetPersist

func (x *EntityAddRequest) GetPersist() bool

func (*EntityAddRequest) GetPose

func (x *EntityAddRequest) GetPose() *Pose

func (*EntityAddRequest) GetRequestId

func (x *EntityAddRequest) GetRequestId() uint32

func (*EntityAddRequest) GetTimestamp

func (x *EntityAddRequest) GetTimestamp() *timestamppb.Timestamp

func (*EntityAddRequest) GetType

func (x *EntityAddRequest) GetType() MsgType

func (*EntityAddRequest) ProtoMessage

func (*EntityAddRequest) ProtoMessage()

func (*EntityAddRequest) ProtoReflect

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

func (*EntityAddRequest) Reset

func (x *EntityAddRequest) Reset()

func (*EntityAddRequest) String

func (x *EntityAddRequest) String() string

type EntityAddResponse

type EntityAddResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity id.
	EntityId uint32 `protobuf:"varint,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// contains filtered or unexported fields
}

EntityAddResponse represents a message returned in response to an entity add request.

func (*EntityAddResponse) Descriptor deprecated

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

Deprecated: Use EntityAddResponse.ProtoReflect.Descriptor instead.

func (*EntityAddResponse) GetEntityId

func (x *EntityAddResponse) GetEntityId() uint32

func (*EntityAddResponse) GetRequestId

func (x *EntityAddResponse) GetRequestId() uint32

func (*EntityAddResponse) GetTimestamp

func (x *EntityAddResponse) GetTimestamp() *timestamppb.Timestamp

func (*EntityAddResponse) GetType

func (x *EntityAddResponse) GetType() MsgType

func (*EntityAddResponse) ProtoMessage

func (*EntityAddResponse) ProtoMessage()

func (*EntityAddResponse) ProtoReflect

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

func (*EntityAddResponse) Reset

func (x *EntityAddResponse) Reset()

func (*EntityAddResponse) String

func (x *EntityAddResponse) String() string

type EntityComponent

type EntityComponent struct {

	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// The entity id.
	EntityId uint32 `protobuf:"varint,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The component data.
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

An entity component.

func (*EntityComponent) Descriptor deprecated

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

Deprecated: Use EntityComponent.ProtoReflect.Descriptor instead.

func (*EntityComponent) GetData

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

func (*EntityComponent) GetEntityComponentTypeId

func (x *EntityComponent) GetEntityComponentTypeId() uint32

func (*EntityComponent) GetEntityId

func (x *EntityComponent) GetEntityId() uint32

func (*EntityComponent) ProtoMessage

func (*EntityComponent) ProtoMessage()

func (*EntityComponent) ProtoReflect

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

func (*EntityComponent) Reset

func (x *EntityComponent) Reset()

func (*EntityComponent) String

func (x *EntityComponent) String() string

type EntityComponentAddBroadcast

type EntityComponentAddBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The entity component.
	EntityComponent *EntityComponent `protobuf:"bytes,4,opt,name=entity_component,json=entityComponent,proto3" json:"entity_component,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentAddBroadcast represents a message that notifies that an entity component has been added.

func (*EntityComponentAddBroadcast) Descriptor deprecated

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

Deprecated: Use EntityComponentAddBroadcast.ProtoReflect.Descriptor instead.

func (*EntityComponentAddBroadcast) GetEntityComponent

func (x *EntityComponentAddBroadcast) GetEntityComponent() *EntityComponent

func (*EntityComponentAddBroadcast) GetOriginTimestamp

func (x *EntityComponentAddBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*EntityComponentAddBroadcast) GetTimestamp

func (*EntityComponentAddBroadcast) GetType

func (x *EntityComponentAddBroadcast) GetType() MsgType

func (*EntityComponentAddBroadcast) ProtoMessage

func (*EntityComponentAddBroadcast) ProtoMessage()

func (*EntityComponentAddBroadcast) ProtoReflect

func (*EntityComponentAddBroadcast) Reset

func (x *EntityComponentAddBroadcast) Reset()

func (*EntityComponentAddBroadcast) String

func (x *EntityComponentAddBroadcast) String() string

type EntityComponentAddRequest

type EntityComponentAddRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// The entity id.
	EntityId uint32 `protobuf:"varint,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The component data.
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentAddRequest represents a message for a client to add an entity component. It returns an error when an entity does not exist or when an entity component is not registered.

func (*EntityComponentAddRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentAddRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentAddRequest) GetData

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

func (*EntityComponentAddRequest) GetEntityComponentTypeId

func (x *EntityComponentAddRequest) GetEntityComponentTypeId() uint32

func (*EntityComponentAddRequest) GetEntityId

func (x *EntityComponentAddRequest) GetEntityId() uint32

func (*EntityComponentAddRequest) GetRequestId

func (x *EntityComponentAddRequest) GetRequestId() uint32

func (*EntityComponentAddRequest) GetTimestamp

func (x *EntityComponentAddRequest) GetTimestamp() *timestamppb.Timestamp

func (*EntityComponentAddRequest) GetType

func (x *EntityComponentAddRequest) GetType() MsgType

func (*EntityComponentAddRequest) ProtoMessage

func (*EntityComponentAddRequest) ProtoMessage()

func (*EntityComponentAddRequest) ProtoReflect

func (*EntityComponentAddRequest) Reset

func (x *EntityComponentAddRequest) Reset()

func (*EntityComponentAddRequest) String

func (x *EntityComponentAddRequest) String() string

type EntityComponentAddResponse

type EntityComponentAddResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentAddResponse represents a message returned in response to an add entity component id request.

func (*EntityComponentAddResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentAddResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentAddResponse) GetRequestId

func (x *EntityComponentAddResponse) GetRequestId() uint32

func (*EntityComponentAddResponse) GetTimestamp

func (*EntityComponentAddResponse) GetType

func (x *EntityComponentAddResponse) GetType() MsgType

func (*EntityComponentAddResponse) ProtoMessage

func (*EntityComponentAddResponse) ProtoMessage()

func (*EntityComponentAddResponse) ProtoReflect

func (*EntityComponentAddResponse) Reset

func (x *EntityComponentAddResponse) Reset()

func (*EntityComponentAddResponse) String

func (x *EntityComponentAddResponse) String() string

type EntityComponentDeleteBroadcast

type EntityComponentDeleteBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The entity component.
	EntityComponent *EntityComponent `protobuf:"bytes,4,opt,name=entity_component,json=entityComponent,proto3" json:"entity_component,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentDeleteBroadcast represents a message that notifies that an entity component has been deleted.

func (*EntityComponentDeleteBroadcast) Descriptor deprecated

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

Deprecated: Use EntityComponentDeleteBroadcast.ProtoReflect.Descriptor instead.

func (*EntityComponentDeleteBroadcast) GetEntityComponent

func (x *EntityComponentDeleteBroadcast) GetEntityComponent() *EntityComponent

func (*EntityComponentDeleteBroadcast) GetOriginTimestamp

func (x *EntityComponentDeleteBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*EntityComponentDeleteBroadcast) GetTimestamp

func (*EntityComponentDeleteBroadcast) GetType

func (*EntityComponentDeleteBroadcast) ProtoMessage

func (*EntityComponentDeleteBroadcast) ProtoMessage()

func (*EntityComponentDeleteBroadcast) ProtoReflect

func (*EntityComponentDeleteBroadcast) Reset

func (x *EntityComponentDeleteBroadcast) Reset()

func (*EntityComponentDeleteBroadcast) String

type EntityComponentDeleteRequest

type EntityComponentDeleteRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// The entity id.
	EntityId uint32 `protobuf:"varint,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentDeleteRequest represents a message for a client to delete an entity component.

func (*EntityComponentDeleteRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentDeleteRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentDeleteRequest) GetEntityComponentTypeId

func (x *EntityComponentDeleteRequest) GetEntityComponentTypeId() uint32

func (*EntityComponentDeleteRequest) GetEntityId

func (x *EntityComponentDeleteRequest) GetEntityId() uint32

func (*EntityComponentDeleteRequest) GetRequestId

func (x *EntityComponentDeleteRequest) GetRequestId() uint32

func (*EntityComponentDeleteRequest) GetTimestamp

func (*EntityComponentDeleteRequest) GetType

func (*EntityComponentDeleteRequest) ProtoMessage

func (*EntityComponentDeleteRequest) ProtoMessage()

func (*EntityComponentDeleteRequest) ProtoReflect

func (*EntityComponentDeleteRequest) Reset

func (x *EntityComponentDeleteRequest) Reset()

func (*EntityComponentDeleteRequest) String

type EntityComponentDeleteResponse

type EntityComponentDeleteResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentDeleteResponse represents a message returned in response to a delete entity component id request.

func (*EntityComponentDeleteResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentDeleteResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentDeleteResponse) GetRequestId

func (x *EntityComponentDeleteResponse) GetRequestId() uint32

func (*EntityComponentDeleteResponse) GetTimestamp

func (*EntityComponentDeleteResponse) GetType

func (*EntityComponentDeleteResponse) ProtoMessage

func (*EntityComponentDeleteResponse) ProtoMessage()

func (*EntityComponentDeleteResponse) ProtoReflect

func (*EntityComponentDeleteResponse) Reset

func (x *EntityComponentDeleteResponse) Reset()

func (*EntityComponentDeleteResponse) String

type EntityComponentListRequest

type EntityComponentListRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The component entity type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentListRequest represents a message for a client to request a list of entity components.

func (*EntityComponentListRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentListRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentListRequest) GetEntityComponentTypeId

func (x *EntityComponentListRequest) GetEntityComponentTypeId() uint32

func (*EntityComponentListRequest) GetRequestId

func (x *EntityComponentListRequest) GetRequestId() uint32

func (*EntityComponentListRequest) GetTimestamp

func (*EntityComponentListRequest) GetType

func (x *EntityComponentListRequest) GetType() MsgType

func (*EntityComponentListRequest) ProtoMessage

func (*EntityComponentListRequest) ProtoMessage()

func (*EntityComponentListRequest) ProtoReflect

func (*EntityComponentListRequest) Reset

func (x *EntityComponentListRequest) Reset()

func (*EntityComponentListRequest) String

func (x *EntityComponentListRequest) String() string

type EntityComponentListResponse

type EntityComponentListResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component list.
	EntityComponents []*EntityComponent `protobuf:"bytes,3,rep,name=entity_components,json=entityComponents,proto3" json:"entity_components,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentListResponse represents a message returned in response to a list entity component request.

func (*EntityComponentListResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentListResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentListResponse) GetEntityComponents

func (x *EntityComponentListResponse) GetEntityComponents() []*EntityComponent

func (*EntityComponentListResponse) GetRequestId

func (x *EntityComponentListResponse) GetRequestId() uint32

func (*EntityComponentListResponse) GetTimestamp

func (*EntityComponentListResponse) GetType

func (x *EntityComponentListResponse) GetType() MsgType

func (*EntityComponentListResponse) ProtoMessage

func (*EntityComponentListResponse) ProtoMessage()

func (*EntityComponentListResponse) ProtoReflect

func (*EntityComponentListResponse) Reset

func (x *EntityComponentListResponse) Reset()

func (*EntityComponentListResponse) String

func (x *EntityComponentListResponse) String() string

type EntityComponentTypeAddRequest

type EntityComponentTypeAddRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type name.
	EntityComponentTypeName string `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeAddRequest represents a message for a client to add and entity component type. It returns an error when the named entity component type has already been added.

func (*EntityComponentTypeAddRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeAddRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeAddRequest) GetEntityComponentTypeName

func (x *EntityComponentTypeAddRequest) GetEntityComponentTypeName() string

func (*EntityComponentTypeAddRequest) GetRequestId

func (x *EntityComponentTypeAddRequest) GetRequestId() uint32

func (*EntityComponentTypeAddRequest) GetTimestamp

func (*EntityComponentTypeAddRequest) GetType

func (*EntityComponentTypeAddRequest) ProtoMessage

func (*EntityComponentTypeAddRequest) ProtoMessage()

func (*EntityComponentTypeAddRequest) ProtoReflect

func (*EntityComponentTypeAddRequest) Reset

func (x *EntityComponentTypeAddRequest) Reset()

func (*EntityComponentTypeAddRequest) String

type EntityComponentTypeAddResponse

type EntityComponentTypeAddResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeAddResponse represents a message returned in response to an entity component type add request.

func (*EntityComponentTypeAddResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeAddResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeAddResponse) GetEntityComponentTypeId

func (x *EntityComponentTypeAddResponse) GetEntityComponentTypeId() uint32

func (*EntityComponentTypeAddResponse) GetRequestId

func (x *EntityComponentTypeAddResponse) GetRequestId() uint32

func (*EntityComponentTypeAddResponse) GetTimestamp

func (*EntityComponentTypeAddResponse) GetType

func (*EntityComponentTypeAddResponse) ProtoMessage

func (*EntityComponentTypeAddResponse) ProtoMessage()

func (*EntityComponentTypeAddResponse) ProtoReflect

func (*EntityComponentTypeAddResponse) Reset

func (x *EntityComponentTypeAddResponse) Reset()

func (*EntityComponentTypeAddResponse) String

type EntityComponentTypeGetIdRequest

type EntityComponentTypeGetIdRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type name.
	EntityComponentTypeName string `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeGetIdRequest represents a message for a client to request a component id. It returns an error when there is no component registered with the given name.

func (*EntityComponentTypeGetIdRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeGetIdRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeGetIdRequest) GetEntityComponentTypeName

func (x *EntityComponentTypeGetIdRequest) GetEntityComponentTypeName() string

func (*EntityComponentTypeGetIdRequest) GetRequestId

func (x *EntityComponentTypeGetIdRequest) GetRequestId() uint32

func (*EntityComponentTypeGetIdRequest) GetTimestamp

func (*EntityComponentTypeGetIdRequest) GetType

func (*EntityComponentTypeGetIdRequest) ProtoMessage

func (*EntityComponentTypeGetIdRequest) ProtoMessage()

func (*EntityComponentTypeGetIdRequest) ProtoReflect

func (*EntityComponentTypeGetIdRequest) Reset

func (*EntityComponentTypeGetIdRequest) String

type EntityComponentTypeGetIdResponse

type EntityComponentTypeGetIdResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeGetIdResponse represents a message returned in response to a get entity component type id request.

func (*EntityComponentTypeGetIdResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeGetIdResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeGetIdResponse) GetEntityComponentTypeId

func (x *EntityComponentTypeGetIdResponse) GetEntityComponentTypeId() uint32

func (*EntityComponentTypeGetIdResponse) GetRequestId

func (x *EntityComponentTypeGetIdResponse) GetRequestId() uint32

func (*EntityComponentTypeGetIdResponse) GetTimestamp

func (*EntityComponentTypeGetIdResponse) GetType

func (*EntityComponentTypeGetIdResponse) ProtoMessage

func (*EntityComponentTypeGetIdResponse) ProtoMessage()

func (*EntityComponentTypeGetIdResponse) ProtoReflect

func (*EntityComponentTypeGetIdResponse) Reset

func (*EntityComponentTypeGetIdResponse) String

type EntityComponentTypeGetNameRequest

type EntityComponentTypeGetNameRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeGetNameRequest represents a message for a client to request a component name. It returns an error when there is no entity component type with the given entity component id.

func (*EntityComponentTypeGetNameRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeGetNameRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeGetNameRequest) GetEntityComponentTypeId

func (x *EntityComponentTypeGetNameRequest) GetEntityComponentTypeId() uint32

func (*EntityComponentTypeGetNameRequest) GetRequestId

func (x *EntityComponentTypeGetNameRequest) GetRequestId() uint32

func (*EntityComponentTypeGetNameRequest) GetTimestamp

func (*EntityComponentTypeGetNameRequest) GetType

func (*EntityComponentTypeGetNameRequest) ProtoMessage

func (*EntityComponentTypeGetNameRequest) ProtoMessage()

func (*EntityComponentTypeGetNameRequest) ProtoReflect

func (*EntityComponentTypeGetNameRequest) Reset

func (*EntityComponentTypeGetNameRequest) String

type EntityComponentTypeGetNameResponse

type EntityComponentTypeGetNameResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type name.
	EntityComponentTypeName string `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeGetNameResponse represents a message returned in response to a get entity component type name request.

func (*EntityComponentTypeGetNameResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeGetNameResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeGetNameResponse) GetEntityComponentTypeName

func (x *EntityComponentTypeGetNameResponse) GetEntityComponentTypeName() string

func (*EntityComponentTypeGetNameResponse) GetRequestId

func (x *EntityComponentTypeGetNameResponse) GetRequestId() uint32

func (*EntityComponentTypeGetNameResponse) GetTimestamp

func (*EntityComponentTypeGetNameResponse) GetType

func (*EntityComponentTypeGetNameResponse) ProtoMessage

func (*EntityComponentTypeGetNameResponse) ProtoMessage()

func (*EntityComponentTypeGetNameResponse) ProtoReflect

func (*EntityComponentTypeGetNameResponse) Reset

func (*EntityComponentTypeGetNameResponse) String

type EntityComponentTypeSubscribeRequest

type EntityComponentTypeSubscribeRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeSubscribeRequest represents a message to subscribe to entity components type broadcasts.

func (*EntityComponentTypeSubscribeRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeSubscribeRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeSubscribeRequest) GetEntityComponentTypeId

func (x *EntityComponentTypeSubscribeRequest) GetEntityComponentTypeId() uint32

func (*EntityComponentTypeSubscribeRequest) GetRequestId

func (x *EntityComponentTypeSubscribeRequest) GetRequestId() uint32

func (*EntityComponentTypeSubscribeRequest) GetTimestamp

func (*EntityComponentTypeSubscribeRequest) GetType

func (*EntityComponentTypeSubscribeRequest) ProtoMessage

func (*EntityComponentTypeSubscribeRequest) ProtoMessage()

func (*EntityComponentTypeSubscribeRequest) ProtoReflect

func (*EntityComponentTypeSubscribeRequest) Reset

func (*EntityComponentTypeSubscribeRequest) String

type EntityComponentTypeSubscribeResponse

type EntityComponentTypeSubscribeResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentTypeSubscribeResponse represents a message returned in response to an entity component type subscription.

func (*EntityComponentTypeSubscribeResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeSubscribeResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeSubscribeResponse) GetRequestId

func (x *EntityComponentTypeSubscribeResponse) GetRequestId() uint32

func (*EntityComponentTypeSubscribeResponse) GetTimestamp

func (*EntityComponentTypeSubscribeResponse) GetType

func (*EntityComponentTypeSubscribeResponse) ProtoMessage

func (*EntityComponentTypeSubscribeResponse) ProtoMessage()

func (*EntityComponentTypeSubscribeResponse) ProtoReflect

func (*EntityComponentTypeSubscribeResponse) Reset

func (*EntityComponentTypeSubscribeResponse) String

type EntityComponentTypeUnsubscribeRequest

type EntityComponentTypeUnsubscribeRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

EntityComponentTypeUnsubscribeRequest represents a message to unsubscribe to entity component type subscriptions.

func (*EntityComponentTypeUnsubscribeRequest) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeUnsubscribeRequest.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeUnsubscribeRequest) GetEntityComponentTypeId

func (x *EntityComponentTypeUnsubscribeRequest) GetEntityComponentTypeId() uint32

func (*EntityComponentTypeUnsubscribeRequest) GetRequestId

func (*EntityComponentTypeUnsubscribeRequest) GetTimestamp

func (*EntityComponentTypeUnsubscribeRequest) GetType

func (*EntityComponentTypeUnsubscribeRequest) ProtoMessage

func (*EntityComponentTypeUnsubscribeRequest) ProtoMessage()

func (*EntityComponentTypeUnsubscribeRequest) ProtoReflect

func (*EntityComponentTypeUnsubscribeRequest) Reset

func (*EntityComponentTypeUnsubscribeRequest) String

type EntityComponentTypeUnsubscribeResponse

type EntityComponentTypeUnsubscribeResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentTypeUnsubscribeResponse represents a message returned in response to an entity component type unsubscribe request.

func (*EntityComponentTypeUnsubscribeResponse) Descriptor deprecated

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

Deprecated: Use EntityComponentTypeUnsubscribeResponse.ProtoReflect.Descriptor instead.

func (*EntityComponentTypeUnsubscribeResponse) GetRequestId

func (*EntityComponentTypeUnsubscribeResponse) GetTimestamp

func (*EntityComponentTypeUnsubscribeResponse) GetType

func (*EntityComponentTypeUnsubscribeResponse) ProtoMessage

func (*EntityComponentTypeUnsubscribeResponse) ProtoReflect

func (*EntityComponentTypeUnsubscribeResponse) Reset

func (*EntityComponentTypeUnsubscribeResponse) String

type EntityComponentUpdate

type EntityComponentUpdate struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The entity component type id.
	EntityComponentTypeId uint32 `` /* 129-byte string literal not displayed */
	// The entity id.
	EntityId uint32 `protobuf:"varint,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The component data.
	Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentUpdate represents a message to update an added entity component. The update is silently aborted when the entity component has not been previously added.

func (*EntityComponentUpdate) Descriptor deprecated

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

Deprecated: Use EntityComponentUpdate.ProtoReflect.Descriptor instead.

func (*EntityComponentUpdate) GetData

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

func (*EntityComponentUpdate) GetEntityComponentTypeId

func (x *EntityComponentUpdate) GetEntityComponentTypeId() uint32

func (*EntityComponentUpdate) GetEntityId

func (x *EntityComponentUpdate) GetEntityId() uint32

func (*EntityComponentUpdate) GetTimestamp

func (x *EntityComponentUpdate) GetTimestamp() *timestamppb.Timestamp

func (*EntityComponentUpdate) GetType

func (x *EntityComponentUpdate) GetType() MsgType

func (*EntityComponentUpdate) ProtoMessage

func (*EntityComponentUpdate) ProtoMessage()

func (*EntityComponentUpdate) ProtoReflect

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

func (*EntityComponentUpdate) Reset

func (x *EntityComponentUpdate) Reset()

func (*EntityComponentUpdate) String

func (x *EntityComponentUpdate) String() string

type EntityComponentUpdateBroadcast

type EntityComponentUpdateBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The entity component id.
	EntityComponent *EntityComponent `protobuf:"bytes,4,opt,name=entity_component,json=entityComponent,proto3" json:"entity_component,omitempty"`
	// contains filtered or unexported fields
}

EntityComponentUpdateBroadcast represents a message that notifies that an entity component has been updated.

func (*EntityComponentUpdateBroadcast) Descriptor deprecated

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

Deprecated: Use EntityComponentUpdateBroadcast.ProtoReflect.Descriptor instead.

func (*EntityComponentUpdateBroadcast) GetEntityComponent

func (x *EntityComponentUpdateBroadcast) GetEntityComponent() *EntityComponent

func (*EntityComponentUpdateBroadcast) GetOriginTimestamp

func (x *EntityComponentUpdateBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*EntityComponentUpdateBroadcast) GetTimestamp

func (*EntityComponentUpdateBroadcast) GetType

func (*EntityComponentUpdateBroadcast) ProtoMessage

func (*EntityComponentUpdateBroadcast) ProtoMessage()

func (*EntityComponentUpdateBroadcast) ProtoReflect

func (*EntityComponentUpdateBroadcast) Reset

func (x *EntityComponentUpdateBroadcast) Reset()

func (*EntityComponentUpdateBroadcast) String

type EntityDeleteBroadcast

type EntityDeleteBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The id of the deleted entity.
	EntityId uint32 `protobuf:"varint,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// contains filtered or unexported fields
}

EntityDeleteBroadcast represents a message that notifies that an entity has been deleted from the current session.

Clients should also delete the resources associated with the entity, such as asset instances.

func (*EntityDeleteBroadcast) Descriptor deprecated

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

Deprecated: Use EntityDeleteBroadcast.ProtoReflect.Descriptor instead.

func (*EntityDeleteBroadcast) GetEntityId

func (x *EntityDeleteBroadcast) GetEntityId() uint32

func (*EntityDeleteBroadcast) GetOriginTimestamp

func (x *EntityDeleteBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*EntityDeleteBroadcast) GetTimestamp

func (x *EntityDeleteBroadcast) GetTimestamp() *timestamppb.Timestamp

func (*EntityDeleteBroadcast) GetType

func (x *EntityDeleteBroadcast) GetType() MsgType

func (*EntityDeleteBroadcast) ProtoMessage

func (*EntityDeleteBroadcast) ProtoMessage()

func (*EntityDeleteBroadcast) ProtoReflect

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

func (*EntityDeleteBroadcast) Reset

func (x *EntityDeleteBroadcast) Reset()

func (*EntityDeleteBroadcast) String

func (x *EntityDeleteBroadcast) String() string

type EntityDeleteRequest

type EntityDeleteRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The entity id.
	EntityId uint32 `protobuf:"varint,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// contains filtered or unexported fields
}

EntityDeleteRequest represents a message to delete an entity from the current session.

func (*EntityDeleteRequest) Descriptor deprecated

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

Deprecated: Use EntityDeleteRequest.ProtoReflect.Descriptor instead.

func (*EntityDeleteRequest) GetEntityId

func (x *EntityDeleteRequest) GetEntityId() uint32

func (*EntityDeleteRequest) GetRequestId

func (x *EntityDeleteRequest) GetRequestId() uint32

func (*EntityDeleteRequest) GetTimestamp

func (x *EntityDeleteRequest) GetTimestamp() *timestamppb.Timestamp

func (*EntityDeleteRequest) GetType

func (x *EntityDeleteRequest) GetType() MsgType

func (*EntityDeleteRequest) ProtoMessage

func (*EntityDeleteRequest) ProtoMessage()

func (*EntityDeleteRequest) ProtoReflect

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

func (*EntityDeleteRequest) Reset

func (x *EntityDeleteRequest) Reset()

func (*EntityDeleteRequest) String

func (x *EntityDeleteRequest) String() string

type EntityDeleteResponse

type EntityDeleteResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

EntityDeleteResponse represents a message returned in response to an entity delete request.

Clients should also delete the resources associated with the entity, such as asset instances.

func (*EntityDeleteResponse) Descriptor deprecated

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

Deprecated: Use EntityDeleteResponse.ProtoReflect.Descriptor instead.

func (*EntityDeleteResponse) GetRequestId

func (x *EntityDeleteResponse) GetRequestId() uint32

func (*EntityDeleteResponse) GetTimestamp

func (x *EntityDeleteResponse) GetTimestamp() *timestamppb.Timestamp

func (*EntityDeleteResponse) GetType

func (x *EntityDeleteResponse) GetType() MsgType

func (*EntityDeleteResponse) ProtoMessage

func (*EntityDeleteResponse) ProtoMessage()

func (*EntityDeleteResponse) ProtoReflect

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

func (*EntityDeleteResponse) Reset

func (x *EntityDeleteResponse) Reset()

func (*EntityDeleteResponse) String

func (x *EntityDeleteResponse) String() string

type EntityFlag

type EntityFlag int32

EntityFlag represents a flag that gives context to an entity.

Note: this is currently only used to be able to tell what entity represents a participant, used for toggling rendering of participant entities assets.

const (
	EntityFlag_ENTITY_FLAG_EMPTY              EntityFlag = 0
	EntityFlag_ENTITY_FLAG_PARTICIPANT_ENTITY EntityFlag = 1
)

func (EntityFlag) Descriptor

func (EntityFlag) Descriptor() protoreflect.EnumDescriptor

func (EntityFlag) Enum

func (x EntityFlag) Enum() *EntityFlag

func (EntityFlag) EnumDescriptor deprecated

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

Deprecated: Use EntityFlag.Descriptor instead.

func (EntityFlag) Number

func (x EntityFlag) Number() protoreflect.EnumNumber

func (EntityFlag) String

func (x EntityFlag) String() string

func (EntityFlag) Type

type EntityUpdatePose

type EntityUpdatePose struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id of the entity to update.
	EntityId uint32 `protobuf:"varint,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The updated entity pose.
	Pose *Pose `protobuf:"bytes,4,opt,name=pose,proto3" json:"pose,omitempty"`
	// contains filtered or unexported fields
}

EntityUpdatePoseRequest represents a message to update an entity pose in the current session.

func (*EntityUpdatePose) Descriptor deprecated

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

Deprecated: Use EntityUpdatePose.ProtoReflect.Descriptor instead.

func (*EntityUpdatePose) GetEntityId

func (x *EntityUpdatePose) GetEntityId() uint32

func (*EntityUpdatePose) GetPose

func (x *EntityUpdatePose) GetPose() *Pose

func (*EntityUpdatePose) GetTimestamp

func (x *EntityUpdatePose) GetTimestamp() *timestamppb.Timestamp

func (*EntityUpdatePose) GetType

func (x *EntityUpdatePose) GetType() MsgType

func (*EntityUpdatePose) ProtoMessage

func (*EntityUpdatePose) ProtoMessage()

func (*EntityUpdatePose) ProtoReflect

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

func (*EntityUpdatePose) Reset

func (x *EntityUpdatePose) Reset()

func (*EntityUpdatePose) String

func (x *EntityUpdatePose) String() string

type EntityUpdatePoseBroadcast

type EntityUpdatePoseBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The entity id.
	EntityId uint32 `protobuf:"varint,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The updated pose.
	Pose *Pose `protobuf:"bytes,5,opt,name=pose,proto3" json:"pose,omitempty"`
	// contains filtered or unexported fields
}

EntityUpdatePoseBroadcast represents a message that notifies an entity pose update within the current session.

func (*EntityUpdatePoseBroadcast) Descriptor deprecated

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

Deprecated: Use EntityUpdatePoseBroadcast.ProtoReflect.Descriptor instead.

func (*EntityUpdatePoseBroadcast) GetEntityId

func (x *EntityUpdatePoseBroadcast) GetEntityId() uint32

func (*EntityUpdatePoseBroadcast) GetOriginTimestamp

func (x *EntityUpdatePoseBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*EntityUpdatePoseBroadcast) GetPose

func (x *EntityUpdatePoseBroadcast) GetPose() *Pose

func (*EntityUpdatePoseBroadcast) GetTimestamp

func (x *EntityUpdatePoseBroadcast) GetTimestamp() *timestamppb.Timestamp

func (*EntityUpdatePoseBroadcast) GetType

func (x *EntityUpdatePoseBroadcast) GetType() MsgType

func (*EntityUpdatePoseBroadcast) ProtoMessage

func (*EntityUpdatePoseBroadcast) ProtoMessage()

func (*EntityUpdatePoseBroadcast) ProtoReflect

func (*EntityUpdatePoseBroadcast) Reset

func (x *EntityUpdatePoseBroadcast) Reset()

func (*EntityUpdatePoseBroadcast) String

func (x *EntityUpdatePoseBroadcast) String() string

type ErrorCode

type ErrorCode int32

Error represents a request status code given with Hagall responses.

Note that enum values are prefixed because protobuf enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, enum values must be unique within "hagall_proto", not just within "ErrorCode".

const (
	ErrorCode_ERROR_CODE_UNKNOWN                ErrorCode = 0 // copy paste the resason why use prefix.
	ErrorCode_ERROR_CODE_BAD_REQUEST            ErrorCode = 400
	ErrorCode_ERROR_CODE_UNAUTHORIZED           ErrorCode = 401
	ErrorCode_ERROR_CODE_NOT_FOUND              ErrorCode = 404
	ErrorCode_ERROR_CODE_CONFLICT               ErrorCode = 409
	ErrorCode_ERROR_CODE_TOO_LARGE              ErrorCode = 413
	ErrorCode_ERROR_CODE_SESSION_NOT_JOINED     ErrorCode = 460
	ErrorCode_ERROR_CODE_SESSION_ALREADY_JOINED ErrorCode = 461
	ErrorCode_ERROR_CODE_INTERNAL_SERVER_ERROR  ErrorCode = 500
	ErrorCode_ERROR_CODE_NOT_IMPLEMENTED        ErrorCode = 501
	ErrorCode_ERROR_CODE_SERVER_TOO_BUSY        ErrorCode = 503
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type ErrorResponse

type ErrorResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The error code.
	Code ErrorCode `protobuf:"varint,3,opt,name=code,proto3,enum=hagall.ErrorCode" json:"code,omitempty"`
	// contains filtered or unexported fields
}

ErrorResponse represents a message returned when a request error occurs.

func (*ErrorResponse) Descriptor deprecated

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

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetCode

func (x *ErrorResponse) GetCode() ErrorCode

func (*ErrorResponse) GetRequestId

func (x *ErrorResponse) GetRequestId() uint32

func (*ErrorResponse) GetTimestamp

func (x *ErrorResponse) GetTimestamp() *timestamppb.Timestamp

func (*ErrorResponse) GetType

func (x *ErrorResponse) GetType() MsgType

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

type LatencyData added in v0.1.6

type LatencyData struct {

	// The creation timestamp of the latency data
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Minimum latency value
	Min float32 `protobuf:"fixed32,2,opt,name=min,proto3" json:"min,omitempty"`
	// Maximum latency value
	Max float32 `protobuf:"fixed32,3,opt,name=max,proto3" json:"max,omitempty"`
	// Mean (average) latency value
	Mean float32 `protobuf:"fixed32,4,opt,name=mean,proto3" json:"mean,omitempty"`
	// 95th percentile latency value
	P95 float32 `protobuf:"fixed32,5,opt,name=p95,proto3" json:"p95,omitempty"`
	// Last latency value
	Last float32 `protobuf:"fixed32,6,opt,name=last,proto3" json:"last,omitempty"`
	// The number of iteration
	IterationCount uint32 `protobuf:"varint,7,opt,name=iteration_count,json=iterationCount,proto3" json:"iteration_count,omitempty"`
	// A list of request ids used to calculate the latency
	PingRequestIds []uint32 `protobuf:"varint,8,rep,packed,name=ping_request_ids,json=pingRequestIds,proto3" json:"ping_request_ids,omitempty"`
	// Identifier for the session
	SessionId string `protobuf:"bytes,9,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Identifier for the client
	ClientId string `protobuf:"bytes,10,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// Wallet address of the client
	WalletAddress string `protobuf:"bytes,11,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// contains filtered or unexported fields
}

func (*LatencyData) Descriptor deprecated added in v0.1.6

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

Deprecated: Use LatencyData.ProtoReflect.Descriptor instead.

func (*LatencyData) GetClientId added in v0.1.6

func (x *LatencyData) GetClientId() string

func (*LatencyData) GetCreatedAt added in v0.1.6

func (x *LatencyData) GetCreatedAt() *timestamppb.Timestamp

func (*LatencyData) GetIterationCount added in v0.1.6

func (x *LatencyData) GetIterationCount() uint32

func (*LatencyData) GetLast added in v0.1.6

func (x *LatencyData) GetLast() float32

func (*LatencyData) GetMax added in v0.1.6

func (x *LatencyData) GetMax() float32

func (*LatencyData) GetMean added in v0.1.6

func (x *LatencyData) GetMean() float32

func (*LatencyData) GetMin added in v0.1.6

func (x *LatencyData) GetMin() float32

func (*LatencyData) GetP95 added in v0.1.6

func (x *LatencyData) GetP95() float32

func (*LatencyData) GetPingRequestIds added in v0.1.6

func (x *LatencyData) GetPingRequestIds() []uint32

func (*LatencyData) GetSessionId added in v0.1.6

func (x *LatencyData) GetSessionId() string

func (*LatencyData) GetWalletAddress added in v0.1.6

func (x *LatencyData) GetWalletAddress() string

func (*LatencyData) ProtoMessage added in v0.1.6

func (*LatencyData) ProtoMessage()

func (*LatencyData) ProtoReflect added in v0.1.6

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

func (*LatencyData) Reset added in v0.1.6

func (x *LatencyData) Reset()

func (*LatencyData) String added in v0.1.6

func (x *LatencyData) String() string

type Msg

type Msg struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Msg represents a message passed between Hagall and its clients through a WebSocket.

func (*Msg) Descriptor deprecated

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

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetTimestamp

func (x *Msg) GetTimestamp() *timestamppb.Timestamp

func (*Msg) GetType

func (x *Msg) GetType() MsgType

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect

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

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

type MsgType

type MsgType int32

MsgType represents the type of message passed between Hagall and a client.

Note that enum values are prefixed because protobuf enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, enum values must be unique within "hagall_proto", not just within "MsgType".

const (
	MsgType_MSG_TYPE_ERROR_RESPONSE                             MsgType = 0
	MsgType_MSG_TYPE_SYNC_CLOCK                                 MsgType = 1
	MsgType_MSG_TYPE_SESSION_STATE                              MsgType = 2
	MsgType_MSG_TYPE_PARTICIPANT_JOIN_REQUEST                   MsgType = 3
	MsgType_MSG_TYPE_PARTICIPANT_JOIN_RESPONSE                  MsgType = 4
	MsgType_MSG_TYPE_PARTICIPANT_JOIN_BROADCAST                 MsgType = 5
	MsgType_MSG_TYPE_PARTICIPANT_LEAVE_REQUEST                  MsgType = 6
	MsgType_MSG_TYPE_PARTICIPANT_LEAVE_BROADCAST                MsgType = 7
	MsgType_MSG_TYPE_ENTITY_ADD_REQUEST                         MsgType = 8
	MsgType_MSG_TYPE_ENTITY_ADD_RESPONSE                        MsgType = 9
	MsgType_MSG_TYPE_ENTITY_ADD_BROADCAST                       MsgType = 10
	MsgType_MSG_TYPE_ENTITY_DELETE_REQUEST                      MsgType = 11
	MsgType_MSG_TYPE_ENTITY_DELETE_RESPONSE                     MsgType = 12
	MsgType_MSG_TYPE_ENTITY_DELETE_BROADCAST                    MsgType = 13
	MsgType_MSG_TYPE_ENTITY_UPDATE_POSE                         MsgType = 14
	MsgType_MSG_TYPE_ENTITY_UPDATE_POSE_BROADCAST               MsgType = 15
	MsgType_MSG_TYPE_CUSTOM_MESSAGE                             MsgType = 16
	MsgType_MSG_TYPE_CUSTOM_MESSAGE_BROADCAST                   MsgType = 17
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_ADD_REQUEST          MsgType = 18
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_ADD_RESPONSE         MsgType = 19
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_NAME_REQUEST     MsgType = 20
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_NAME_RESPONSE    MsgType = 21
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_ID_REQUEST       MsgType = 22
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_GET_ID_RESPONSE      MsgType = 23
	MsgType_MSG_TYPE_ENTITY_COMPONENT_ADD_REQUEST               MsgType = 24
	MsgType_MSG_TYPE_ENTITY_COMPONENT_ADD_RESPONSE              MsgType = 25
	MsgType_MSG_TYPE_ENTITY_COMPONENT_ADD_BROADCAST             MsgType = 26
	MsgType_MSG_TYPE_ENTITY_COMPONENT_DELETE_REQUEST            MsgType = 27
	MsgType_MSG_TYPE_ENTITY_COMPONENT_DELETE_RESPONSE           MsgType = 28
	MsgType_MSG_TYPE_ENTITY_COMPONENT_DELETE_BROADCAST          MsgType = 29
	MsgType_MSG_TYPE_ENTITY_COMPONENT_UPDATE                    MsgType = 30
	MsgType_MSG_TYPE_ENTITY_COMPONENT_UPDATE_BROADCAST          MsgType = 31
	MsgType_MSG_TYPE_ENTITY_COMPONENT_LIST_REQUEST              MsgType = 32
	MsgType_MSG_TYPE_ENTITY_COMPONENT_LIST_RESPONSE             MsgType = 33
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_SUBSCRIBE_REQUEST    MsgType = 34
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_SUBSCRIBE_RESPONSE   MsgType = 35
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_UNSUBSCRIBE_REQUEST  MsgType = 36
	MsgType_MSG_TYPE_ENTITY_COMPONENT_TYPE_UNSUBSCRIBE_RESPONSE MsgType = 37
	MsgType_MSG_TYPE_PING_REQUEST                               MsgType = 38
	MsgType_MSG_TYPE_PING_RESPONSE                              MsgType = 39
	MsgType_MSG_TYPE_RECEIPT_REQUEST                            MsgType = 40
	MsgType_MSG_TYPE_RECEIPT_RESPONSE                           MsgType = 41
	MsgType_MSG_TYPE_SIGNED_LATENCY_REQUEST                     MsgType = 42
	MsgType_MSG_TYPE_SIGNED_LATENCY_RESPONSE                    MsgType = 43
)

func (MsgType) Descriptor

func (MsgType) Descriptor() protoreflect.EnumDescriptor

func (MsgType) Enum

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor deprecated

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

Deprecated: Use MsgType.Descriptor instead.

func (MsgType) Number

func (x MsgType) Number() protoreflect.EnumNumber

func (MsgType) String

func (x MsgType) String() string

func (MsgType) Type

func (MsgType) Type() protoreflect.EnumType

type Participant

type Participant struct {

	// The participant id.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Participant represents a Hagall client connected from a WebSocket.

func (*Participant) Descriptor deprecated

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

Deprecated: Use Participant.ProtoReflect.Descriptor instead.

func (*Participant) GetId

func (x *Participant) GetId() uint32

func (*Participant) ProtoMessage

func (*Participant) ProtoMessage()

func (*Participant) ProtoReflect

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

func (*Participant) Reset

func (x *Participant) Reset()

func (*Participant) String

func (x *Participant) String() string

type ParticipantJoinBroadcast

type ParticipantJoinBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The id of the participant that joined the current session.
	ParticipantId uint32 `protobuf:"varint,4,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// contains filtered or unexported fields
}

ParticipantJoinBroadcast represents a message that notifies that a participant joined the current session.

func (*ParticipantJoinBroadcast) Descriptor deprecated

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

Deprecated: Use ParticipantJoinBroadcast.ProtoReflect.Descriptor instead.

func (*ParticipantJoinBroadcast) GetOriginTimestamp

func (x *ParticipantJoinBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*ParticipantJoinBroadcast) GetParticipantId

func (x *ParticipantJoinBroadcast) GetParticipantId() uint32

func (*ParticipantJoinBroadcast) GetTimestamp

func (x *ParticipantJoinBroadcast) GetTimestamp() *timestamppb.Timestamp

func (*ParticipantJoinBroadcast) GetType

func (x *ParticipantJoinBroadcast) GetType() MsgType

func (*ParticipantJoinBroadcast) ProtoMessage

func (*ParticipantJoinBroadcast) ProtoMessage()

func (*ParticipantJoinBroadcast) ProtoReflect

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

func (*ParticipantJoinBroadcast) Reset

func (x *ParticipantJoinBroadcast) Reset()

func (*ParticipantJoinBroadcast) String

func (x *ParticipantJoinBroadcast) String() string

type ParticipantJoinRequest

type ParticipantJoinRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The id of the session to join. A new session is joined when this field is
	// left empty.
	SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

ParticipantJoinRequest represents a message for a client to request joining a session.

It returns an error when the request is sent while the participant is already in a session.

func (*ParticipantJoinRequest) Descriptor deprecated

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

Deprecated: Use ParticipantJoinRequest.ProtoReflect.Descriptor instead.

func (*ParticipantJoinRequest) GetRequestId

func (x *ParticipantJoinRequest) GetRequestId() uint32

func (*ParticipantJoinRequest) GetSessionId

func (x *ParticipantJoinRequest) GetSessionId() string

func (*ParticipantJoinRequest) GetTimestamp

func (x *ParticipantJoinRequest) GetTimestamp() *timestamppb.Timestamp

func (*ParticipantJoinRequest) GetType

func (x *ParticipantJoinRequest) GetType() MsgType

func (*ParticipantJoinRequest) ProtoMessage

func (*ParticipantJoinRequest) ProtoMessage()

func (*ParticipantJoinRequest) ProtoReflect

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

func (*ParticipantJoinRequest) Reset

func (x *ParticipantJoinRequest) Reset()

func (*ParticipantJoinRequest) String

func (x *ParticipantJoinRequest) String() string

type ParticipantJoinResponse

type ParticipantJoinResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The id of the joined session.
	SessionId string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// The participant id given to the requester.
	ParticipantId uint32 `protobuf:"varint,4,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// The UUID of the session
	SessionUuid string `protobuf:"bytes,5,opt,name=session_uuid,json=sessionUuid,proto3" json:"session_uuid,omitempty"`
	// contains filtered or unexported fields
}

ParticipantJoinResponse represents a message returned in response to a participant join request.

func (*ParticipantJoinResponse) Descriptor deprecated

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

Deprecated: Use ParticipantJoinResponse.ProtoReflect.Descriptor instead.

func (*ParticipantJoinResponse) GetParticipantId

func (x *ParticipantJoinResponse) GetParticipantId() uint32

func (*ParticipantJoinResponse) GetRequestId

func (x *ParticipantJoinResponse) GetRequestId() uint32

func (*ParticipantJoinResponse) GetSessionId

func (x *ParticipantJoinResponse) GetSessionId() string

func (*ParticipantJoinResponse) GetSessionUuid

func (x *ParticipantJoinResponse) GetSessionUuid() string

func (*ParticipantJoinResponse) GetTimestamp

func (x *ParticipantJoinResponse) GetTimestamp() *timestamppb.Timestamp

func (*ParticipantJoinResponse) GetType

func (x *ParticipantJoinResponse) GetType() MsgType

func (*ParticipantJoinResponse) ProtoMessage

func (*ParticipantJoinResponse) ProtoMessage()

func (*ParticipantJoinResponse) ProtoReflect

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

func (*ParticipantJoinResponse) Reset

func (x *ParticipantJoinResponse) Reset()

func (*ParticipantJoinResponse) String

func (x *ParticipantJoinResponse) String() string

type ParticipantLeaveBroadcast

type ParticipantLeaveBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The timestamp of the request that triggered the broadcast.
	OriginTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=origin_timestamp,json=originTimestamp,proto3" json:"origin_timestamp,omitempty"`
	// The id of the participant that left the session.
	ParticipantId uint32 `protobuf:"varint,4,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// contains filtered or unexported fields
}

ParticipantLeaveRequest represents a message that notifies that a participant left the current session.

func (*ParticipantLeaveBroadcast) Descriptor deprecated

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

Deprecated: Use ParticipantLeaveBroadcast.ProtoReflect.Descriptor instead.

func (*ParticipantLeaveBroadcast) GetOriginTimestamp

func (x *ParticipantLeaveBroadcast) GetOriginTimestamp() *timestamppb.Timestamp

func (*ParticipantLeaveBroadcast) GetParticipantId

func (x *ParticipantLeaveBroadcast) GetParticipantId() uint32

func (*ParticipantLeaveBroadcast) GetTimestamp

func (x *ParticipantLeaveBroadcast) GetTimestamp() *timestamppb.Timestamp

func (*ParticipantLeaveBroadcast) GetType

func (x *ParticipantLeaveBroadcast) GetType() MsgType

func (*ParticipantLeaveBroadcast) ProtoMessage

func (*ParticipantLeaveBroadcast) ProtoMessage()

func (*ParticipantLeaveBroadcast) ProtoReflect

func (*ParticipantLeaveBroadcast) Reset

func (x *ParticipantLeaveBroadcast) Reset()

func (*ParticipantLeaveBroadcast) String

func (x *ParticipantLeaveBroadcast) String() string

type ParticipantLeaveRequest

type ParticipantLeaveRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

ParticipantLeaveRequest represents a message for a client to leave the current session.

func (*ParticipantLeaveRequest) Descriptor deprecated

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

Deprecated: Use ParticipantLeaveRequest.ProtoReflect.Descriptor instead.

func (*ParticipantLeaveRequest) GetRequestId

func (x *ParticipantLeaveRequest) GetRequestId() uint32

func (*ParticipantLeaveRequest) GetTimestamp

func (x *ParticipantLeaveRequest) GetTimestamp() *timestamppb.Timestamp

func (*ParticipantLeaveRequest) GetType

func (x *ParticipantLeaveRequest) GetType() MsgType

func (*ParticipantLeaveRequest) ProtoMessage

func (*ParticipantLeaveRequest) ProtoMessage()

func (*ParticipantLeaveRequest) ProtoReflect

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

func (*ParticipantLeaveRequest) Reset

func (x *ParticipantLeaveRequest) Reset()

func (*ParticipantLeaveRequest) String

func (x *ParticipantLeaveRequest) String() string

type Pose

type Pose struct {
	Px float32 `protobuf:"fixed32,1,opt,name=px,proto3" json:"px,omitempty"`
	Py float32 `protobuf:"fixed32,2,opt,name=py,proto3" json:"py,omitempty"`
	Pz float32 `protobuf:"fixed32,3,opt,name=pz,proto3" json:"pz,omitempty"`
	Rx float32 `protobuf:"fixed32,4,opt,name=rx,proto3" json:"rx,omitempty"`
	Ry float32 `protobuf:"fixed32,5,opt,name=ry,proto3" json:"ry,omitempty"`
	Rz float32 `protobuf:"fixed32,6,opt,name=rz,proto3" json:"rz,omitempty"`
	Rw float32 `protobuf:"fixed32,7,opt,name=rw,proto3" json:"rw,omitempty"`
	// contains filtered or unexported fields
}

Pose represents a position within a session.

func (*Pose) Descriptor deprecated

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

Deprecated: Use Pose.ProtoReflect.Descriptor instead.

func (*Pose) GetPx

func (x *Pose) GetPx() float32

func (*Pose) GetPy

func (x *Pose) GetPy() float32

func (*Pose) GetPz

func (x *Pose) GetPz() float32

func (*Pose) GetRw

func (x *Pose) GetRw() float32

func (*Pose) GetRx

func (x *Pose) GetRx() float32

func (*Pose) GetRy

func (x *Pose) GetRy() float32

func (*Pose) GetRz

func (x *Pose) GetRz() float32

func (*Pose) ProtoMessage

func (*Pose) ProtoMessage()

func (*Pose) ProtoReflect

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

func (*Pose) Reset

func (x *Pose) Reset()

func (*Pose) String

func (x *Pose) String() string

type ReceiptRequest

type ReceiptRequest struct {

	// The type of the message
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// proof of work receipt, serialized to json string
	Receipt string `protobuf:"bytes,3,opt,name=receipt,proto3" json:"receipt,omitempty"`
	// hash of the receipt
	Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	// signature of the receipt, signed by App's private ECDSA key
	Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

ReceiptRequest represents a message sent by the SDK to the Hagall containing proof of work receipt, with hash and signature to be passed on to NetworkCreditService

func (*ReceiptRequest) Descriptor deprecated

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

Deprecated: Use ReceiptRequest.ProtoReflect.Descriptor instead.

func (*ReceiptRequest) GetHash

func (x *ReceiptRequest) GetHash() []byte

func (*ReceiptRequest) GetReceipt

func (x *ReceiptRequest) GetReceipt() string

func (*ReceiptRequest) GetRequestId

func (x *ReceiptRequest) GetRequestId() uint32

func (*ReceiptRequest) GetSignature

func (x *ReceiptRequest) GetSignature() []byte

func (*ReceiptRequest) GetTimestamp

func (x *ReceiptRequest) GetTimestamp() *timestamppb.Timestamp

func (*ReceiptRequest) GetType

func (x *ReceiptRequest) GetType() MsgType

func (*ReceiptRequest) ProtoMessage

func (*ReceiptRequest) ProtoMessage()

func (*ReceiptRequest) ProtoReflect

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

func (*ReceiptRequest) Reset

func (x *ReceiptRequest) Reset()

func (*ReceiptRequest) String

func (x *ReceiptRequest) String() string

type ReceiptResponse

type ReceiptResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

ReceiptResponse represents a message returned in response to a receipt request

func (*ReceiptResponse) Descriptor deprecated

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

Deprecated: Use ReceiptResponse.ProtoReflect.Descriptor instead.

func (*ReceiptResponse) GetRequestId

func (x *ReceiptResponse) GetRequestId() uint32

func (*ReceiptResponse) GetTimestamp

func (x *ReceiptResponse) GetTimestamp() *timestamppb.Timestamp

func (*ReceiptResponse) GetType

func (x *ReceiptResponse) GetType() MsgType

func (*ReceiptResponse) ProtoMessage

func (*ReceiptResponse) ProtoMessage()

func (*ReceiptResponse) ProtoReflect

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

func (*ReceiptResponse) Reset

func (x *ReceiptResponse) Reset()

func (*ReceiptResponse) String

func (x *ReceiptResponse) String() string

type Request

type Request struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Request represents a client request.

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetRequestId

func (x *Request) GetRequestId() uint32

func (*Request) GetTimestamp

func (x *Request) GetTimestamp() *timestamppb.Timestamp

func (*Request) GetType

func (x *Request) GetType() MsgType

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 Response

type Response struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Response represents a message returned in response to a request.

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetRequestId

func (x *Response) GetRequestId() uint32

func (*Response) GetTimestamp

func (x *Response) GetTimestamp() *timestamppb.Timestamp

func (*Response) GetType

func (x *Response) GetType() MsgType

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 SessionState

type SessionState struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The participants that joined the session.
	Participants []*Participant `protobuf:"bytes,3,rep,name=participants,proto3" json:"participants,omitempty"`
	// The entities present in the session.
	Entities []*Entity `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"`
	// The entity components present in the session.
	EntityComponents []*EntityComponent `protobuf:"bytes,5,rep,name=entity_components,json=entityComponents,proto3" json:"entity_components,omitempty"`
	// contains filtered or unexported fields
}

SessionState represents a session state.

func (*SessionState) Descriptor deprecated

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

Deprecated: Use SessionState.ProtoReflect.Descriptor instead.

func (*SessionState) GetEntities

func (x *SessionState) GetEntities() []*Entity

func (*SessionState) GetEntityComponents

func (x *SessionState) GetEntityComponents() []*EntityComponent

func (*SessionState) GetParticipants

func (x *SessionState) GetParticipants() []*Participant

func (*SessionState) GetTimestamp

func (x *SessionState) GetTimestamp() *timestamppb.Timestamp

func (*SessionState) GetType

func (x *SessionState) GetType() MsgType

func (*SessionState) ProtoMessage

func (*SessionState) ProtoMessage()

func (*SessionState) ProtoReflect

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

func (*SessionState) Reset

func (x *SessionState) Reset()

func (*SessionState) String

func (x *SessionState) String() string

type SignedLatencyRequest added in v0.1.6

type SignedLatencyRequest struct {

	// The type of the message
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The number of iteration
	IterationCount uint32 `protobuf:"varint,3,opt,name=iteration_count,json=iterationCount,proto3" json:"iteration_count,omitempty"`
	// The wallet address
	WalletAddress string `protobuf:"bytes,4,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedLatencyRequest) Descriptor deprecated added in v0.1.6

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

Deprecated: Use SignedLatencyRequest.ProtoReflect.Descriptor instead.

func (*SignedLatencyRequest) GetIterationCount added in v0.1.6

func (x *SignedLatencyRequest) GetIterationCount() uint32

func (*SignedLatencyRequest) GetRequestId added in v0.1.6

func (x *SignedLatencyRequest) GetRequestId() uint32

func (*SignedLatencyRequest) GetTimestamp added in v0.1.6

func (x *SignedLatencyRequest) GetTimestamp() *timestamppb.Timestamp

func (*SignedLatencyRequest) GetType added in v0.1.6

func (x *SignedLatencyRequest) GetType() MsgType

func (*SignedLatencyRequest) GetWalletAddress added in v0.1.6

func (x *SignedLatencyRequest) GetWalletAddress() string

func (*SignedLatencyRequest) ProtoMessage added in v0.1.6

func (*SignedLatencyRequest) ProtoMessage()

func (*SignedLatencyRequest) ProtoReflect added in v0.1.6

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

func (*SignedLatencyRequest) Reset added in v0.1.6

func (x *SignedLatencyRequest) Reset()

func (*SignedLatencyRequest) String added in v0.1.6

func (x *SignedLatencyRequest) String() string

type SignedLatencyResponse added in v0.1.6

type SignedLatencyResponse struct {

	// The type of the message
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The id that identifies a request.
	RequestId uint32 `protobuf:"varint,1337,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// The latency metrics
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // LatencyData
	// Signature of the binary in the data field
	Signature string `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*SignedLatencyResponse) Descriptor deprecated added in v0.1.6

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

Deprecated: Use SignedLatencyResponse.ProtoReflect.Descriptor instead.

func (*SignedLatencyResponse) GetData added in v0.1.6

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

func (*SignedLatencyResponse) GetRequestId added in v0.1.6

func (x *SignedLatencyResponse) GetRequestId() uint32

func (*SignedLatencyResponse) GetSignature added in v0.1.6

func (x *SignedLatencyResponse) GetSignature() string

func (*SignedLatencyResponse) GetTimestamp added in v0.1.6

func (x *SignedLatencyResponse) GetTimestamp() *timestamppb.Timestamp

func (*SignedLatencyResponse) GetType added in v0.1.6

func (x *SignedLatencyResponse) GetType() MsgType

func (*SignedLatencyResponse) ProtoMessage added in v0.1.6

func (*SignedLatencyResponse) ProtoMessage()

func (*SignedLatencyResponse) ProtoReflect added in v0.1.6

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

func (*SignedLatencyResponse) Reset added in v0.1.6

func (x *SignedLatencyResponse) Reset()

func (*SignedLatencyResponse) String added in v0.1.6

func (x *SignedLatencyResponse) String() string

type SyncClock

type SyncClock struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=hagall.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

SyncClock represents a message periodically sent by a Hagall server to ping a client.

func (*SyncClock) Descriptor deprecated

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

Deprecated: Use SyncClock.ProtoReflect.Descriptor instead.

func (*SyncClock) GetTimestamp

func (x *SyncClock) GetTimestamp() *timestamppb.Timestamp

func (*SyncClock) GetType

func (x *SyncClock) GetType() MsgType

func (*SyncClock) ProtoMessage

func (*SyncClock) ProtoMessage()

func (*SyncClock) ProtoReflect

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

func (*SyncClock) Reset

func (x *SyncClock) Reset()

func (*SyncClock) String

func (x *SyncClock) String() string

Jump to

Keyboard shortcuts

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