instruction_serialiser

package
v0.0.0-...-9d3e584 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_instruction_serialiser_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddNode

type AddNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*AddNode) Descriptor deprecated

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

Deprecated: Use AddNode.ProtoReflect.Descriptor instead.

func (*AddNode) GetLeftChild

func (x *AddNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*AddNode) GetRightChild

func (x *AddNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*AddNode) ProtoMessage

func (*AddNode) ProtoMessage()

func (*AddNode) ProtoReflect

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

func (*AddNode) Reset

func (x *AddNode) Reset()

func (*AddNode) String

func (x *AddNode) String() string

type AndNode

type AndNode struct {
	LeftChild  *LogicalResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *LogicalResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*AndNode) Descriptor deprecated

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

Deprecated: Use AndNode.ProtoReflect.Descriptor instead.

func (*AndNode) GetLeftChild

func (x *AndNode) GetLeftChild() *LogicalResultNodeWrapper

func (*AndNode) GetRightChild

func (x *AndNode) GetRightChild() *LogicalResultNodeWrapper

func (*AndNode) ProtoMessage

func (*AndNode) ProtoMessage()

func (*AndNode) ProtoReflect

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

func (*AndNode) Reset

func (x *AndNode) Reset()

func (*AndNode) String

func (x *AndNode) String() string

type ArithmeticIfElseNode

type ArithmeticIfElseNode struct {
	Condition *LogicalResultNodeWrapper    `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"`
	If        *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=if,proto3" json:"if,omitempty"`
	Else      *ArithmeticResultNodeWrapper `protobuf:"bytes,3,opt,name=else,proto3" json:"else,omitempty"`
	// contains filtered or unexported fields
}

func (*ArithmeticIfElseNode) Descriptor deprecated

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

Deprecated: Use ArithmeticIfElseNode.ProtoReflect.Descriptor instead.

func (*ArithmeticIfElseNode) GetCondition

func (*ArithmeticIfElseNode) GetElse

func (*ArithmeticIfElseNode) GetIf

func (*ArithmeticIfElseNode) ProtoMessage

func (*ArithmeticIfElseNode) ProtoMessage()

func (*ArithmeticIfElseNode) ProtoReflect

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

func (*ArithmeticIfElseNode) Reset

func (x *ArithmeticIfElseNode) Reset()

func (*ArithmeticIfElseNode) String

func (x *ArithmeticIfElseNode) String() string

type ArithmeticResultNodeWrapper

type ArithmeticResultNodeWrapper struct {

	// Types that are assignable to Node:
	//	*ArithmeticResultNodeWrapper_AddNode
	//	*ArithmeticResultNodeWrapper_DivideNode
	//	*ArithmeticResultNodeWrapper_MultiplyNode
	//	*ArithmeticResultNodeWrapper_NumberNode
	//	*ArithmeticResultNodeWrapper_SubtractNode
	//	*ArithmeticResultNodeWrapper_VariableNode
	//	*ArithmeticResultNodeWrapper_LogarithmNode
	//	*ArithmeticResultNodeWrapper_PowerNode
	//	*ArithmeticResultNodeWrapper_ModuloNode
	//	*ArithmeticResultNodeWrapper_IfElseNode
	Node isArithmeticResultNodeWrapper_Node `protobuf_oneof:"node"`
	// contains filtered or unexported fields
}

func NewArithmeticVariable

func NewArithmeticVariable(variableName string) *ArithmeticResultNodeWrapper

func (*ArithmeticResultNodeWrapper) Add

func (*ArithmeticResultNodeWrapper) Calculate

func (a *ArithmeticResultNodeWrapper) Calculate(parameters map[string]interface{}) (ArithmeticType, error)

func (*ArithmeticResultNodeWrapper) Descriptor deprecated

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

Deprecated: Use ArithmeticResultNodeWrapper.ProtoReflect.Descriptor instead.

func (*ArithmeticResultNodeWrapper) Divide

