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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
    • clear

      public PointMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PointMetadata.Builder>
    • getDefaultInstanceForType

      public PointMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PointMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PointMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PointMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PointMetadata.Builder>
    • mergeFrom

      public PointMetadata.Builder mergeFrom(PointMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface PointMetadataOrBuilder
      Returns:
      Whether the pointType field is set.
    • getPointType

      public PointType getPointType()
       Type of the point that this metadata corresponds to.
       
      optional .operations_research.pdlp.PointType point_type = 1;
      Specified by:
      getPointType in interface PointMetadataOrBuilder
      Returns:
      The pointType.
    • setPointType

      public PointMetadata.Builder setPointType(PointType value)
       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

      public PointMetadata.Builder clearPointType()
       Type of the point that this metadata corresponds to.
       
      optional .operations_research.pdlp.PointType point_type = 1;
      Returns:
      This builder for chaining.
    • getRandomPrimalProjectionsList

      public List<Double> getRandomPrimalProjectionsList()
       Projections of the primal solution onto random planes.
       
      repeated double random_primal_projections = 2 [packed = true];
      Specified by:
      getRandomPrimalProjectionsList in interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The randomPrimalProjections at the given index.
    • setRandomPrimalProjections

      public PointMetadata.Builder setRandomPrimalProjections(int index, double value)
       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

      public PointMetadata.Builder addRandomPrimalProjections(double value)
       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

      public PointMetadata.Builder addAllRandomPrimalProjections(Iterable<? extends Double> values)
       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

      public PointMetadata.Builder clearRandomPrimalProjections()
       Projections of the primal solution onto random planes.
       
      repeated double random_primal_projections = 2 [packed = true];
      Returns:
      This builder for chaining.
    • getRandomDualProjectionsList

      public List<Double> getRandomDualProjectionsList()
       Projections of the dual solution onto random planes.
       
      repeated double random_dual_projections = 3 [packed = true];
      Specified by:
      getRandomDualProjectionsList in interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The randomDualProjections at the given index.
    • setRandomDualProjections

      public PointMetadata.Builder setRandomDualProjections(int index, double value)
       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

      public PointMetadata.Builder addRandomDualProjections(double value)
       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

      public PointMetadata.Builder addAllRandomDualProjections(Iterable<? extends Double> values)
       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

      public PointMetadata.Builder 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 interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      Returns:
      The activePrimalVariableCount.
    • setActivePrimalVariableCount

      public PointMetadata.Builder setActivePrimalVariableCount(long value)
       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

      public PointMetadata.Builder 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 interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      Returns:
      The activeDualVariableCount.
    • setActiveDualVariableCount

      public PointMetadata.Builder setActiveDualVariableCount(long value)
       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

      public PointMetadata.Builder 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 interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      Returns:
      The activePrimalVariableChange.
    • setActivePrimalVariableChange

      public PointMetadata.Builder setActivePrimalVariableChange(long value)
       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

      public PointMetadata.Builder 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 interface PointMetadataOrBuilder
      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 interface PointMetadataOrBuilder
      Returns:
      The activeDualVariableChange.
    • setActiveDualVariableChange

      public PointMetadata.Builder setActiveDualVariableChange(long value)
       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

      public PointMetadata.Builder 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.