antha_quantstudio_v1

package
v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package antha_quantstudio_v1 is a generated protocol buffer package.

It is generated from these files:

github.com/antha-lang/antha/driver/antha_quantstudio_v1/quantstudio.proto

It has these top-level messages:

Blank
SessionOrError
ExperimentFile
Barcode
BlockTypeOrError
Error
OptionalError
StatusOrError
ExperimentRequest
TemplatedRequest
BoolOrError
Session
Instrument
SessionInstrument
Credentials

Index

Constants

This section is empty.

Variables

View Source
var BlockType_name = map[int32]string{
	0:  "ERROR",
	7:  "ARRAY_CARD_SAMPLE",
	8:  "WELL_384_20uL",
	9:  "WELL_96_100uL",
	10: "WELL_96_200uL",
}
View Source
var BlockType_value = map[string]int32{
	"ERROR":             0,
	"ARRAY_CARD_SAMPLE": 7,
	"WELL_384_20uL":     8,
	"WELL_96_100uL":     9,
	"WELL_96_200uL":     10,
}
View Source
var ErrorCode_name = map[int32]string{
	0:  "UNINITIALIZED",
	1:  "SESSION_INVALID",
	2:  "SESSION_EXISTING",
	3:  "AUTHENTICATION_FAILURE",
	4:  "USER_ACCOUNT_DISABLED",
	5:  "PASSWORD_EXPIRED",
	6:  "INSTRUMENT_UNKNOWN",
	7:  "INSTRUMENT_NOT_CONNECTED",
	8:  "INSTRUMENT_READY",
	9:  "INSTRUMENT_RUNNING",
	10: "INSTRUMENT_PAUSED",
	11: "INSTRUMENT_IN_ERROR",
	12: "INSTRUMENT_FAIL_TO_START",
	13: "INSTRUMENT_TRAY_OPENED",
	14: "INSTRUMENT_TRAY_CLOSED",
	15: "EXPERIMENT_NOT_FOUND",
	16: "EXPERIMENT_READ_ERROR",
	17: "EXPERIMENT_WRITE_ERROR",
	18: "EXPERIMENT_VALIDATION_ERROR",
}
View Source
var ErrorCode_value = map[string]int32{
	"UNINITIALIZED":               0,
	"SESSION_INVALID":             1,
	"SESSION_EXISTING":            2,
	"AUTHENTICATION_FAILURE":      3,
	"USER_ACCOUNT_DISABLED":       4,
	"PASSWORD_EXPIRED":            5,
	"INSTRUMENT_UNKNOWN":          6,
	"INSTRUMENT_NOT_CONNECTED":    7,
	"INSTRUMENT_READY":            8,
	"INSTRUMENT_RUNNING":          9,
	"INSTRUMENT_PAUSED":           10,
	"INSTRUMENT_IN_ERROR":         11,
	"INSTRUMENT_FAIL_TO_START":    12,
	"INSTRUMENT_TRAY_OPENED":      13,
	"INSTRUMENT_TRAY_CLOSED":      14,
	"EXPERIMENT_NOT_FOUND":        15,
	"EXPERIMENT_READ_ERROR":       16,
	"EXPERIMENT_WRITE_ERROR":      17,
	"EXPERIMENT_VALIDATION_ERROR": 18,
}

Functions

func RegisterQuantStudioServiceServer

func RegisterQuantStudioServiceServer(s *grpc.Server, srv QuantStudioServiceServer)

Types

type Barcode

type Barcode struct {
	Barcode string `protobuf:"bytes,1,opt,name=barcode" json:"barcode,omitempty"`
}

func (*Barcode) Descriptor

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

func (*Barcode) GetBarcode

func (m *Barcode) GetBarcode() string

func (*Barcode) ProtoMessage

func (*Barcode) ProtoMessage()

func (*Barcode) Reset

func (m *Barcode) Reset()

func (*Barcode) String

func (m *Barcode) String() string

type Blank

type Blank struct {
}

func (*Blank) Descriptor

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

func (*Blank) ProtoMessage

func (*Blank) ProtoMessage()

func (*Blank) Reset

func (m *Blank) Reset()

func (*Blank) String

func (m *Blank) String() string

type BlockType

