Package com.google.ortools.sat
Interface LinearConstraintProtoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LinearConstraintProto,LinearConstraintProto.Builder
public interface LinearConstraintProtoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCoeffs(int index)Same size as vars.intgetCoeffsCount()Same size as vars.java.util.List<java.lang.Long>getCoeffsList()Same size as vars.longgetDomain(int index)repeated int64 domain = 3;intgetDomainCount()repeated int64 domain = 3;java.util.List<java.lang.Long>getDomainList()repeated int64 domain = 3;intgetVars(int index)repeated int32 vars = 1;intgetVarsCount()repeated int32 vars = 1;java.util.List<java.lang.Integer>getVarsList()repeated int32 vars = 1;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getVarsList
java.util.List<java.lang.Integer> getVarsList()
repeated int32 vars = 1;- Returns:
- A list containing the vars.
-
getVarsCount
int getVarsCount()
repeated int32 vars = 1;- Returns:
- The count of vars.
-
getVars
int getVars(int index)
repeated int32 vars = 1;- Parameters:
index- The index of the element to return.- Returns:
- The vars at the given index.
-
getCoeffsList
java.util.List<java.lang.Long> getCoeffsList()
Same size as vars.
repeated int64 coeffs = 2;- Returns:
- A list containing the coeffs.
-
getCoeffsCount
int getCoeffsCount()
Same size as vars.
repeated int64 coeffs = 2;- Returns:
- The count of coeffs.
-
getCoeffs
long getCoeffs(int index)
Same size as vars.
repeated int64 coeffs = 2;- Parameters:
index- The index of the element to return.- Returns:
- The coeffs at the given index.
-
getDomainList
java.util.List<java.lang.Long> getDomainList()
repeated int64 domain = 3;- Returns:
- A list containing the domain.
-
getDomainCount
int getDomainCount()
repeated int64 domain = 3;- Returns:
- The count of domain.
-
getDomain
long getDomain(int index)
repeated int64 domain = 3;- Parameters:
index- The index of the element to return.- Returns:
- The domain at the given index.
-
-