_go

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParameterType_name = map[int32]string{
		0: "UNKNOWN_TYPE",
		1: "DOUBLE",
		2: "INT",
		3: "DISCRETE",
		4: "CATEGORICAL",
	}
	ParameterType_value = map[string]int32{
		"UNKNOWN_TYPE": 0,
		"DOUBLE":       1,
		"INT":          2,
		"DISCRETE":     3,
		"CATEGORICAL":  4,
	}
)

Enum value maps for ParameterType.

Functions

func RegisterSuggestionServer

func RegisterSuggestionServer(s *grpc.Server, srv SuggestionServer)

Types

type KeyValue

type KeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyValue) Descriptor deprecated

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

Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.

func (*KeyValue) GetKey

func (x *KeyValue) GetKey() string

func (*KeyValue) GetValue

func (x *KeyValue) GetValue() string

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) ProtoReflect

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

func (*KeyValue) Reset

func (x *KeyValue) Reset()

func (*KeyValue) String

func (x *KeyValue) String() string

type ParameterAssignments

type ParameterAssignments struct {
	KeyValues []*KeyValue `protobuf:"bytes,1,rep,name=key_values,json=keyValues,proto3" json:"key_values,omitempty"`
	// contains filtered or unexported fields
}

func (*ParameterAssignments) Descriptor deprecated

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

Deprecated: Use ParameterAssignments.ProtoReflect.Descriptor instead.

func (*ParameterAssignments) GetKeyValues

func (x *ParameterAssignments) GetKeyValues() []*KeyValue

func (*ParameterAssignments) ProtoMessage

func (*ParameterAssignments) ProtoMessage()

func (*ParameterAssignments) ProtoReflect

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

func (*ParameterAssignments) Reset

func (x *ParameterAssignments) Reset()

func (*ParameterAssignments) String

func (x *ParameterAssignments) String() string

type ParameterSpec

