util

package
v0.0.0-...-7c7d34b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OptionalBoolean_name = map[int32]string{
		0: "BOOL_UNSPECIFIED",
		2: "BOOL_FALSE",
		3: "BOOL_TRUE",
	}
	OptionalBoolean_value = map[string]int32{
		"BOOL_UNSPECIFIED": 0,
		"BOOL_FALSE":       2,
		"BOOL_TRUE":        3,
	}
)

Enum value maps for OptionalBoolean.

View Source
var File_ortools_util_optional_boolean_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OptionalBoolean

type OptionalBoolean int32

A "three-way" boolean: unspecified, false or true.

We don't use the value of 1 to increase the chance to catch bugs: eg. in python, a user may set a proto field of this type enum to a boolean value without type checks, if they set it to True, the proto validity code will catch it (because it'll be cast to 1, which is an invalid enum value). Note that if the user sets if to False (i.e. 0), it will be caught by the routing library's parameter validity check too.

const (
	OptionalBoolean_BOOL_UNSPECIFIED OptionalBoolean = 0
	OptionalBoolean_BOOL_FALSE       OptionalBoolean = 2
	OptionalBoolean_BOOL_TRUE        OptionalBoolean = 3
)

func (OptionalBoolean) Descriptor

func (OptionalBoolean) Enum

func (x OptionalBoolean) Enum() *OptionalBoolean

func (OptionalBoolean) EnumDescriptor deprecated

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

Deprecated: Use OptionalBoolean.Descriptor instead.

func (OptionalBoolean) Number

func (OptionalBoolean) String

func (x OptionalBoolean) String() string

func (OptionalBoolean) Type

Jump to

Keyboard shortcuts

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