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

Public Member Functions

Builder clear ()
 
com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
 
com.google.ortools.linearsolver.OptionalDouble getDefaultInstanceForType ()
 
com.google.ortools.linearsolver.OptionalDouble build ()
 
com.google.ortools.linearsolver.OptionalDouble buildPartial ()
 
Builder mergeFrom (com.google.protobuf.Message other)
 
Builder mergeFrom (com.google.ortools.linearsolver.OptionalDouble other)
 
final boolean isInitialized ()
 
Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
 
boolean hasValue ()
 
double getValue ()
 
Builder setValue (double value)
 
Builder clearValue ()
 
- Public Member Functions inherited from com.google.ortools.linearsolver.OptionalDoubleOrBuilder

Static Public Member Functions

static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
 

Protected Member Functions

com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable ()
 

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 241 of file OptionalDouble.java.

Member Function Documentation

◆ build()

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

Definition at line 288 of file OptionalDouble.java.

◆ buildPartial()

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

Definition at line 297 of file OptionalDouble.java.

◆ clear()

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

Definition at line 269 of file OptionalDouble.java.

◆ clearValue()

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

optional double value = 1;

Returns
This builder for chaining.

Definition at line 410 of file OptionalDouble.java.

◆ getDefaultInstanceForType()

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

Definition at line 283 of file OptionalDouble.java.

◆ getDescriptor()

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

Definition at line 246 of file OptionalDouble.java.

◆ getDescriptorForType()

com.google.protobuf.Descriptors.Descriptor com.google.ortools.linearsolver.OptionalDouble.Builder.getDescriptorForType ( )

Definition at line 278 of file OptionalDouble.java.

◆ getValue()

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

optional double value = 1;

Returns
The value.

Implements com.google.ortools.linearsolver.OptionalDoubleOrBuilder.

Definition at line 391 of file OptionalDouble.java.

◆ hasValue()

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

optional double value = 1;

Returns
Whether the value field is set.

Implements com.google.ortools.linearsolver.OptionalDoubleOrBuilder.

Definition at line 383 of file OptionalDouble.java.

◆ internalGetFieldAccessorTable()

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

Definition at line 252 of file OptionalDouble.java.

◆ isInitialized()

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

Definition at line 335 of file OptionalDouble.java.

◆ mergeFrom() [1/3]

Builder com.google.ortools.linearsolver.OptionalDouble.Builder.mergeFrom ( com.google.ortools.linearsolver.OptionalDouble other)

Definition at line 324 of file OptionalDouble.java.

◆ mergeFrom() [2/3]

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

Definition at line 340 of file OptionalDouble.java.

◆ mergeFrom() [3/3]

Builder com.google.ortools.linearsolver.OptionalDouble.Builder.mergeFrom ( com.google.protobuf.Message other)

Definition at line 315 of file OptionalDouble.java.

◆ setValue()

Builder com.google.ortools.linearsolver.OptionalDouble.Builder.setValue ( double value)

optional double value = 1;

Parameters
valueThe value to set.
Returns
This builder for chaining.

Definition at line 399 of file OptionalDouble.java.


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