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

Classes

class  Builder
 

Public Member Functions

boolean hasValue ()
 
double getValue ()
 
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< OptionalDoublegetParserForType ()
 
com.google.ortools.linearsolver.OptionalDouble getDefaultInstanceForType ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.OptionalDoubleOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.OptionalDouble parseDelimitedFrom (java.io.InputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.OptionalDouble parseDelimitedFrom (java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
static com.google.ortools.linearsolver.OptionalDouble parseFrom (com.google.protobuf.CodedInputStream input) throws java.io.IOException
 
static com.google.ortools.linearsolver.OptionalDouble 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.OptionalDouble prototype)
 
static com.google.ortools.linearsolver.OptionalDouble getDefaultInstance ()
 
static com.google.protobuf.Parser< OptionalDoubleparser ()
 

Static Public Attributes

static final int VALUE_FIELD_NUMBER = 1
 

Protected Member Functions

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

Detailed Description

To support 'unspecified' double value in proto3, the simplest is to wrap
any double value in a nested message (has_XXX works for message fields).

Protobuf type operations_research.OptionalDouble

Definition at line 15 of file OptionalDouble.java.

Member Function Documentation

◆ equals()

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

Definition at line 105 of file OptionalDouble.java.

◆ getDefaultInstance()

static com.google.ortools.linearsolver.OptionalDouble com.google.ortools.linearsolver.OptionalDouble.getDefaultInstance ( )
static

Definition at line 426 of file OptionalDouble.java.

◆ getDefaultInstanceForType()

com.google.ortools.linearsolver.OptionalDouble com.google.ortools.linearsolver.OptionalDouble.getDefaultInstanceForType ( )

Definition at line 462 of file OptionalDouble.java.

◆ getDescriptor()

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

Definition at line 37 of file OptionalDouble.java.

◆ getParserForType()

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

Definition at line 457 of file OptionalDouble.java.

◆ getSerializedSize()

int com.google.ortools.linearsolver.OptionalDouble.getSerializedSize ( )

Definition at line 90 of file OptionalDouble.java.

◆ getValue()

double com.google.ortools.linearsolver.OptionalDouble.getValue ( )

optional double value = 1;

Returns
The value.

Implements com.google.ortools.linearsolver.OptionalDoubleOrBuilder.

Definition at line 65 of file OptionalDouble.java.

◆ hashCode()

int com.google.ortools.linearsolver.OptionalDouble.hashCode ( )

Definition at line 125 of file OptionalDouble.java.

◆ hasValue()

boolean com.google.ortools.linearsolver.OptionalDouble.hasValue ( )

optional double value = 1;

Returns
Whether the value field is set.

Implements com.google.ortools.linearsolver.OptionalDoubleOrBuilder.

Definition at line 57 of file OptionalDouble.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 43 of file OptionalDouble.java.

◆ isInitialized()

final boolean com.google.ortools.linearsolver.OptionalDouble.isInitialized ( )

Definition at line 71 of file OptionalDouble.java.

◆ newBuilder() [1/2]

static Builder com.google.ortools.linearsolver.OptionalDouble.newBuilder ( )
static

Definition at line 215 of file OptionalDouble.java.

◆ newBuilder() [2/2]

static Builder com.google.ortools.linearsolver.OptionalDouble.newBuilder ( com.google.ortools.linearsolver.OptionalDouble prototype)
static

Definition at line 218 of file OptionalDouble.java.

◆ newBuilderForType() [1/2]

Builder com.google.ortools.linearsolver.OptionalDouble.newBuilderForType ( )

Definition at line 214 of file OptionalDouble.java.

◆ newBuilderForType() [2/2]

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

Definition at line 228 of file OptionalDouble.java.

◆ parseDelimitedFrom() [1/2]

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

Definition at line 186 of file OptionalDouble.java.

◆ parseDelimitedFrom() [2/2]

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

Definition at line 192 of file OptionalDouble.java.

◆ parseFrom() [1/10]

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

Definition at line 163 of file OptionalDouble.java.

◆ parseFrom() [2/10]

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

Definition at line 167 of file OptionalDouble.java.

◆ parseFrom() [3/10]

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

Definition at line 152 of file OptionalDouble.java.

◆ parseFrom() [4/10]

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

Definition at line 157 of file OptionalDouble.java.

◆ parseFrom() [5/10]

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

Definition at line 199 of file OptionalDouble.java.

◆ parseFrom() [6/10]

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

Definition at line 205 of file OptionalDouble.java.

◆ parseFrom() [7/10]

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

Definition at line 173 of file OptionalDouble.java.

◆ parseFrom() [8/10]

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

Definition at line 178 of file OptionalDouble.java.

◆ parseFrom() [9/10]

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

Definition at line 141 of file OptionalDouble.java.

◆ parseFrom() [10/10]

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

Definition at line 146 of file OptionalDouble.java.

◆ parser()

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

Definition at line 452 of file OptionalDouble.java.

◆ toBuilder()

Builder com.google.ortools.linearsolver.OptionalDouble.toBuilder ( )

Definition at line 222 of file OptionalDouble.java.

◆ writeTo()

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

Definition at line 81 of file OptionalDouble.java.

Member Data Documentation

◆ VALUE_FIELD_NUMBER

final int com.google.ortools.linearsolver.OptionalDouble.VALUE_FIELD_NUMBER = 1
static

Definition at line 50 of file OptionalDouble.java.


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