Package com.google.ortools.sat
Class IntervalConstraintProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
com.google.ortools.sat.IntervalConstraintProto.Builder
- All Implemented Interfaces:
IntervalConstraintProtoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- IntervalConstraintProto
public static final class IntervalConstraintProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder> implements IntervalConstraintProtoOrBuilder
This "special" constraint not only enforces (start + size == end) and (size >= 0) but can also be referred by other constraints using this "interval" concept.Protobuf type
operations_research.sat.IntervalConstraintProto-
Method Summary
Modifier and Type Method Description IntervalConstraintProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)IntervalConstraintProtobuild()IntervalConstraintProtobuildPartial()IntervalConstraintProto.Builderclear()IntervalConstraintProto.BuilderclearEnd()int32 end = 2;IntervalConstraintProto.BuilderclearEndView().operations_research.sat.LinearExpressionProto end_view = 5;IntervalConstraintProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)IntervalConstraintProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)IntervalConstraintProto.BuilderclearSize()int32 size = 3;IntervalConstraintProto.BuilderclearSizeView().operations_research.sat.LinearExpressionProto size_view = 6;IntervalConstraintProto.BuilderclearStart()int32 start = 1;IntervalConstraintProto.BuilderclearStartView()EXPERIMENTAL: This will become the new way to specify an interval.IntervalConstraintProto.Builderclone()IntervalConstraintProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetEnd()int32 end = 2;LinearExpressionProtogetEndView().operations_research.sat.LinearExpressionProto end_view = 5;LinearExpressionProto.BuildergetEndViewBuilder().operations_research.sat.LinearExpressionProto end_view = 5;LinearExpressionProtoOrBuildergetEndViewOrBuilder().operations_research.sat.LinearExpressionProto end_view = 5;intgetSize()int32 size = 3;LinearExpressionProtogetSizeView().operations_research.sat.LinearExpressionProto size_view = 6;LinearExpressionProto.BuildergetSizeViewBuilder().operations_research.sat.LinearExpressionProto size_view = 6;LinearExpressionProtoOrBuildergetSizeViewOrBuilder().operations_research.sat.LinearExpressionProto size_view = 6;intgetStart()int32 start = 1;LinearExpressionProtogetStartView()EXPERIMENTAL: This will become the new way to specify an interval.LinearExpressionProto.BuildergetStartViewBuilder()EXPERIMENTAL: This will become the new way to specify an interval.LinearExpressionProtoOrBuildergetStartViewOrBuilder()EXPERIMENTAL: This will become the new way to specify an interval.booleanhasEndView().operations_research.sat.LinearExpressionProto end_view = 5;booleanhasSizeView().operations_research.sat.LinearExpressionProto size_view = 6;booleanhasStartView()EXPERIMENTAL: This will become the new way to specify an interval.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()IntervalConstraintProto.BuildermergeEndView(LinearExpressionProto value).operations_research.sat.LinearExpressionProto end_view = 5;IntervalConstraintProto.BuildermergeFrom(IntervalConstraintProto other)IntervalConstraintProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)IntervalConstraintProto.BuildermergeFrom(com.google.protobuf.Message other)IntervalConstraintProto.BuildermergeSizeView(LinearExpressionProto value).operations_research.sat.LinearExpressionProto size_view = 6;IntervalConstraintProto.BuildermergeStartView(LinearExpressionProto value)EXPERIMENTAL: This will become the new way to specify an interval.IntervalConstraintProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)IntervalConstraintProto.BuildersetEnd(int value)int32 end = 2;IntervalConstraintProto.BuildersetEndView(LinearExpressionProto value).operations_research.sat.LinearExpressionProto end_view = 5;IntervalConstraintProto.BuildersetEndView(LinearExpressionProto.Builder builderForValue).operations_research.sat.LinearExpressionProto end_view = 5;IntervalConstraintProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)IntervalConstraintProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)IntervalConstraintProto.BuildersetSize(int value)int32 size = 3;IntervalConstraintProto.BuildersetSizeView(LinearExpressionProto value).operations_research.sat.LinearExpressionProto size_view = 6;IntervalConstraintProto.BuildersetSizeView(LinearExpressionProto.Builder builderForValue).operations_research.sat.LinearExpressionProto size_view = 6;IntervalConstraintProto.BuildersetStart(int value)int32 start = 1;IntervalConstraintProto.BuildersetStartView(LinearExpressionProto value)EXPERIMENTAL: This will become the new way to specify an interval.IntervalConstraintProto.BuildersetStartView(LinearExpressionProto.Builder builderForValue)EXPERIMENTAL: This will become the new way to specify an interval.IntervalConstraintProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
setField
public IntervalConstraintProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
clearField
public IntervalConstraintProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
clearOneof
public IntervalConstraintProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
setRepeatedField
public IntervalConstraintProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
addRepeatedField
public IntervalConstraintProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IntervalConstraintProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
mergeFrom
public IntervalConstraintProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IntervalConstraintProto.Builder>- Throws:
java.io.IOException
-
getStart
public int getStart()int32 start = 1;- Specified by:
getStartin interfaceIntervalConstraintProtoOrBuilder- Returns:
- The start.
-
setStart
int32 start = 1;- Parameters:
value- The start to set.- Returns:
- This builder for chaining.
-
clearStart
int32 start = 1;- Returns:
- This builder for chaining.
-
getEnd
public int getEnd()int32 end = 2;- Specified by:
getEndin interfaceIntervalConstraintProtoOrBuilder- Returns:
- The end.
-
setEnd
int32 end = 2;- Parameters:
value- The end to set.- Returns:
- This builder for chaining.
-
clearEnd
int32 end = 2;- Returns:
- This builder for chaining.
-
getSize
public int getSize()int32 size = 3;- Specified by:
getSizein interfaceIntervalConstraintProtoOrBuilder- Returns:
- The size.
-
setSize
int32 size = 3;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
int32 size = 3;- Returns:
- This builder for chaining.
-
hasStartView
public boolean hasStartView()EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4;- Specified by:
hasStartViewin interfaceIntervalConstraintProtoOrBuilder- Returns:
- Whether the startView field is set.
-
getStartView
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4;- Specified by:
getStartViewin interfaceIntervalConstraintProtoOrBuilder- Returns:
- The startView.
-
setStartView
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4; -
setStartView
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4; -
mergeStartView
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4; -
clearStartView
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4; -
getStartViewBuilder
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4; -
getStartViewOrBuilder
EXPERIMENTAL: This will become the new way to specify an interval. Depending on the parameters, the presolve will convert the old way to the new way. Do not forget to add an associated linear constraint if you use this directly. If any of this field is set, then all must be set and the ones above will be ignored. IMPORTANT: For now, this constraint do not enforce any relations on the view, and a linear constraint must be added together with this to enforce enforcement => start_view + size_view == end_view. An enforcement => size_view >=0 might also be needed. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.
.operations_research.sat.LinearExpressionProto start_view = 4;- Specified by:
getStartViewOrBuilderin interfaceIntervalConstraintProtoOrBuilder
-
hasEndView
public boolean hasEndView().operations_research.sat.LinearExpressionProto end_view = 5;- Specified by:
hasEndViewin interfaceIntervalConstraintProtoOrBuilder- Returns:
- Whether the endView field is set.
-
getEndView
.operations_research.sat.LinearExpressionProto end_view = 5;- Specified by:
getEndViewin interfaceIntervalConstraintProtoOrBuilder- Returns:
- The endView.
-
setEndView
.operations_research.sat.LinearExpressionProto end_view = 5; -
setEndView
.operations_research.sat.LinearExpressionProto end_view = 5; -
mergeEndView
.operations_research.sat.LinearExpressionProto end_view = 5; -
clearEndView
.operations_research.sat.LinearExpressionProto end_view = 5; -
getEndViewBuilder
.operations_research.sat.LinearExpressionProto end_view = 5; -
getEndViewOrBuilder
.operations_research.sat.LinearExpressionProto end_view = 5;- Specified by:
getEndViewOrBuilderin interfaceIntervalConstraintProtoOrBuilder
-
hasSizeView
public boolean hasSizeView().operations_research.sat.LinearExpressionProto size_view = 6;- Specified by:
hasSizeViewin interfaceIntervalConstraintProtoOrBuilder- Returns:
- Whether the sizeView field is set.
-
getSizeView
.operations_research.sat.LinearExpressionProto size_view = 6;- Specified by:
getSizeViewin interfaceIntervalConstraintProtoOrBuilder- Returns:
- The sizeView.
-
setSizeView
.operations_research.sat.LinearExpressionProto size_view = 6; -
setSizeView
.operations_research.sat.LinearExpressionProto size_view = 6; -
mergeSizeView
.operations_research.sat.LinearExpressionProto size_view = 6; -
clearSizeView
.operations_research.sat.LinearExpressionProto size_view = 6; -
getSizeViewBuilder
.operations_research.sat.LinearExpressionProto size_view = 6; -
getSizeViewOrBuilder
.operations_research.sat.LinearExpressionProto size_view = 6;- Specified by:
getSizeViewOrBuilderin interfaceIntervalConstraintProtoOrBuilder
-
setUnknownFields
public final IntervalConstraintProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-
mergeUnknownFields
public final IntervalConstraintProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IntervalConstraintProto.Builder>
-