func (*ArithmeticResultNodeWrapper) Equal

func (*ArithmeticResultNodeWrapper) GetAddNode

func (x *ArithmeticResultNodeWrapper) GetAddNode() *AddNode

func (*ArithmeticResultNodeWrapper) GetDivideNode

func (x *ArithmeticResultNodeWrapper) GetDivideNode() *DivideNode

func (*ArithmeticResultNodeWrapper) GetIfElseNode

func (*ArithmeticResultNodeWrapper) GetLogarithmNode

func (x *ArithmeticResultNodeWrapper) GetLogarithmNode() *LogarithmNode

func (*ArithmeticResultNodeWrapper) GetModuloNode

func (x *ArithmeticResultNodeWrapper) GetModuloNode() *ModuloNode

func (*ArithmeticResultNodeWrapper) GetMultiplyNode

func (x *ArithmeticResultNodeWrapper) GetMultiplyNode() *MultiplyNode

func (*ArithmeticResultNodeWrapper) GetNode

func (m *ArithmeticResultNodeWrapper) GetNode() isArithmeticResultNodeWrapper_Node

func (*ArithmeticResultNodeWrapper) GetNumberNode

func (x *ArithmeticResultNodeWrapper) GetNumberNode() *NumberNode

func (*ArithmeticResultNodeWrapper) GetPowerNode

func (x *ArithmeticResultNodeWrapper) GetPowerNode() *PowerNode

func (*ArithmeticResultNodeWrapper) GetSubtractNode

func (x *ArithmeticResultNodeWrapper) GetSubtractNode() *SubtractNode

func (*ArithmeticResultNodeWrapper) GetVariableNode

func (*ArithmeticResultNodeWrapper) GreaterThan

func (*ArithmeticResultNodeWrapper) GreaterThanOrEqual

func (*ArithmeticResultNodeWrapper) Logarithm

func (*ArithmeticResultNodeWrapper) Modulo

func (*ArithmeticResultNodeWrapper) Multiply

func (*ArithmeticResultNodeWrapper) Power

func (*ArithmeticResultNodeWrapper) ProtoMessage

func (*ArithmeticResultNodeWrapper) ProtoMessage()

func (*ArithmeticResultNodeWrapper) ProtoReflect

func (*ArithmeticResultNodeWrapper) Reset

func (x *ArithmeticResultNodeWrapper) Reset()

func (*ArithmeticResultNodeWrapper) Serialise

func (a *ArithmeticResultNodeWrapper) Serialise() ([]byte, error)

func (*ArithmeticResultNodeWrapper) SmallerThan

func (*ArithmeticResultNodeWrapper) SmallerThanOrEqual

func (*ArithmeticResultNodeWrapper) String

func (x *ArithmeticResultNodeWrapper) String() string

func (*ArithmeticResultNodeWrapper) Subtract

type ArithmeticResultNodeWrapper_AddNode