type ParameterSpec struct {
	Name          string        `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ParameterType ParameterType `` /* 135-byte string literal not displayed */
	FeasibleSpace []string      `protobuf:"bytes,3,rep,name=feasible_space,json=feasibleSpace,proto3" json:"feasible_space,omitempty"`
	// contains filtered or unexported fields
}

func (*ParameterSpec) Descriptor deprecated

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

Deprecated: Use ParameterSpec.ProtoReflect.Descriptor instead.

func (*ParameterSpec) GetFeasibleSpace

func (x *ParameterSpec) GetFeasibleSpace() []string

func (*ParameterSpec) GetName

func (x *ParameterSpec) GetName() string

func (*ParameterSpec) GetParameterType

func (x *ParameterSpec) GetParameterType() ParameterType

func (*ParameterSpec) ProtoMessage

func (*ParameterSpec) ProtoMessage()

func (*ParameterSpec) ProtoReflect

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

func (*ParameterSpec) Reset

func (x *ParameterSpec) Reset()

func (*ParameterSpec) String

func (x *ParameterSpec) String() string

type ParameterType

type ParameterType int32
const (
	ParameterType_UNKNOWN_TYPE ParameterType = 0
	ParameterType_DOUBLE       ParameterType = 1
	ParameterType_INT          ParameterType = 2
	ParameterType_DISCRETE     ParameterType = 3
	ParameterType_CATEGORICAL  ParameterType = 4
)

func (ParameterType) Descriptor

func (ParameterType) Enum

func (x ParameterType) Enum() *ParameterType

func (ParameterType) EnumDescriptor deprecated

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

Deprecated: Use ParameterType.Descriptor instead.

func (ParameterType) Number

func (ParameterType) String

func (x ParameterType) String() string

func (ParameterType) Type

type SamplingRequest

type SamplingRequest struct {
	IsFirstRequest          bool             `protobuf:"varint,1,opt,name=is_first_request,json=isFirstRequest,proto3" json:"is_first_request,omitempty"`
	AlgorithmName           string           `protobuf:"bytes,2,opt,name=algorithm_name,json=algorithmName,proto3" json:"algorithm_name,omitempty"`
	AlgorithmExtraSettings  []*KeyValue      `` /* 129-byte string literal not displayed */
	SamplingNumberSpecified int32            `` /* 133-byte string literal not displayed */
	RequiredSampling        int32            `protobuf:"varint,6,opt,name=required_sampling,json=requiredSampling,proto3" json:"required_sampling,omitempty"`
	IsMaximize              bool             `protobuf:"varint,7,opt,name=is_maximize,json=isMaximize,proto3" json:"is_maximize,omitempty"`
	ExistingResults         []*TrialResult   `protobuf:"bytes,8,rep,name=existing_results,json=existingResults,proto3" json:"existing_results,omitempty"`
	Parameters              []*ParameterSpec `protobuf:"bytes,9,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*SamplingRequest) Descriptor deprecated

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

Deprecated: Use SamplingRequest.ProtoReflect.Descriptor instead.

func (*SamplingRequest) GetAlgorithmExtraSettings

func (x *SamplingRequest) GetAlgorithmExtraSettings() []*KeyValue

func (*SamplingRequest) GetAlgorithmName

func (x *SamplingRequest) GetAlgorithmName() string

func (*SamplingRequest) GetExistingResults

func (x *SamplingRequest) GetExistingResults() []*TrialResult

func (*SamplingRequest) GetIsFirstRequest

func (x *SamplingRequest) GetIsFirstRequest() bool

func (*SamplingRequest) GetIsMaximize

func (x *SamplingRequest) GetIsMaximize() bool

func (*SamplingRequest) GetParameters

func (x *SamplingRequest) GetParameters() []*ParameterSpec

func (*SamplingRequest) GetRequiredSampling

func (x *SamplingRequest) GetRequiredSampling() int32

func (*SamplingRequest) GetSamplingNumberSpecified

func (x *SamplingRequest) GetSamplingNumberSpecified() int32

func (*SamplingRequest) ProtoMessage

func (*SamplingRequest) ProtoMessage()

func (*SamplingRequest) ProtoReflect

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

func (*SamplingRequest) Reset

func (x *SamplingRequest) Reset()

func (*SamplingRequest) String

func (x *SamplingRequest) String() string

type SamplingResponse

type SamplingResponse struct {
	AssignmentsSet []*ParameterAssignments `protobuf:"bytes,1,rep,name=assignments_set,json=assignmentsSet,proto3" json:"assignments_set,omitempty"`
	// contains filtered or unexported fields
}

func (*SamplingResponse) Descriptor deprecated

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

Deprecated: Use SamplingResponse.ProtoReflect.Descriptor instead.

func (*SamplingResponse) GetAssignmentsSet

func (x *SamplingResponse) GetAssignmentsSet() []*ParameterAssignments

func (*SamplingResponse) ProtoMessage

func (*SamplingResponse) ProtoMessage()

func (*SamplingResponse) ProtoReflect

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

func (*SamplingResponse) Reset

func (x *SamplingResponse) Reset()

func (*SamplingResponse) String

func (x *SamplingResponse) String() string

type SamplingValidationRequest

type SamplingValidationRequest struct {
	AlgorithmName           string           `protobuf:"bytes,1,opt,name=algorithm_name,json=algorithmName,proto3" json:"algorithm_name,omitempty"`
	AlgorithmExtraSettings  []*KeyValue      `` /* 129-byte string literal not displayed */
	SamplingNumberSpecified int32            `` /* 133-byte string literal not displayed */
	IsMaximize              bool             `protobuf:"varint,4,opt,name=is_maximize,json=isMaximize,proto3" json:"is_maximize,omitempty"`
	Parameters              []*ParameterSpec `protobuf:"bytes,5,rep,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*SamplingValidationRequest) Descriptor deprecated

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

Deprecated: Use SamplingValidationRequest.ProtoReflect.Descriptor instead.

func (*SamplingValidationRequest) GetAlgorithmExtraSettings

func (x *SamplingValidationRequest) GetAlgorithmExtraSettings() []*KeyValue

func (*SamplingValidationRequest) GetAlgorithmName

func (x *SamplingValidationRequest) GetAlgorithmName() string

func (*SamplingValidationRequest) GetIsMaximize

func (x *SamplingValidationRequest) GetIsMaximize() bool

func (*SamplingValidationRequest) GetParameters

func (x *SamplingValidationRequest) GetParameters() []*ParameterSpec

func (*SamplingValidationRequest) GetSamplingNumberSpecified

func (x *SamplingValidationRequest) GetSamplingNumberSpecified() int32

func (*SamplingValidationRequest) ProtoMessage

func (*SamplingValidationRequest) ProtoMessage()

func (*SamplingValidationRequest) ProtoReflect

func (*SamplingValidationRequest) Reset

func (x *SamplingValidationRequest) Reset()

func (*SamplingValidationRequest) String

func (x *SamplingValidationRequest) String() string

type SamplingValidationResponse

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

func (*SamplingValidationResponse) Descriptor deprecated

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

Deprecated: Use SamplingValidationResponse.ProtoReflect.Descriptor instead.

func (*SamplingValidationResponse) ProtoMessage

func (*SamplingValidationResponse) ProtoMessage()

func (*SamplingValidationResponse) ProtoReflect

func (*SamplingValidationResponse) Reset

func (x *SamplingValidationResponse) Reset()

func (*SamplingValidationResponse) String

func (x *SamplingValidationResponse) String() string

type SuggestionClient

type SuggestionClient interface {
	GetSuggestions(ctx context.Context, in *SamplingRequest, opts ...grpc.CallOption) (*SamplingResponse, error)
	ValidateAlgorithmSettings(ctx context.Context, in *SamplingValidationRequest, opts ...grpc.CallOption) (*SamplingValidationResponse, error)
}

SuggestionClient is the client API for Suggestion service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSuggestionClient

func NewSuggestionClient(cc grpc.ClientConnInterface) SuggestionClient

type SuggestionServer

type SuggestionServer interface {
	GetSuggestions(context.Context, *SamplingRequest) (*SamplingResponse, error)
	ValidateAlgorithmSettings(context.Context, *SamplingValidationRequest) (*SamplingValidationResponse, error)
}

SuggestionServer is the server API for Suggestion service.

type TrialResult

type TrialResult struct {
	ParameterAssignments []*KeyValue `protobuf:"bytes,1,rep,name=parameter_assignments,json=parameterAssignments,proto3" json:"parameter_assignments,omitempty"`
	ObjectValue          float32     `protobuf:"fixed32,2,opt,name=object_value,json=objectValue,proto3" json:"object_value,omitempty"` //
	// contains filtered or unexported fields
}

func (*TrialResult) Descriptor deprecated

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

Deprecated: Use TrialResult.ProtoReflect.Descriptor instead.

func (*TrialResult) GetObjectValue

func (x *TrialResult) GetObjectValue() float32

func (*TrialResult) GetParameterAssignments

func (x *TrialResult) GetParameterAssignments() []*KeyValue

func (*TrialResult) ProtoMessage

func (*TrialResult) ProtoMessage()

func (*TrialResult) ProtoReflect

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

func (*TrialResult) Reset

func (x *TrialResult) Reset()

func (*TrialResult) String

func (x *TrialResult) String() string

type UnimplementedSuggestionServer

type UnimplementedSuggestionServer struct {
}

UnimplementedSuggestionServer can be embedded to have forward compatible implementations.

func (*UnimplementedSuggestionServer) GetSuggestions

func (*UnimplementedSuggestionServer) ValidateAlgorithmSettings

Jump to

Keyboard shortcuts

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