Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType Enum Reference

Detailed Description

The target of an Annotation is a single entity (e.g. a variable).
Several Annotations may apply to the same entity.

Protobuf enum operations_research.MPModelProto.Annotation.TargetType

Definition at line 223 of file MPModelProto.java.

Inheritance diagram for com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType:

Public Member Functions

final int getNumber ()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor ()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType ()

Static Public Member Functions

 [static initializer]
static TargetType valueOf (int value)
static TargetType forNumber (int value)
static com.google.protobuf.Internal.EnumLiteMap< TargetTypeinternalGetValueMap ()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor ()
static TargetType valueOf (com.google.protobuf.Descriptors.EnumValueDescriptor desc)

Public Attributes

 VARIABLE_DEFAULT =(0)
 CONSTRAINT =(1)
 GENERAL_CONSTRAINT =(2)

Static Public Attributes

static final int VARIABLE_DEFAULT_VALUE = 0
static final int CONSTRAINT_VALUE = 1
static final int GENERAL_CONSTRAINT_VALUE = 2

Member Function Documentation

◆ [static initializer]()

com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.[static initializer]
static

◆ forNumber()

TargetType com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.forNumber ( int value)
static
Parameters
valueThe numeric wire value of the corresponding enum entry.
Returns
The enum associated with the given numeric wire value.

Definition at line 280 of file MPModelProto.java.

◆ getDescriptor()

com.google.protobuf.Descriptors.EnumDescriptor com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.getDescriptor ( )
static

Definition at line 310 of file MPModelProto.java.

◆ getDescriptorForType()

final com.google.protobuf.Descriptors.EnumDescriptor com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.getDescriptorForType ( )

Definition at line 306 of file MPModelProto.java.

◆ getNumber()

final int com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.getNumber ( )

Definition at line 262 of file MPModelProto.java.

◆ getValueDescriptor()

final com.google.protobuf.Descriptors.EnumValueDescriptor com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.getValueDescriptor ( )

Definition at line 302 of file MPModelProto.java.

◆ internalGetValueMap()

com.google.protobuf.Internal.EnumLiteMap< TargetType > com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.internalGetValueMap ( )
static

Definition at line 290 of file MPModelProto.java.

◆ valueOf() [1/2]

TargetType com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.valueOf ( com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static

Definition at line 316 of file MPModelProto.java.

◆ valueOf() [2/2]

TargetType com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.valueOf ( int value)
static
Parameters
valueThe numeric wire value of the corresponding enum entry.
Returns
The enum associated with the given numeric wire value.
Deprecated
Use forNumber(int) instead.

Definition at line 272 of file MPModelProto.java.

Member Data Documentation

◆ CONSTRAINT

com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.CONSTRAINT =(1)

CONSTRAINT = 1;

Definition at line 232 of file MPModelProto.java.

◆ CONSTRAINT_VALUE

final int com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.CONSTRAINT_VALUE = 1
static

CONSTRAINT = 1;

Definition at line 255 of file MPModelProto.java.

◆ GENERAL_CONSTRAINT

com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.GENERAL_CONSTRAINT =(2)

GENERAL_CONSTRAINT = 2;

Definition at line 236 of file MPModelProto.java.

◆ GENERAL_CONSTRAINT_VALUE

final int com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.GENERAL_CONSTRAINT_VALUE = 2
static

GENERAL_CONSTRAINT = 2;

Definition at line 259 of file MPModelProto.java.

◆ VARIABLE_DEFAULT

com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.VARIABLE_DEFAULT =(0)

VARIABLE_DEFAULT = 0;

Definition at line 228 of file MPModelProto.java.

◆ VARIABLE_DEFAULT_VALUE

final int com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType.VARIABLE_DEFAULT_VALUE = 0
static

VARIABLE_DEFAULT = 0;

Definition at line 251 of file MPModelProto.java.


The documentation for this enum was generated from the following file:
  • build/java/ortools-java/src/main/java/com/google/ortools/linearsolver/MPModelProto.java