type BlockType int32
const (
	BlockType_ERROR             BlockType = 0
	BlockType_ARRAY_CARD_SAMPLE BlockType = 7
	BlockType_WELL_384_20uL     BlockType = 8
	BlockType_WELL_96_100uL     BlockType = 9
	BlockType_WELL_96_200uL     BlockType = 10
)

func (BlockType) EnumDescriptor

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

func (BlockType) String

func (x BlockType) String() string

type BlockTypeOrError

type BlockTypeOrError struct {
	// Types that are valid to be assigned to MaybeBlockType:
	//	*BlockTypeOrError_BlockType
	//	*BlockTypeOrError_Error
	MaybeBlockType isBlockTypeOrError_MaybeBlockType `protobuf_oneof:"maybe_block_type"`
}

func (*BlockTypeOrError) Descriptor

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

func (*BlockTypeOrError) GetBlockType

func (m *BlockTypeOrError) GetBlockType() BlockType

func (*BlockTypeOrError) GetError

func (m *BlockTypeOrError) GetError() *Error

func (*BlockTypeOrError) GetMaybeBlockType

func (m *BlockTypeOrError) GetMaybeBlockType() isBlockTypeOrError_MaybeBlockType

func (*BlockTypeOrError) ProtoMessage

func (*BlockTypeOrError) ProtoMessage()

func (*BlockTypeOrError) Reset

func (m *BlockTypeOrError) Reset()

func (*BlockTypeOrError) String

func (m *BlockTypeOrError) String() string

func (*BlockTypeOrError) XXX_OneofFuncs