type ArithmeticResultNodeWrapper_AddNode struct {
	AddNode *AddNode `protobuf:"bytes,1,opt,name=add_node,json=addNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_DivideNode

type ArithmeticResultNodeWrapper_DivideNode struct {
	DivideNode *DivideNode `protobuf:"bytes,2,opt,name=divide_node,json=divideNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_IfElseNode

type ArithmeticResultNodeWrapper_IfElseNode struct {
	IfElseNode *ArithmeticIfElseNode `protobuf:"bytes,10,opt,name=if_else_node,json=ifElseNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_LogarithmNode

type ArithmeticResultNodeWrapper_LogarithmNode struct {
	LogarithmNode *LogarithmNode `protobuf:"bytes,7,opt,name=logarithm_node,json=logarithmNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_ModuloNode

type ArithmeticResultNodeWrapper_ModuloNode struct {
	ModuloNode *ModuloNode `protobuf:"bytes,9,opt,name=modulo_node,json=moduloNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_MultiplyNode

type ArithmeticResultNodeWrapper_MultiplyNode struct {
	MultiplyNode *MultiplyNode `protobuf:"bytes,3,opt,name=multiply_node,json=multiplyNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_NumberNode

type ArithmeticResultNodeWrapper_NumberNode struct {
	NumberNode *NumberNode `protobuf:"bytes,4,opt,name=number_node,json=numberNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_PowerNode

type ArithmeticResultNodeWrapper_PowerNode struct {
	PowerNode *PowerNode `protobuf:"bytes,8,opt,name=power_node,json=powerNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_SubtractNode

type ArithmeticResultNodeWrapper_SubtractNode struct {
	SubtractNode *SubtractNode `protobuf:"bytes,5,opt,name=subtract_node,json=subtractNode,proto3,oneof"`
}

type ArithmeticResultNodeWrapper_VariableNode

type ArithmeticResultNodeWrapper_VariableNode struct {
	VariableNode *ArithmeticVariableNode `protobuf:"bytes,6,opt,name=variable_node,json=variableNode,proto3,oneof"`
}

type ArithmeticType

type ArithmeticType = float64

type ArithmeticVariableNode

type ArithmeticVariableNode struct {
	VariableName string `protobuf:"bytes,1,opt,name=variable_name,json=variableName,proto3" json:"variable_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ArithmeticVariableNode) Descriptor deprecated

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

Deprecated: Use ArithmeticVariableNode.ProtoReflect.Descriptor instead.

func (*ArithmeticVariableNode) GetVariableName

func (x *ArithmeticVariableNode) GetVariableName() string

func (*ArithmeticVariableNode) ProtoMessage

func (*ArithmeticVariableNode) ProtoMessage()

func (*ArithmeticVariableNode) ProtoReflect

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

func (*ArithmeticVariableNode) Reset

func (x *ArithmeticVariableNode) Reset()

func (*ArithmeticVariableNode) String

func (x *ArithmeticVariableNode) String() string

type BoolNode

type BoolNode struct {
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolNode) Descriptor deprecated

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

Deprecated: Use BoolNode.ProtoReflect.Descriptor instead.

func (*BoolNode) GetValue

func (x *BoolNode) GetValue() bool

func (*BoolNode) ProtoMessage

func (*BoolNode) ProtoMessage()

func (*BoolNode) ProtoReflect

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

func (*BoolNode) Reset

func (x *BoolNode) Reset()

func (*BoolNode) String

func (x *BoolNode) String() string

type DivideNode

type DivideNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*DivideNode) Descriptor deprecated

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

Deprecated: Use DivideNode.ProtoReflect.Descriptor instead.

func (*DivideNode) GetLeftChild

func (x *DivideNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*DivideNode) GetRightChild

func (x *DivideNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*DivideNode) ProtoMessage

func (*DivideNode) ProtoMessage()

func (*DivideNode) ProtoReflect

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

func (*DivideNode) Reset

func (x *DivideNode) Reset()

func (*DivideNode) String

func (x *DivideNode) String() string

type EqualNode

type EqualNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

The equal node compares arithmetic nodes only. If you want to determine equality of logical nodes use Xor followed by a negation.

func (*EqualNode) Descriptor deprecated

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

Deprecated: Use EqualNode.ProtoReflect.Descriptor instead.

func (*EqualNode) GetLeftChild

func (x *EqualNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*EqualNode) GetRightChild

func (x *EqualNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*EqualNode) ProtoMessage

func (*EqualNode) ProtoMessage()

func (*EqualNode) ProtoReflect

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

func (*EqualNode) Reset

func (x *EqualNode) Reset()

func (*EqualNode) String

func (x *EqualNode) String() string

type GreaterThanNode

type GreaterThanNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*GreaterThanNode) Descriptor deprecated

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

Deprecated: Use GreaterThanNode.ProtoReflect.Descriptor instead.

func (*GreaterThanNode) GetLeftChild

func (x *GreaterThanNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*GreaterThanNode) GetRightChild

func (x *GreaterThanNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*GreaterThanNode) ProtoMessage

func (*GreaterThanNode) ProtoMessage()

func (*GreaterThanNode) ProtoReflect

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

func (*GreaterThanNode) Reset

func (x *GreaterThanNode) Reset()

func (*GreaterThanNode) String

func (x *GreaterThanNode) String() string

type GreaterThanOrEqualNode

type GreaterThanOrEqualNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*GreaterThanOrEqualNode) Descriptor deprecated

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

Deprecated: Use GreaterThanOrEqualNode.ProtoReflect.Descriptor instead.

func (*GreaterThanOrEqualNode) GetLeftChild

func (*GreaterThanOrEqualNode) GetRightChild

func (*GreaterThanOrEqualNode) ProtoMessage

func (*GreaterThanOrEqualNode) ProtoMessage()

func (*GreaterThanOrEqualNode) ProtoReflect

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

func (*GreaterThanOrEqualNode) Reset

func (x *GreaterThanOrEqualNode) Reset()

func (*GreaterThanOrEqualNode) String

func (x *GreaterThanOrEqualNode) String() string

type InstructionWrapper

type InstructionWrapper struct {

	// Types that are assignable to Wrapper:
	//	*InstructionWrapper_ArithmeticWrapper
	//	*InstructionWrapper_LogicalWrapper
	Wrapper isInstructionWrapper_Wrapper `protobuf_oneof:"wrapper"`
	// contains filtered or unexported fields
}

func DeserialiseInstruction

func DeserialiseInstruction(serialised []byte) (*InstructionWrapper, error)

func (*InstructionWrapper) Descriptor deprecated

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

Deprecated: Use InstructionWrapper.ProtoReflect.Descriptor instead.

func (*InstructionWrapper) GetArithmeticWrapper

func (x *InstructionWrapper) GetArithmeticWrapper() *ArithmeticResultNodeWrapper

func (*InstructionWrapper) GetLogicalWrapper

func (x *InstructionWrapper) GetLogicalWrapper() *LogicalResultNodeWrapper

func (*InstructionWrapper) GetWrapper

func (m *InstructionWrapper) GetWrapper() isInstructionWrapper_Wrapper

func (*InstructionWrapper) ProtoMessage

func (*InstructionWrapper) ProtoMessage()

func (*InstructionWrapper) ProtoReflect

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

func (*InstructionWrapper) Reset

func (x *InstructionWrapper) Reset()

func (*InstructionWrapper) String

func (x *InstructionWrapper) String() string

type InstructionWrapper_ArithmeticWrapper

type InstructionWrapper_ArithmeticWrapper struct {
	ArithmeticWrapper *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=arithmetic_wrapper,json=arithmeticWrapper,proto3,oneof"`
}

type InstructionWrapper_LogicalWrapper

type InstructionWrapper_LogicalWrapper struct {
	LogicalWrapper *LogicalResultNodeWrapper `protobuf:"bytes,2,opt,name=logical_wrapper,json=logicalWrapper,proto3,oneof"`
}

type LogarithmNode

type LogarithmNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"` // the base
	// contains filtered or unexported fields
}

func (*LogarithmNode) Descriptor deprecated

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

Deprecated: Use LogarithmNode.ProtoReflect.Descriptor instead.

func (*LogarithmNode) GetLeftChild

func (x *LogarithmNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*LogarithmNode) GetRightChild

func (x *LogarithmNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*LogarithmNode) ProtoMessage

func (*LogarithmNode) ProtoMessage()

func (*LogarithmNode) ProtoReflect

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

func (*LogarithmNode) Reset

func (x *LogarithmNode) Reset()

func (*LogarithmNode) String

func (x *LogarithmNode) String() string

type LogicalIfElseNode

type LogicalIfElseNode struct {
	Condition *LogicalResultNodeWrapper `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"`
	If        *LogicalResultNodeWrapper `protobuf:"bytes,2,opt,name=if,proto3" json:"if,omitempty"`
	Else      *LogicalResultNodeWrapper `protobuf:"bytes,3,opt,name=else,proto3" json:"else,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicalIfElseNode) Descriptor deprecated

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

Deprecated: Use LogicalIfElseNode.ProtoReflect.Descriptor instead.

func (*LogicalIfElseNode) GetCondition

func (x *LogicalIfElseNode) GetCondition() *LogicalResultNodeWrapper

func (*LogicalIfElseNode) GetElse

func (*LogicalIfElseNode) GetIf

func (*LogicalIfElseNode) ProtoMessage

func (*LogicalIfElseNode) ProtoMessage()

func (*LogicalIfElseNode) ProtoReflect

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

func (*LogicalIfElseNode) Reset

func (x *LogicalIfElseNode) Reset()

func (*LogicalIfElseNode) String

func (x *LogicalIfElseNode) String() string

type LogicalResultNodeWrapper

type LogicalResultNodeWrapper struct {

	// Types that are assignable to Node:
	//	*LogicalResultNodeWrapper_EqualNode
	//	*LogicalResultNodeWrapper_AndNode
	//	*LogicalResultNodeWrapper_BoolNode
	//	*LogicalResultNodeWrapper_NegateNode
	//	*LogicalResultNodeWrapper_OrNode
	//	*LogicalResultNodeWrapper_XorNode
	//	*LogicalResultNodeWrapper_VariableNode
	//	*LogicalResultNodeWrapper_IfElseNode
	//	*LogicalResultNodeWrapper_GreaterThanNode
	//	*LogicalResultNodeWrapper_GreaterThanOrEqualNode
	//	*LogicalResultNodeWrapper_SmallerThanNode
	//	*LogicalResultNodeWrapper_SmallerThanOrEqualNode
	Node isLogicalResultNodeWrapper_Node `protobuf_oneof:"node"`
	// contains filtered or unexported fields
}

func NewBool

func NewBool(value LogicalType) *LogicalResultNodeWrapper

func NewLogicalVariable

func NewLogicalVariable(variableName string) *LogicalResultNodeWrapper

func (*LogicalResultNodeWrapper) And

func (*LogicalResultNodeWrapper) ArithmeticIfElse

func (*LogicalResultNodeWrapper) Calculate

func (l *LogicalResultNodeWrapper) Calculate(parameters map[string]interface{}) (LogicalType, error)

func (*LogicalResultNodeWrapper) Descriptor deprecated

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

Deprecated: Use LogicalResultNodeWrapper.ProtoReflect.Descriptor instead.

func (*LogicalResultNodeWrapper) GetAndNode

func (x *LogicalResultNodeWrapper) GetAndNode() *AndNode

func (*LogicalResultNodeWrapper) GetBoolNode

func (x *LogicalResultNodeWrapper) GetBoolNode() *BoolNode

func (*LogicalResultNodeWrapper) GetEqualNode

func (x *LogicalResultNodeWrapper) GetEqualNode() *EqualNode

func (*LogicalResultNodeWrapper) GetGreaterThanNode

func (x *LogicalResultNodeWrapper) GetGreaterThanNode() *GreaterThanNode

func (*LogicalResultNodeWrapper) GetGreaterThanOrEqualNode

func (x *LogicalResultNodeWrapper) GetGreaterThanOrEqualNode() *GreaterThanOrEqualNode

func (*LogicalResultNodeWrapper) GetIfElseNode

func (x *LogicalResultNodeWrapper) GetIfElseNode() *LogicalIfElseNode

func (*LogicalResultNodeWrapper) GetNegateNode

func (x *LogicalResultNodeWrapper) GetNegateNode() *NegateNode

func (*LogicalResultNodeWrapper) GetNode

func (m *LogicalResultNodeWrapper) GetNode() isLogicalResultNodeWrapper_Node

func (*LogicalResultNodeWrapper) GetOrNode

func (x *LogicalResultNodeWrapper) GetOrNode() *OrNode

func (*LogicalResultNodeWrapper) GetSmallerThanNode

func (x *LogicalResultNodeWrapper) GetSmallerThanNode() *SmallerThanNode

func (*LogicalResultNodeWrapper) GetSmallerThanOrEqualNode

func (x *LogicalResultNodeWrapper) GetSmallerThanOrEqualNode() *SmallerThanOrEqualNode

func (*LogicalResultNodeWrapper) GetVariableNode

func (x *LogicalResultNodeWrapper) GetVariableNode() *LogicalVariableNode

func (*LogicalResultNodeWrapper) GetXorNode

func (x *LogicalResultNodeWrapper) GetXorNode() *XorNode

func (*LogicalResultNodeWrapper) LogicalIfElse

func (*LogicalResultNodeWrapper) Negate

func (*LogicalResultNodeWrapper) Or

func (*LogicalResultNodeWrapper) ProtoMessage

func (*LogicalResultNodeWrapper) ProtoMessage()

func (*LogicalResultNodeWrapper) ProtoReflect

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

func (*LogicalResultNodeWrapper) Reset

func (x *LogicalResultNodeWrapper) Reset()

func (*LogicalResultNodeWrapper) Serialise

func (l *LogicalResultNodeWrapper) Serialise() ([]byte, error)

func (*LogicalResultNodeWrapper) String

func (x *LogicalResultNodeWrapper) String() string

func (*LogicalResultNodeWrapper) Xor

type LogicalResultNodeWrapper_AndNode

type LogicalResultNodeWrapper_AndNode struct {
	AndNode *AndNode `protobuf:"bytes,2,opt,name=and_node,json=andNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_BoolNode

type LogicalResultNodeWrapper_BoolNode struct {
	BoolNode *BoolNode `protobuf:"bytes,3,opt,name=bool_node,json=boolNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_EqualNode

type LogicalResultNodeWrapper_EqualNode struct {
	EqualNode *EqualNode `protobuf:"bytes,1,opt,name=equal_node,json=equalNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_GreaterThanNode

type LogicalResultNodeWrapper_GreaterThanNode struct {
	GreaterThanNode *GreaterThanNode `protobuf:"bytes,9,opt,name=greater_than_node,json=greaterThanNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_GreaterThanOrEqualNode

type LogicalResultNodeWrapper_GreaterThanOrEqualNode struct {
	GreaterThanOrEqualNode *GreaterThanOrEqualNode `protobuf:"bytes,10,opt,name=greater_than_or_equal_node,json=greaterThanOrEqualNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_IfElseNode

type LogicalResultNodeWrapper_IfElseNode struct {
	IfElseNode *LogicalIfElseNode `protobuf:"bytes,8,opt,name=if_else_node,json=ifElseNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_NegateNode

type LogicalResultNodeWrapper_NegateNode struct {
	NegateNode *NegateNode `protobuf:"bytes,4,opt,name=negate_node,json=negateNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_OrNode

type LogicalResultNodeWrapper_OrNode struct {
	OrNode *OrNode `protobuf:"bytes,5,opt,name=or_node,json=orNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_SmallerThanNode

type LogicalResultNodeWrapper_SmallerThanNode struct {
	SmallerThanNode *SmallerThanNode `protobuf:"bytes,11,opt,name=smaller_than_node,json=smallerThanNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_SmallerThanOrEqualNode

type LogicalResultNodeWrapper_SmallerThanOrEqualNode struct {
	SmallerThanOrEqualNode *SmallerThanOrEqualNode `protobuf:"bytes,12,opt,name=smaller_than_or_equal_node,json=smallerThanOrEqualNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_VariableNode

type LogicalResultNodeWrapper_VariableNode struct {
	VariableNode *LogicalVariableNode `protobuf:"bytes,7,opt,name=variable_node,json=variableNode,proto3,oneof"`
}

type LogicalResultNodeWrapper_XorNode

type LogicalResultNodeWrapper_XorNode struct {
	XorNode *XorNode `protobuf:"bytes,6,opt,name=xor_node,json=xorNode,proto3,oneof"`
}

type LogicalType

type LogicalType = bool

type LogicalVariableNode

type LogicalVariableNode struct {
	VariableName string `protobuf:"bytes,1,opt,name=variable_name,json=variableName,proto3" json:"variable_name,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicalVariableNode) Descriptor deprecated

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

Deprecated: Use LogicalVariableNode.ProtoReflect.Descriptor instead.

func (*LogicalVariableNode) GetVariableName

func (x *LogicalVariableNode) GetVariableName() string

func (*LogicalVariableNode) ProtoMessage

func (*LogicalVariableNode) ProtoMessage()

func (*LogicalVariableNode) ProtoReflect

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

func (*LogicalVariableNode) Reset

func (x *LogicalVariableNode) Reset()

func (*LogicalVariableNode) String

func (x *LogicalVariableNode) String() string

type ModuloNode

type ModuloNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*ModuloNode) Descriptor deprecated

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

Deprecated: Use ModuloNode.ProtoReflect.Descriptor instead.

func (*ModuloNode) GetLeftChild

func (x *ModuloNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*ModuloNode) GetRightChild

func (x *ModuloNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*ModuloNode) ProtoMessage

func (*ModuloNode) ProtoMessage()

func (*ModuloNode) ProtoReflect

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

func (*ModuloNode) Reset

func (x *ModuloNode) Reset()

func (*ModuloNode) String

func (x *ModuloNode) String() string

type MultiplyNode

type MultiplyNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiplyNode) Descriptor deprecated

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

Deprecated: Use MultiplyNode.ProtoReflect.Descriptor instead.

func (*MultiplyNode) GetLeftChild

func (x *MultiplyNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*MultiplyNode) GetRightChild

func (x *MultiplyNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*MultiplyNode) ProtoMessage

func (*MultiplyNode) ProtoMessage()

func (*MultiplyNode) ProtoReflect

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

func (*MultiplyNode) Reset

func (x *MultiplyNode) Reset()

func (*MultiplyNode) String

func (x *MultiplyNode) String() string

type NegateNode

type NegateNode struct {
	Child *LogicalResultNodeWrapper `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"`
	// contains filtered or unexported fields
}

func (*NegateNode) Descriptor deprecated

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

Deprecated: Use NegateNode.ProtoReflect.Descriptor instead.

func (*NegateNode) GetChild

func (x *NegateNode) GetChild() *LogicalResultNodeWrapper

func (*NegateNode) ProtoMessage

func (*NegateNode) ProtoMessage()

func (*NegateNode) ProtoReflect

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

func (*NegateNode) Reset

func (x *NegateNode) Reset()

func (*NegateNode) String

func (x *NegateNode) String() string

type NumberNode

type NumberNode struct {
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NumberNode) Descriptor deprecated

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

Deprecated: Use NumberNode.ProtoReflect.Descriptor instead.

func (*NumberNode) GetValue

func (x *NumberNode) GetValue() float64

func (*NumberNode) ProtoMessage

func (*NumberNode) ProtoMessage()

func (*NumberNode) ProtoReflect

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

func (*NumberNode) Reset

func (x *NumberNode) Reset()

func (*NumberNode) String

func (x *NumberNode) String() string

type OrNode

type OrNode struct {
	LeftChild  *LogicalResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *LogicalResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*OrNode) Descriptor deprecated

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

Deprecated: Use OrNode.ProtoReflect.Descriptor instead.

func (*OrNode) GetLeftChild

func (x *OrNode) GetLeftChild() *LogicalResultNodeWrapper

func (*OrNode) GetRightChild

func (x *OrNode) GetRightChild() *LogicalResultNodeWrapper

func (*OrNode) ProtoMessage

func (*OrNode) ProtoMessage()

func (*OrNode) ProtoReflect

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

func (*OrNode) Reset

func (x *OrNode) Reset()

func (*OrNode) String

func (x *OrNode) String() string

type PowerNode

type PowerNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`    // the base
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"` // the exponent
	// contains filtered or unexported fields
}

func (*PowerNode) Descriptor deprecated

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

Deprecated: Use PowerNode.ProtoReflect.Descriptor instead.

func (*PowerNode) GetLeftChild

func (x *PowerNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*PowerNode) GetRightChild

func (x *PowerNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*PowerNode) ProtoMessage

func (*PowerNode) ProtoMessage()

func (*PowerNode) ProtoReflect

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

func (*PowerNode) Reset

func (x *PowerNode) Reset()

func (*PowerNode) String

func (x *PowerNode) String() string

type SmallerThanNode

type SmallerThanNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*SmallerThanNode) Descriptor deprecated

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

Deprecated: Use SmallerThanNode.ProtoReflect.Descriptor instead.

func (*SmallerThanNode) GetLeftChild

func (x *SmallerThanNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*SmallerThanNode) GetRightChild

func (x *SmallerThanNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*SmallerThanNode) ProtoMessage

func (*SmallerThanNode) ProtoMessage()

func (*SmallerThanNode) ProtoReflect

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

func (*SmallerThanNode) Reset

func (x *SmallerThanNode) Reset()

func (*SmallerThanNode) String

func (x *SmallerThanNode) String() string

type SmallerThanOrEqualNode

type SmallerThanOrEqualNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*SmallerThanOrEqualNode) Descriptor deprecated

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

Deprecated: Use SmallerThanOrEqualNode.ProtoReflect.Descriptor instead.

func (*SmallerThanOrEqualNode) GetLeftChild

func (*SmallerThanOrEqualNode) GetRightChild

func (*SmallerThanOrEqualNode) ProtoMessage

func (*SmallerThanOrEqualNode) ProtoMessage()

func (*SmallerThanOrEqualNode) ProtoReflect

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

func (*SmallerThanOrEqualNode) Reset

func (x *SmallerThanOrEqualNode) Reset()

func (*SmallerThanOrEqualNode) String

func (x *SmallerThanOrEqualNode) String() string

type SubtractNode

type SubtractNode struct {
	LeftChild  *ArithmeticResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *ArithmeticResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*SubtractNode) Descriptor deprecated

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

Deprecated: Use SubtractNode.ProtoReflect.Descriptor instead.

func (*SubtractNode) GetLeftChild

func (x *SubtractNode) GetLeftChild() *ArithmeticResultNodeWrapper

func (*SubtractNode) GetRightChild

func (x *SubtractNode) GetRightChild() *ArithmeticResultNodeWrapper

func (*SubtractNode) ProtoMessage

func (*SubtractNode) ProtoMessage()

func (*SubtractNode) ProtoReflect

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

func (*SubtractNode) Reset

func (x *SubtractNode) Reset()

func (*SubtractNode) String

func (x *SubtractNode) String() string

type XorNode

type XorNode struct {
	LeftChild  *LogicalResultNodeWrapper `protobuf:"bytes,1,opt,name=left_child,json=leftChild,proto3" json:"left_child,omitempty"`
	RightChild *LogicalResultNodeWrapper `protobuf:"bytes,2,opt,name=right_child,json=rightChild,proto3" json:"right_child,omitempty"`
	// contains filtered or unexported fields
}

func (*XorNode) Descriptor deprecated

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

Deprecated: Use XorNode.ProtoReflect.Descriptor instead.

func (*XorNode) GetLeftChild

func (x *XorNode) GetLeftChild() *LogicalResultNodeWrapper

func (*XorNode) GetRightChild

func (x *XorNode) GetRightChild() *LogicalResultNodeWrapper

func (*XorNode) ProtoMessage

func (*XorNode) ProtoMessage()

func (*XorNode) ProtoReflect

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

func (*XorNode) Reset

func (x *XorNode) Reset()

func (*XorNode) String

func (x *XorNode) String() string

Jump to

Keyboard shortcuts

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