Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPModelProto.Annotation Class Reference
Inheritance diagram for com.google.ortools.linearsolver.MPModelProto.Annotation:
com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder

Classes

class  Builder
 
enum  TargetType
 

Public Member Functions

boolean hasTargetType ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType getTargetType ()
 
boolean hasTargetIndex ()
 
int getTargetIndex ()
 
boolean hasTargetName ()
 
java.lang.String getTargetName ()
 
com.google.protobuf.ByteString getTargetNameBytes ()
 
boolean hasPayloadKey ()
 
java.lang.String getPayloadKey ()
 
com.google.protobuf.ByteString getPayloadKeyBytes ()
 
boolean hasPayloadValue ()
 
java.lang.String getPayloadValue ()
 
com.google.protobuf.ByteString getPayloadValueBytes ()
 
final boolean isInitialized ()
 
void writeTo (com.google.protobuf.CodedOutputStream output) throws java.io.IOException
 
int getSerializedSize ()
 
boolean equals (final java.lang.Object obj)
 
int hashCode ()
 
Builder newBuilderForType ()
 
Builder toBuilder ()
 
com.google.protobuf.Parser< AnnotationgetParserForType ()
 
com.google.ortools.linearsolver.MPModelProto.Annotation getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.MPModelProto.Annotation parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static Builder newBuilder ()
 
static Builder newBuilder (com.google.ortools.linearsolver.MPModelProto.Annotation prototype)
 
static com.google.ortools.linearsolver.MPModelProto.Annotation getDefaultInstance ()
 
static com.google.protobuf.Parser< Annotationparser ()
 

Static Public Attributes

static final int TARGET_TYPE_FIELD_NUMBER = 1
 
static final int TARGET_INDEX_FIELD_NUMBER = 2
 
static final int TARGET_NAME_FIELD_NUMBER = 3
 
static final int PAYLOAD_KEY_FIELD_NUMBER = 4
 
static final int PAYLOAD_VALUE_FIELD_NUMBER = 5
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 
Builder newBuilderForType (com.google.protobuf.GeneratedMessage.BuilderParent parent)
 

Detailed Description

Annotations can be freely added by users who want to attach arbitrary
payload to the model's variables or constraints.

Protobuf type operations_research.MPModelProto.Annotation

Definition at line 175 of file MPModelProto.java.

Member Function Documentation

◆ equals()

boolean com.google.ortools.linearsolver.MPModelProto.Annotation.equals ( final java.lang.Object obj)

Definition at line 615 of file MPModelProto.java.

◆ getDefaultInstance()

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstance ( )
static

Definition at line 1390 of file MPModelProto.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.getDefaultInstanceForType ( )

Definition at line 1426 of file MPModelProto.java.

◆ getDescriptor()

static final com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.MPModelProto.Annotation.getDescriptor ( )
static

Definition at line 201 of file MPModelProto.java.

◆ getParserForType()

com.google.protobuf.Parser< Annotation > com.google.ortools.linearsolver.MPModelProto.Annotation.getParserForType ( )

Definition at line 1421 of file MPModelProto.java.

◆ getPayloadKey()

java.lang.String com.google.ortools.linearsolver.MPModelProto.Annotation.getPayloadKey ( )
The payload is a (key, value) string pair. Depending on the use cases,
one of the two may be omitted.

optional string payload_key = 4;

Returns
The payloadKey.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 467 of file MPModelProto.java.

◆ getPayloadKeyBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelProto.Annotation.getPayloadKeyBytes ( )
The payload is a (key, value) string pair. Depending on the use cases,
one of the two may be omitted.

optional string payload_key = 4;

Returns
The bytes for payloadKey.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 492 of file MPModelProto.java.

◆ getPayloadValue()

java.lang.String com.google.ortools.linearsolver.MPModelProto.Annotation.getPayloadValue ( )

optional string payload_value = 5;

Returns
The payloadValue.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 521 of file MPModelProto.java.

◆ getPayloadValueBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelProto.Annotation.getPayloadValueBytes ( )

optional string payload_value = 5;

Returns
The bytes for payloadValue.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 541 of file MPModelProto.java.

◆ getSerializedSize()

int com.google.ortools.linearsolver.MPModelProto.Annotation.getSerializedSize ( )

Definition at line 587 of file MPModelProto.java.

◆ getTargetIndex()

int com.google.ortools.linearsolver.MPModelProto.Annotation.getTargetIndex ( )
If both `target_index` and `target_name` are set, they must point to the
same entity.

optional int32 target_index = 2;

Returns
The targetIndex.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 376 of file MPModelProto.java.

◆ getTargetName()

java.lang.String com.google.ortools.linearsolver.MPModelProto.Annotation.getTargetName ( )
Alternate to index. Assumes uniqueness.

optional string target_name = 3;

Returns
The targetName.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 404 of file MPModelProto.java.

◆ getTargetNameBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPModelProto.Annotation.getTargetNameBytes ( )
Alternate to index. Assumes uniqueness.

optional string target_name = 3;

Returns
The bytes for targetName.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 428 of file MPModelProto.java.

◆ getTargetType()

com.google.ortools.linearsolver.MPModelProto.Annotation.TargetType com.google.ortools.linearsolver.MPModelProto.Annotation.getTargetType ( )

optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;

Returns
The targetType.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 346 of file MPModelProto.java.

◆ hashCode()

int com.google.ortools.linearsolver.MPModelProto.Annotation.hashCode ( )

Definition at line 653 of file MPModelProto.java.

