Class DecisionStrategyProto.Builder

  • All Implemented Interfaces:
    DecisionStrategyProtoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    DecisionStrategyProto

    public static final class DecisionStrategyProto.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
    implements DecisionStrategyProtoOrBuilder
     Define the strategy to follow when the solver needs to take a new decision.
     Note that this strategy is only defined on a subset of variables.
     
    Protobuf type operations_research.sat.DecisionStrategyProto
    • Method Detail

      • getDescriptor

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

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

        public DecisionStrategyProto.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.GeneratedMessageV3.Builder<DecisionStrategyProto.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.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • getDefaultInstanceForType

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

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

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

        public DecisionStrategyProto.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • setField

        public DecisionStrategyProto.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                      java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • clearField

        public DecisionStrategyProto.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • clearOneof

        public DecisionStrategyProto.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • setRepeatedField

        public DecisionStrategyProto.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • addRepeatedField

        public DecisionStrategyProto.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • mergeFrom

        public DecisionStrategyProto.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws java.io.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<DecisionStrategyProto.Builder>
        Throws:
        java.io.IOException
      • getVariablesList

        public java.util.List<java.lang.Integer> getVariablesList()
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Specified by:
        getVariablesList in interface DecisionStrategyProtoOrBuilder
        Returns:
        A list containing the variables.
      • getVariablesCount

        public int getVariablesCount()
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Specified by:
        getVariablesCount in interface DecisionStrategyProtoOrBuilder
        Returns:
        The count of variables.
      • getVariables

        public int getVariables​(int index)
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Specified by:
        getVariables in interface DecisionStrategyProtoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The variables at the given index.
      • setVariables

        public DecisionStrategyProto.Builder setVariables​(int index,
                                                          int value)
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Parameters:
        index - The index to set the value at.
        value - The variables to set.
        Returns:
        This builder for chaining.
      • addVariables

        public DecisionStrategyProto.Builder addVariables​(int value)
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Parameters:
        value - The variables to add.
        Returns:
        This builder for chaining.
      • addAllVariables

        public DecisionStrategyProto.Builder addAllVariables​(java.lang.Iterable<? extends java.lang.Integer> values)
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Parameters:
        values - The variables to add.
        Returns:
        This builder for chaining.
      • clearVariables

        public DecisionStrategyProto.Builder clearVariables()
         The variables to be considered for the next decision. The order matter and
         is always used as a tie-breaker after the variable selection strategy
         criteria defined below.
         
        repeated int32 variables = 1;
        Returns:
        This builder for chaining.
      • getVariableSelectionStrategyValue

        public int getVariableSelectionStrategyValue()
        .operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;
        Specified by:
        getVariableSelectionStrategyValue in interface DecisionStrategyProtoOrBuilder
        Returns:
        The enum numeric value on the wire for variableSelectionStrategy.
      • setVariableSelectionStrategyValue

        public DecisionStrategyProto.Builder setVariableSelectionStrategyValue​(int value)
        .operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;
        Parameters:
        value - The enum numeric value on the wire for variableSelectionStrategy to set.
        Returns:
        This builder for chaining.
      • clearVariableSelectionStrategy

        public DecisionStrategyProto.Builder clearVariableSelectionStrategy()
        .operations_research.sat.DecisionStrategyProto.VariableSelectionStrategy variable_selection_strategy = 2;
        Returns:
        This builder for chaining.
      • getDomainReductionStrategyValue

        public int getDomainReductionStrategyValue()
        .operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
        Specified by:
        getDomainReductionStrategyValue in interface DecisionStrategyProtoOrBuilder
        Returns:
        The enum numeric value on the wire for domainReductionStrategy.
      • setDomainReductionStrategyValue

        public DecisionStrategyProto.Builder setDomainReductionStrategyValue​(int value)
        .operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
        Parameters:
        value - The enum numeric value on the wire for domainReductionStrategy to set.
        Returns:
        This builder for chaining.
      • clearDomainReductionStrategy

        public DecisionStrategyProto.Builder clearDomainReductionStrategy()
        .operations_research.sat.DecisionStrategyProto.DomainReductionStrategy domain_reduction_strategy = 3;
        Returns:
        This builder for chaining.
      • clearTransformations

        public DecisionStrategyProto.Builder clearTransformations()
        repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
      • removeTransformations

        public DecisionStrategyProto.Builder removeTransformations​(int index)
        repeated .operations_research.sat.DecisionStrategyProto.AffineTransformation transformations = 4;
      • setUnknownFields

        public final DecisionStrategyProto.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>
      • mergeUnknownFields

        public final DecisionStrategyProto.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DecisionStrategyProto.Builder>