odalpb

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgType_name = map[int32]string{
		0:   "MSG_TYPE_ERROR_RESPONSE",
		200: "MSG_TYPE_ODAL_STATE",
		201: "MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_REQUEST",
		202: "MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_RESPONSE",
		203: "MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_BROADCAST",
	}
	MsgType_value = map[string]int32{
		"MSG_TYPE_ERROR_RESPONSE":                    0,
		"MSG_TYPE_ODAL_STATE":                        200,
		"MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_REQUEST":   201,
		"MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_RESPONSE":  202,
		"MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_BROADCAST": 203,
	}
)

Enum value maps for MsgType.

View Source
var File_messages_odalpb_odal_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AssetInstance

type AssetInstance struct {

	// The asset instance id.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The asset id.
	AssetId string `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// The id of the participant that owns the asset instance.
	ParticipantId uint32 `protobuf:"varint,3,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"`
	// The entity id.
	EntityId uint32 `protobuf:"varint,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// contains filtered or unexported fields
}

An instance of an asset bound by a participant and tied to an entity created together with the asset instance.

func (*AssetInstance) Descriptor deprecated

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

Deprecated: Use AssetInstance.ProtoReflect.Descriptor instead.

func (*AssetInstance) GetAssetId

func (x *AssetInstance) GetAssetId() string

func (*AssetInstance) GetEntityId

func (x *AssetInstance) GetEntityId() uint32

func (*AssetInstance) GetId

func (x *AssetInstance) GetId() uint32

func (*AssetInstance) GetParticipantId

func (x *AssetInstance) GetParticipantId() uint32

func (*AssetInstance) ProtoMessage

func (*AssetInstance) ProtoMessage()

func (*AssetInstance) ProtoReflect

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

func (*AssetInstance) Reset

func (x *AssetInstance) Reset()

func (*AssetInstance) String

func (x *AssetInstance) String() string

type AssetInstanceAddBroadcast

type AssetInstanceAddBroadcast struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=odal.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 added asset instance.
	AssetInstance *AssetInstance `protobuf:"bytes,4,opt,name=asset_instance,json=assetInstance,proto3" json:"asset_instance,omitempty"`
	// contains filtered or unexported fields
}

AssetInstanceAddBroadcast is a message that notifies that an asset instance has been added.

func (*AssetInstanceAddBroadcast) Descriptor deprecated

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

Deprecated: Use AssetInstanceAddBroadcast.ProtoReflect.Descriptor instead.

func (*AssetInstanceAddBroadcast) GetAssetInstance

func (x *AssetInstanceAddBroadcast) GetAssetInstance() *AssetInstance

func (*AssetInstanceAddBroadcast) GetOriginTimestamp

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

func (*AssetInstanceAddBroadcast) GetTimestamp

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

func (*AssetInstanceAddBroadcast) GetType

func (x *AssetInstanceAddBroadcast) GetType() MsgType

func (*AssetInstanceAddBroadcast) ProtoMessage

func (*AssetInstanceAddBroadcast) ProtoMessage()

func (*AssetInstanceAddBroadcast) ProtoReflect

func (*AssetInstanceAddBroadcast) Reset

func (x *AssetInstanceAddBroadcast) Reset()

func (*AssetInstanceAddBroadcast) String

func (x *AssetInstanceAddBroadcast) String() string

type AssetInstanceAddRequest

type AssetInstanceAddRequest struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=odal.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 entity to associate with the asset.
	EntityId uint32 `protobuf:"varint,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	// The asset id.
	AssetId string `protobuf:"bytes,4,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// contains filtered or unexported fields
}

AssetInstanceAddRequest represents a message to add an asset instance to the current session.

func (*AssetInstanceAddRequest) Descriptor deprecated

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

Deprecated: Use AssetInstanceAddRequest.ProtoReflect.Descriptor instead.

func (*AssetInstanceAddRequest) GetAssetId

func (x *AssetInstanceAddRequest) GetAssetId() string

func (*AssetInstanceAddRequest) GetEntityId

func (x *AssetInstanceAddRequest) GetEntityId() uint32

func (*AssetInstanceAddRequest) GetRequestId

func (x *AssetInstanceAddRequest) GetRequestId() uint32

func (*AssetInstanceAddRequest) GetTimestamp

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

func (*AssetInstanceAddRequest) GetType

func (x *AssetInstanceAddRequest) GetType() MsgType

func (*AssetInstanceAddRequest) ProtoMessage

func (*AssetInstanceAddRequest) ProtoMessage()

func (*AssetInstanceAddRequest) ProtoReflect

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

func (*AssetInstanceAddRequest) Reset

func (x *AssetInstanceAddRequest) Reset()

func (*AssetInstanceAddRequest) String

func (x *AssetInstanceAddRequest) String() string

type AssetInstanceAddResponse

type AssetInstanceAddResponse struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=odal.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 attributed id to the added asset instance.
	AssetInstanceId uint32 `protobuf:"varint,3,opt,name=asset_instance_id,json=assetInstanceId,proto3" json:"asset_instance_id,omitempty"`
	// contains filtered or unexported fields
}

AssetInstanceAddResponse is a message returned in response to an add asset instance request.

func (*AssetInstanceAddResponse) Descriptor deprecated

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

Deprecated: Use AssetInstanceAddResponse.ProtoReflect.Descriptor instead.

func (*AssetInstanceAddResponse) GetAssetInstanceId

func (x *AssetInstanceAddResponse) GetAssetInstanceId() uint32

func (*AssetInstanceAddResponse) GetRequestId

func (x *AssetInstanceAddResponse) GetRequestId() uint32

func (*AssetInstanceAddResponse) GetTimestamp

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

func (*AssetInstanceAddResponse) GetType

func (x *AssetInstanceAddResponse) GetType() MsgType

func (*AssetInstanceAddResponse) ProtoMessage

func (*AssetInstanceAddResponse) ProtoMessage()

func (*AssetInstanceAddResponse) ProtoReflect

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

func (*AssetInstanceAddResponse) Reset

func (x *AssetInstanceAddResponse) Reset()

func (*AssetInstanceAddResponse) String

func (x *AssetInstanceAddResponse) String() string

type MsgType

type MsgType int32
const (
	MsgType_MSG_TYPE_ERROR_RESPONSE                    MsgType = 0
	MsgType_MSG_TYPE_ODAL_STATE                        MsgType = 200
	MsgType_MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_REQUEST   MsgType = 201
	MsgType_MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_RESPONSE  MsgType = 202
	MsgType_MSG_TYPE_ODAL_ASSET_INSTANCE_ADD_BROADCAST MsgType = 203
)

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 State

type State struct {

	// The type of the message.
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=odal.MsgType" json:"type,omitempty"`
	// The time the message is sent.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The assetInstances present in the session.
	AssetInstances []*AssetInstance `protobuf:"bytes,3,rep,name=asset_instances,json=assetInstances,proto3" json:"asset_instances,omitempty"`
	// contains filtered or unexported fields
}

State represents a odal state within a session.

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetAssetInstances

func (x *State) GetAssetInstances() []*AssetInstance

func (*State) GetTimestamp

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

func (*State) GetType

func (x *State) GetType() MsgType

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

Jump to

Keyboard shortcuts

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