func (*BlockTypeOrError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BlockTypeOrError_BlockType

type BlockTypeOrError_BlockType struct {
	BlockType BlockType `protobuf:"varint,1,opt,name=block_type,json=blockType,enum=antha.quantstudio.v1.BlockType,oneof"`
}

type BlockTypeOrError_Error

type BlockTypeOrError_Error struct {
	Error *Error `protobuf:"bytes,2,opt,name=error,oneof"`
}

type BoolOrError

type BoolOrError struct {
	// Types that are valid to be assigned to MaybeBool:
	//	*BoolOrError_Result
	//	*BoolOrError_Error
	MaybeBool isBoolOrError_MaybeBool `protobuf_oneof:"maybe_bool"`
}

func (*BoolOrError) Descriptor

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

func (*BoolOrError) GetError

func (m *BoolOrError) GetError() ErrorCode

func (*BoolOrError) GetMaybeBool

func (m *BoolOrError) GetMaybeBool() isBoolOrError_MaybeBool

func (*BoolOrError) GetResult

func (m *BoolOrError) GetResult() bool

func (*BoolOrError) ProtoMessage

func (*BoolOrError) ProtoMessage()

func (*BoolOrError) Reset

func (m *BoolOrError) Reset()

func (*BoolOrError) String

func (m *BoolOrError) String() string

func (*BoolOrError) XXX_OneofFuncs

func (*BoolOrError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type BoolOrError_Error

type BoolOrError_Error struct {
	Error ErrorCode `protobuf:"varint,2,opt,name=error,enum=antha.quantstudio.v1.ErrorCode,oneof"`
}

type BoolOrError_Result

type BoolOrError_Result struct {
	Result bool `protobuf:"varint,1,opt,name=result,oneof"`
}

type Credentials

type Credentials struct {
	User     string `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
}

func (*Credentials) Descriptor

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

func (*Credentials) GetPassword

func (m *Credentials) GetPassword() string

func (*Credentials) GetUser

func (m *Credentials) GetUser() string

func (*Credentials) ProtoMessage

func (*Credentials) ProtoMessage()

func (*Credentials) Reset

func (m *Credentials) Reset()

func (*Credentials) String

func (m *Credentials) String() string

type Error

type Error struct {
	Code ErrorCode `protobuf:"varint,1,opt,name=code,enum=antha.quantstudio.v1.ErrorCode" json:"code,omitempty"`
}

func (*Error) Descriptor

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

func (*Error) GetCode

func (m *Error) GetCode() ErrorCode

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_UNINITIALIZED               ErrorCode = 0
	ErrorCode_SESSION_INVALID             ErrorCode = 1
	ErrorCode_SESSION_EXISTING            ErrorCode = 2
	ErrorCode_AUTHENTICATION_FAILURE      ErrorCode = 3
	ErrorCode_USER_ACCOUNT_DISABLED       ErrorCode = 4
	ErrorCode_PASSWORD_EXPIRED            ErrorCode = 5
	ErrorCode_INSTRUMENT_UNKNOWN          ErrorCode = 6
	ErrorCode_INSTRUMENT_NOT_CONNECTED    ErrorCode = 7
	ErrorCode_INSTRUMENT_READY            ErrorCode = 8
	ErrorCode_INSTRUMENT_RUNNING          ErrorCode = 9
	ErrorCode_INSTRUMENT_PAUSED           ErrorCode = 10
	ErrorCode_INSTRUMENT_IN_ERROR         ErrorCode = 11
	ErrorCode_INSTRUMENT_FAIL_TO_START    ErrorCode = 12
	ErrorCode_INSTRUMENT_TRAY_OPENED      ErrorCode = 13
	ErrorCode_INSTRUMENT_TRAY_CLOSED      ErrorCode = 14
	ErrorCode_EXPERIMENT_NOT_FOUND        ErrorCode = 15
	ErrorCode_EXPERIMENT_READ_ERROR       ErrorCode = 16
	ErrorCode_EXPERIMENT_WRITE_ERROR      ErrorCode = 17
	ErrorCode_EXPERIMENT_VALIDATION_ERROR ErrorCode = 18
)

func (ErrorCode) EnumDescriptor

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

func (ErrorCode) String

func (x ErrorCode) String() string

type ExperimentFile

type ExperimentFile struct {
	Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
}

func (*ExperimentFile) Descriptor

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

func (*ExperimentFile) GetUrl

func (m *ExperimentFile) GetUrl() string

func (*ExperimentFile) ProtoMessage

func (*ExperimentFile) ProtoMessage()

func (*ExperimentFile) Reset

func (m *ExperimentFile) Reset()

func (*ExperimentFile) String

func (m *ExperimentFile) String() string

type ExperimentRequest

type ExperimentRequest struct {
	SessionInstrument *SessionInstrument `protobuf:"bytes,1,opt,name=session_instrument,json=sessionInstrument" json:"session_instrument,omitempty"`
	ExperimentFile    *ExperimentFile    `protobuf:"bytes,2,opt,name=experiment_file,json=experimentFile" json:"experiment_file,omitempty"`
	Barcode           *Barcode           `protobuf:"bytes,3,opt,name=barcode" json:"barcode,omitempty"`
}

func (*ExperimentRequest) Descriptor

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

func (*ExperimentRequest) GetBarcode

func (m *ExperimentRequest) GetBarcode() *Barcode

func (*ExperimentRequest) GetExperimentFile

func (m *ExperimentRequest) GetExperimentFile() *ExperimentFile

func (*ExperimentRequest) GetSessionInstrument

func (m *ExperimentRequest) GetSessionInstrument() *SessionInstrument

func (*ExperimentRequest) ProtoMessage

func (*ExperimentRequest) ProtoMessage()

func (*ExperimentRequest) Reset

func (m *ExperimentRequest) Reset()

func (*ExperimentRequest) String

func (m *ExperimentRequest) String() string

type Instrument

type Instrument struct {
	Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
}

func (*Instrument) Descriptor

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

func (*Instrument) GetId

func (m *Instrument) GetId() string

func (*Instrument) ProtoMessage

func (*Instrument) ProtoMessage()

func (*Instrument) Reset

func (m *Instrument) Reset()

func (*Instrument) String

func (m *Instrument) String() string

type OptionalError

type OptionalError struct {
	// Types that are valid to be assigned to MaybeError:
	//	*OptionalError_Blank
	//	*OptionalError_Error
	MaybeError isOptionalError_MaybeError `protobuf_oneof:"maybe_error"`
}

func (*OptionalError) Descriptor

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

func (*OptionalError) GetBlank

func (m *OptionalError) GetBlank() *Blank

func (*OptionalError) GetError

func (m *OptionalError) GetError() ErrorCode

func (*OptionalError) GetMaybeError

func (m *OptionalError) GetMaybeError() isOptionalError_MaybeError

func (*OptionalError) ProtoMessage

func (*OptionalError) ProtoMessage()

func (*OptionalError) Reset

func (m *OptionalError) Reset()

func (*OptionalError) String

func (m *OptionalError) String() string

func (*OptionalError) XXX_OneofFuncs

func (*OptionalError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type OptionalError_Blank

type OptionalError_Blank struct {
	Blank *Blank `protobuf:"bytes,1,opt,name=blank,oneof"`
}

type OptionalError_Error

type OptionalError_Error struct {
	Error ErrorCode `protobuf:"varint,2,opt,name=error,enum=antha.quantstudio.v1.ErrorCode,oneof"`
}

type QuantStudioServiceClient

type QuantStudioServiceClient interface {
	// Base QS API
	RunExperiment(ctx context.Context, in *ExperimentRequest, opts ...grpc.CallOption) (*OptionalError, error)
	RunExperimentFromTemplate(ctx context.Context, in *TemplatedRequest, opts ...grpc.CallOption) (*OptionalError, error)
	RunExperimentNonblocking(ctx context.Context, in *ExperimentRequest, opts ...grpc.CallOption) (*OptionalError, error)
	RunExperimentFromTemplateNonblocking(ctx context.Context, in *TemplatedRequest, opts ...grpc.CallOption) (*OptionalError, error)
	OpenTray(ctx context.Context, in *SessionInstrument, opts ...grpc.CallOption) (*OptionalError, error)
	CloseTray(ctx context.Context, in *SessionInstrument, opts ...grpc.CallOption) (*OptionalError, error)
	IsTrayIn(ctx context.Context, in *SessionInstrument, opts ...grpc.CallOption) (*BoolOrError, error)
	StartSession(ctx context.Context, in *Credentials, opts ...grpc.CallOption) (*SessionOrError, error)
	EndSession(ctx context.Context, in *Session, opts ...grpc.CallOption) (*OptionalError, error)
	GetBlockType(ctx context.Context, in *SessionInstrument, opts ...grpc.CallOption) (*BlockTypeOrError, error)
	GetInstrumentState(ctx context.Context, in *SessionInstrument, opts ...grpc.CallOption) (*StatusOrError, error)
	StopCurrentExperiment(ctx context.Context, in *SessionInstrument, opts ...grpc.CallOption) (*OptionalError, error)
}

func NewQuantStudioServiceClient

func NewQuantStudioServiceClient(cc *grpc.ClientConn) QuantStudioServiceClient

type QuantStudioServiceServer

type QuantStudioServiceServer interface {
	// Base QS API
	RunExperiment(context.Context, *ExperimentRequest) (*OptionalError, error)
	RunExperimentFromTemplate(context.Context, *TemplatedRequest) (*OptionalError, error)
	RunExperimentNonblocking(context.Context, *ExperimentRequest) (*OptionalError, error)
	RunExperimentFromTemplateNonblocking(context.Context, *TemplatedRequest) (*OptionalError, error)
	OpenTray(context.Context, *SessionInstrument) (*OptionalError, error)
	CloseTray(context.Context, *SessionInstrument) (*OptionalError, error)
	IsTrayIn(context.Context, *SessionInstrument) (*BoolOrError, error)
	StartSession(context.Context, *Credentials) (*SessionOrError, error)
	EndSession(context.Context, *Session) (*OptionalError, error)
	GetBlockType(context.Context, *SessionInstrument) (*BlockTypeOrError, error)
	GetInstrumentState(context.Context, *SessionInstrument) (*StatusOrError, error)
	StopCurrentExperiment(context.Context, *SessionInstrument) (*OptionalError, error)
}

type Session

type Session struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*Session) Descriptor

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

func (*Session) GetId

func (m *Session) GetId() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

type SessionInstrument

type SessionInstrument struct {
	Session    *Session    `protobuf:"bytes,1,opt,name=session" json:"session,omitempty"`
	Instrument *Instrument `protobuf:"bytes,2,opt,name=instrument" json:"instrument,omitempty"`
}

func (*SessionInstrument) Descriptor

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

func (*SessionInstrument) GetInstrument

func (m *SessionInstrument) GetInstrument() *Instrument

func (*SessionInstrument) GetSession

func (m *SessionInstrument) GetSession() *Session

func (*SessionInstrument) ProtoMessage

func (*SessionInstrument) ProtoMessage()

func (*SessionInstrument) Reset

func (m *SessionInstrument) Reset()

func (*SessionInstrument) String

func (m *SessionInstrument) String() string

type SessionOrError

type SessionOrError struct {
	// Types that are valid to be assigned to Reply:
	//	*SessionOrError_Session
	//	*SessionOrError_Error
	//	*SessionOrError_Blank
	Reply isSessionOrError_Reply `protobuf_oneof:"reply"`
}

func (*SessionOrError) Descriptor

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

func (*SessionOrError) GetBlank

func (m *SessionOrError) GetBlank() *Blank

func (*SessionOrError) GetError

func (m *SessionOrError) GetError() *Error

func (*SessionOrError) GetReply

func (m *SessionOrError) GetReply() isSessionOrError_Reply

func (*SessionOrError) GetSession

func (m *SessionOrError) GetSession() *Session

func (*SessionOrError) ProtoMessage

func (*SessionOrError) ProtoMessage()

func (*SessionOrError) Reset

func (m *SessionOrError) Reset()

func (*SessionOrError) String

func (m *SessionOrError) String() string

func (*SessionOrError) XXX_OneofFuncs

func (*SessionOrError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SessionOrError_Blank

type SessionOrError_Blank struct {
	Blank *Blank `protobuf:"bytes,3,opt,name=blank,oneof"`
}

type SessionOrError_Error

type SessionOrError_Error struct {
	Error *Error `protobuf:"bytes,2,opt,name=error,oneof"`
}

type SessionOrError_Session

type SessionOrError_Session struct {
	Session *Session `protobuf:"bytes,1,opt,name=session,oneof"`
}

type StatusOrError

type StatusOrError struct {
	// Types that are valid to be assigned to MaybeStatus:
	//	*StatusOrError_Status
	//	*StatusOrError_Error
	MaybeStatus isStatusOrError_MaybeStatus `protobuf_oneof:"maybe_status"`
}

func (*StatusOrError) Descriptor

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

func (*StatusOrError) GetError

func (m *StatusOrError) GetError() ErrorCode

func (*StatusOrError) GetMaybeStatus

func (m *StatusOrError) GetMaybeStatus() isStatusOrError_MaybeStatus

func (*StatusOrError) GetStatus

func (m *StatusOrError) GetStatus() ErrorCode

func (*StatusOrError) ProtoMessage

func (*StatusOrError) ProtoMessage()

func (*StatusOrError) Reset

func (m *StatusOrError) Reset()

func (*StatusOrError) String

func (m *StatusOrError) String() string

func (*StatusOrError) XXX_OneofFuncs

func (*StatusOrError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type StatusOrError_Error

type StatusOrError_Error struct {
	Error ErrorCode `protobuf:"varint,2,opt,name=error,enum=antha.quantstudio.v1.ErrorCode,oneof"`
}

type StatusOrError_Status

type StatusOrError_Status struct {
	Status ErrorCode `protobuf:"varint,1,opt,name=status,enum=antha.quantstudio.v1.ErrorCode,oneof"`
}

type TemplatedRequest

type TemplatedRequest struct {
	SessionInstrument *SessionInstrument `protobuf:"bytes,1,opt,name=session_instrument,json=sessionInstrument" json:"session_instrument,omitempty"`
	TemplateFile      *ExperimentFile    `protobuf:"bytes,2,opt,name=template_file,json=templateFile" json:"template_file,omitempty"`
	Barcode           *Barcode           `protobuf:"bytes,3,opt,name=barcode" json:"barcode,omitempty"`
	OutputPath        string             `protobuf:"bytes,4,opt,name=output_path,json=outputPath" json:"output_path,omitempty"`
}

func (*TemplatedRequest) Descriptor

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

func (*TemplatedRequest) GetBarcode

func (m *TemplatedRequest) GetBarcode() *Barcode

func (*TemplatedRequest) GetOutputPath

func (m *TemplatedRequest) GetOutputPath() string

func (*TemplatedRequest) GetSessionInstrument

func (m *TemplatedRequest) GetSessionInstrument() *SessionInstrument

func (*TemplatedRequest) GetTemplateFile

func (m *TemplatedRequest) GetTemplateFile() *ExperimentFile

func (*TemplatedRequest) ProtoMessage

func (*TemplatedRequest) ProtoMessage()

func (*TemplatedRequest) Reset

func (m *TemplatedRequest) Reset()

func (*TemplatedRequest) String

func (m *TemplatedRequest) String() string

Jump to

Keyboard shortcuts

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