Class PointMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PointMetadata.Builder>
com.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
com.google.ortools.pdlp.PointMetadata.Builder
- All Implemented Interfaces:
PointMetadataOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
PointMetadata
public static final class PointMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
implements PointMetadataOrBuilder
Protobuf type
operations_research.pdlp.PointMetadata
-
Method Summary
Modifier and TypeMethodDescriptionaddAllRandomDualProjections
(Iterable<? extends Double> values) Projections of the dual solution onto random planes.addAllRandomPrimalProjections
(Iterable<? extends Double> values) Projections of the primal solution onto random planes.addRandomDualProjections
(double value) Projections of the dual solution onto random planes.addRandomPrimalProjections
(double value) Projections of the primal solution onto random planes.build()
clear()
The number of dual variables that have a different bound status than they did at the last restart.The number of dual variables that are not at their bounds.The number of primal variables that have a different bound status than they did at the last restart.The number of primal variables that are not at their bounds.Type of the point that this metadata corresponds to.Projections of the dual solution onto random planes.Projections of the primal solution onto random planes.long
The number of dual variables that have a different bound status than they did at the last restart.long
The number of dual variables that are not at their bounds.long
The number of primal variables that have a different bound status than they did at the last restart.long
The number of primal variables that are not at their bounds.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Type of the point that this metadata corresponds to.double
getRandomDualProjections
(int index) Projections of the dual solution onto random planes.int
Projections of the dual solution onto random planes.Projections of the dual solution onto random planes.double
getRandomPrimalProjections
(int index) Projections of the primal solution onto random planes.int
Projections of the primal solution onto random planes.Projections of the primal solution onto random planes.boolean
The number of dual variables that have a different bound status than they did at the last restart.boolean
The number of dual variables that are not at their bounds.boolean
The number of primal variables that have a different bound status than they did at the last restart.boolean
The number of primal variables that are not at their bounds.boolean
Type of the point that this metadata corresponds to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(PointMetadata other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setActiveDualVariableChange
(long value) The number of dual variables that have a different bound status than they did at the last restart.setActiveDualVariableCount
(long value) The number of dual variables that are not at their bounds.setActivePrimalVariableChange
(long value) The number of primal variables that have a different bound status than they did at the last restart.setActivePrimalVariableCount
(long value) The number of primal variables that are not at their bounds.setPointType
(PointType value) Type of the point that this metadata corresponds to.setRandomDualProjections
(int index, double value) Projections of the dual solution onto random planes.setRandomPrimalProjections
(int index, double value) Projections of the primal solution onto random planes.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PointMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
-
mergeFrom
public PointMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PointMetadata.Builder>
- Throws:
IOException
-
hasPointType
public boolean hasPointType()Type of the point that this metadata corresponds to.
optional .operations_research.pdlp.PointType point_type = 1;
- Specified by:
hasPointType
in interfacePointMetadataOrBuilder
- Returns:
- Whether the pointType field is set.
-
getPointType
Type of the point that this metadata corresponds to.
optional .operations_research.pdlp.PointType point_type = 1;
- Specified by:
getPointType
in interfacePointMetadataOrBuilder
- Returns:
- The pointType.
-
setPointType
Type of the point that this metadata corresponds to.
optional .operations_research.pdlp.PointType point_type = 1;
- Parameters:
value
- The pointType to set.- Returns:
- This builder for chaining.
-
clearPointType
Type of the point that this metadata corresponds to.
optional .operations_research.pdlp.PointType point_type = 1;
- Returns:
- This builder for chaining.
-
getRandomPrimalProjectionsList
Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Specified by:
getRandomPrimalProjectionsList
in interfacePointMetadataOrBuilder
- Returns:
- A list containing the randomPrimalProjections.
-
getRandomPrimalProjectionsCount
public int getRandomPrimalProjectionsCount()Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Specified by:
getRandomPrimalProjectionsCount
in interfacePointMetadataOrBuilder
- Returns:
- The count of randomPrimalProjections.
-
getRandomPrimalProjections
public double getRandomPrimalProjections(int index) Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Specified by:
getRandomPrimalProjections
in interfacePointMetadataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The randomPrimalProjections at the given index.
-
setRandomPrimalProjections
Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The randomPrimalProjections to set.- Returns:
- This builder for chaining.
-
addRandomPrimalProjections
Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Parameters:
value
- The randomPrimalProjections to add.- Returns:
- This builder for chaining.
-
addAllRandomPrimalProjections
Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Parameters:
values
- The randomPrimalProjections to add.- Returns:
- This builder for chaining.
-
clearRandomPrimalProjections
Projections of the primal solution onto random planes.
repeated double random_primal_projections = 2 [packed = true];
- Returns:
- This builder for chaining.
-
getRandomDualProjectionsList
Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Specified by:
getRandomDualProjectionsList
in interfacePointMetadataOrBuilder
- Returns:
- A list containing the randomDualProjections.
-
getRandomDualProjectionsCount
public int getRandomDualProjectionsCount()Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Specified by:
getRandomDualProjectionsCount
in interfacePointMetadataOrBuilder
- Returns:
- The count of randomDualProjections.
-
getRandomDualProjections
public double getRandomDualProjections(int index) Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Specified by:
getRandomDualProjections
in interfacePointMetadataOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The randomDualProjections at the given index.
-
setRandomDualProjections
Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The randomDualProjections to set.- Returns:
- This builder for chaining.
-
addRandomDualProjections
Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Parameters:
value
- The randomDualProjections to add.- Returns:
- This builder for chaining.
-
addAllRandomDualProjections
Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Parameters:
values
- The randomDualProjections to add.- Returns:
- This builder for chaining.
-
clearRandomDualProjections
Projections of the dual solution onto random planes.
repeated double random_dual_projections = 3 [packed = true];
- Returns:
- This builder for chaining.
-
hasActivePrimalVariableCount
public boolean hasActivePrimalVariableCount()The number of primal variables that are not at their bounds.
optional int64 active_primal_variable_count = 4;
- Specified by:
hasActivePrimalVariableCount
in interfacePointMetadataOrBuilder
- Returns:
- Whether the activePrimalVariableCount field is set.
-
getActivePrimalVariableCount
public long getActivePrimalVariableCount()The number of primal variables that are not at their bounds.
optional int64 active_primal_variable_count = 4;
- Specified by:
getActivePrimalVariableCount
in interfacePointMetadataOrBuilder
- Returns:
- The activePrimalVariableCount.
-
setActivePrimalVariableCount
The number of primal variables that are not at their bounds.
optional int64 active_primal_variable_count = 4;
- Parameters:
value
- The activePrimalVariableCount to set.- Returns:
- This builder for chaining.
-
clearActivePrimalVariableCount
The number of primal variables that are not at their bounds.
optional int64 active_primal_variable_count = 4;
- Returns:
- This builder for chaining.
-
hasActiveDualVariableCount
public boolean hasActiveDualVariableCount()The number of dual variables that are not at their bounds.
optional int64 active_dual_variable_count = 5;
- Specified by:
hasActiveDualVariableCount
in interfacePointMetadataOrBuilder
- Returns:
- Whether the activeDualVariableCount field is set.
-
getActiveDualVariableCount
public long getActiveDualVariableCount()The number of dual variables that are not at their bounds.
optional int64 active_dual_variable_count = 5;
- Specified by:
getActiveDualVariableCount
in interfacePointMetadataOrBuilder
- Returns:
- The activeDualVariableCount.
-
setActiveDualVariableCount
The number of dual variables that are not at their bounds.
optional int64 active_dual_variable_count = 5;
- Parameters:
value
- The activeDualVariableCount to set.- Returns:
- This builder for chaining.
-
clearActiveDualVariableCount
The number of dual variables that are not at their bounds.
optional int64 active_dual_variable_count = 5;
- Returns:
- This builder for chaining.
-
hasActivePrimalVariableChange
public boolean hasActivePrimalVariableChange()The number of primal variables that have a different bound status than they did at the last restart.
optional int64 active_primal_variable_change = 6;
- Specified by:
hasActivePrimalVariableChange
in interfacePointMetadataOrBuilder
- Returns:
- Whether the activePrimalVariableChange field is set.
-
getActivePrimalVariableChange
public long getActivePrimalVariableChange()The number of primal variables that have a different bound status than they did at the last restart.
optional int64 active_primal_variable_change = 6;
- Specified by:
getActivePrimalVariableChange
in interfacePointMetadataOrBuilder
- Returns:
- The activePrimalVariableChange.
-
setActivePrimalVariableChange
The number of primal variables that have a different bound status than they did at the last restart.
optional int64 active_primal_variable_change = 6;
- Parameters:
value
- The activePrimalVariableChange to set.- Returns:
- This builder for chaining.
-
clearActivePrimalVariableChange
The number of primal variables that have a different bound status than they did at the last restart.
optional int64 active_primal_variable_change = 6;
- Returns:
- This builder for chaining.
-
hasActiveDualVariableChange
public boolean hasActiveDualVariableChange()The number of dual variables that have a different bound status than they did at the last restart.
optional int64 active_dual_variable_change = 7;
- Specified by:
hasActiveDualVariableChange
in interfacePointMetadataOrBuilder
- Returns:
- Whether the activeDualVariableChange field is set.
-
getActiveDualVariableChange
public long getActiveDualVariableChange()The number of dual variables that have a different bound status than they did at the last restart.
optional int64 active_dual_variable_change = 7;
- Specified by:
getActiveDualVariableChange
in interfacePointMetadataOrBuilder
- Returns:
- The activeDualVariableChange.
-
setActiveDualVariableChange
The number of dual variables that have a different bound status than they did at the last restart.
optional int64 active_dual_variable_change = 7;
- Parameters:
value
- The activeDualVariableChange to set.- Returns:
- This builder for chaining.
-
clearActiveDualVariableChange
The number of dual variables that have a different bound status than they did at the last restart.
optional int64 active_dual_variable_change = 7;
- Returns:
- This builder for chaining.
-