Documentation ¶
Index ¶
- Variables
- type OptionalBoolean
- func (OptionalBoolean) Descriptor() protoreflect.EnumDescriptor
- func (x OptionalBoolean) Enum() *OptionalBoolean
- func (OptionalBoolean) EnumDescriptor() ([]byte, []int)deprecated
- func (x OptionalBoolean) Number() protoreflect.EnumNumber
- func (x OptionalBoolean) String() string
- func (OptionalBoolean) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x OptionalBoolean) Number() protoreflect.EnumNumber
func (OptionalBoolean) String ¶
func (x OptionalBoolean) String() string
func (OptionalBoolean) Type ¶
func (OptionalBoolean) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.