◆ hasPayloadKey()

boolean com.google.ortools.linearsolver.MPModelProto.Annotation.hasPayloadKey ( )
The payload is a (key, value) string pair. Depending on the use cases,
one of the two may be omitted.

optional string payload_key = 4;

Returns
Whether the payloadKey field is set.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 454 of file MPModelProto.java.

◆ hasPayloadValue()

boolean com.google.ortools.linearsolver.MPModelProto.Annotation.hasPayloadValue ( )

optional string payload_value = 5;

Returns
Whether the payloadValue field is set.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 513 of file MPModelProto.java.

◆ hasTargetIndex()

boolean com.google.ortools.linearsolver.MPModelProto.Annotation.hasTargetIndex ( )
If both `target_index` and `target_name` are set, they must point to the
same entity.

optional int32 target_index = 2;

Returns
Whether the targetIndex field is set.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 363 of file MPModelProto.java.

◆ hasTargetName()

boolean com.google.ortools.linearsolver.MPModelProto.Annotation.hasTargetName ( )
Alternate to index. Assumes uniqueness.

optional string target_name = 3;

Returns
Whether the targetName field is set.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 392 of file MPModelProto.java.

◆ hasTargetType()

boolean com.google.ortools.linearsolver.MPModelProto.Annotation.hasTargetType ( )

optional .operations_research.MPModelProto.Annotation.TargetType target_type = 1;

Returns
Whether the targetType field is set.

Implements com.google.ortools.linearsolver.MPModelProto.AnnotationOrBuilder.

Definition at line 339 of file MPModelProto.java.

◆ internalGetFieldAccessorTable()

com.google.protobuf.GeneratedMessage.FieldAccessorTable com.google.ortools.linearsolver.MPModelProto.Annotation.internalGetFieldAccessorTable ( )
protected

Definition at line 207 of file MPModelProto.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.MPModelProto.Annotation.isInitialized ( )

Definition at line 556 of file MPModelProto.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.linearsolver.MPModelProto.Annotation.newBuilder ( )
static

Definition at line 758 of file MPModelProto.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.linearsolver.MPModelProto.Annotation.newBuilder ( com.google.ortools.linearsolver.MPModelProto.Annotation prototype)
static

Definition at line 761 of file MPModelProto.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.linearsolver.MPModelProto.Annotation.newBuilderForType ( )

Definition at line 757 of file MPModelProto.java.

◆ newBuilderForType() [2/2]

Builder com.google.ortools.linearsolver.MPModelProto.Annotation.newBuilderForType ( com.google.protobuf.GeneratedMessage.BuilderParent parent)
protected

Definition at line 771 of file MPModelProto.java.

◆ parseDelimitedFrom() [1/2]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseDelimitedFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 729 of file MPModelProto.java.

◆ parseDelimitedFrom() [2/2]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseDelimitedFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 735 of file MPModelProto.java.

◆ parseFrom() [1/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 706 of file MPModelProto.java.

◆ parseFrom() [2/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 710 of file MPModelProto.java.

◆ parseFrom() [3/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 695 of file MPModelProto.java.

◆ parseFrom() [4/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 700 of file MPModelProto.java.

◆ parseFrom() [5/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( com.google.protobuf.CodedInputStream input) throws java.io.IOException
static

Definition at line 742 of file MPModelProto.java.

◆ parseFrom() [6/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 748 of file MPModelProto.java.

◆ parseFrom() [7/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( java.io.InputStream input) throws java.io.IOException
static

Definition at line 716 of file MPModelProto.java.

◆ parseFrom() [8/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws java.io.IOException
static

Definition at line 721 of file MPModelProto.java.

◆ parseFrom() [9/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 684 of file MPModelProto.java.

◆ parseFrom() [10/10]

static com.google.ortools.linearsolver.MPModelProto.Annotation com.google.ortools.linearsolver.MPModelProto.Annotation.parseFrom ( java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry ) throws com.google.protobuf.InvalidProtocolBufferException
static

Definition at line 689 of file MPModelProto.java.

◆ parser()

static com.google.protobuf.Parser< Annotation > com.google.ortools.linearsolver.MPModelProto.Annotation.parser ( )
static

Definition at line 1416 of file MPModelProto.java.

◆ toBuilder()

Builder com.google.ortools.linearsolver.MPModelProto.Annotation.toBuilder ( )

Definition at line 765 of file MPModelProto.java.

◆ writeTo()

void com.google.ortools.linearsolver.MPModelProto.Annotation.writeTo ( com.google.protobuf.CodedOutputStream output) throws java.io.IOException

Definition at line 566 of file MPModelProto.java.

Member Data Documentation

◆ PAYLOAD_KEY_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.Annotation.PAYLOAD_KEY_FIELD_NUMBER = 4
static

Definition at line 441 of file MPModelProto.java.

◆ PAYLOAD_VALUE_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.Annotation.PAYLOAD_VALUE_FIELD_NUMBER = 5
static

Definition at line 505 of file MPModelProto.java.

◆ TARGET_INDEX_FIELD_NUMBER

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

Definition at line 351 of file MPModelProto.java.

◆ TARGET_NAME_FIELD_NUMBER

final int com.google.ortools.linearsolver.MPModelProto.Annotation.TARGET_NAME_FIELD_NUMBER = 3
static

Definition at line 380 of file MPModelProto.java.

◆ TARGET_TYPE_FIELD_NUMBER

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

Definition at line 333 of file MPModelProto.java.


The documentation for this class was generated from the following file: