com.google.ortools.sat.CumulativeConstraintProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ortools/sat/cp_model.proto
package com.google.ortools.sat;
/**
*
* The sum of the demands of the intervals at each interval point cannot exceed
* a capacity. Note that intervals are interpreted as [start, end) and as
* such intervals like [2,3) and [3,4) do not overlap for the point of view of
* this constraint. Moreover, intervals of size zero are ignored.
*
*
* Protobuf type {@code operations_research.sat.CumulativeConstraintProto}
*/
public final class CumulativeConstraintProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:operations_research.sat.CumulativeConstraintProto)
CumulativeConstraintProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use CumulativeConstraintProto.newBuilder() to construct.
private CumulativeConstraintProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CumulativeConstraintProto() {
intervals_ = emptyIntList();
demands_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CumulativeConstraintProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CumulativeConstraintProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
capacity_ = input.readInt32();
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
intervals_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
intervals_.addInt(input.readInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
intervals_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
intervals_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 24: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
demands_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
demands_.addInt(input.readInt32());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
demands_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
demands_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
intervals_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
demands_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CumulativeConstraintProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CumulativeConstraintProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ortools.sat.CumulativeConstraintProto.class, com.google.ortools.sat.CumulativeConstraintProto.Builder.class);
}
public static final int CAPACITY_FIELD_NUMBER = 1;
private int capacity_;
/**
* int32 capacity = 1;
* @return The capacity.
*/
@java.lang.Override
public int getCapacity() {
return capacity_;
}
public static final int INTERVALS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.IntList intervals_;
/**
* repeated int32 intervals = 2;
* @return A list containing the intervals.
*/
@java.lang.Override
public java.util.List
getIntervalsList() {
return intervals_;
}
/**
* repeated int32 intervals = 2;
* @return The count of intervals.
*/
public int getIntervalsCount() {
return intervals_.size();
}
/**
* repeated int32 intervals = 2;
* @param index The index of the element to return.
* @return The intervals at the given index.
*/
public int getIntervals(int index) {
return intervals_.getInt(index);
}
private int intervalsMemoizedSerializedSize = -1;
public static final int DEMANDS_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.IntList demands_;
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @return A list containing the demands.
*/
@java.lang.Override
public java.util.List
getDemandsList() {
return demands_;
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @return The count of demands.
*/
public int getDemandsCount() {
return demands_.size();
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @param index The index of the element to return.
* @return The demands at the given index.
*/
public int getDemands(int index) {
return demands_.getInt(index);
}
private int demandsMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (capacity_ != 0) {
output.writeInt32(1, capacity_);
}
if (getIntervalsList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(intervalsMemoizedSerializedSize);
}
for (int i = 0; i < intervals_.size(); i++) {
output.writeInt32NoTag(intervals_.getInt(i));
}
if (getDemandsList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(demandsMemoizedSerializedSize);
}
for (int i = 0; i < demands_.size(); i++) {
output.writeInt32NoTag(demands_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (capacity_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, capacity_);
}
{
int dataSize = 0;
for (int i = 0; i < intervals_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(intervals_.getInt(i));
}
size += dataSize;
if (!getIntervalsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
intervalsMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < demands_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(demands_.getInt(i));
}
size += dataSize;
if (!getDemandsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
demandsMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ortools.sat.CumulativeConstraintProto)) {
return super.equals(obj);
}
com.google.ortools.sat.CumulativeConstraintProto other = (com.google.ortools.sat.CumulativeConstraintProto) obj;
if (getCapacity()
!= other.getCapacity()) return false;
if (!getIntervalsList()
.equals(other.getIntervalsList())) return false;
if (!getDemandsList()
.equals(other.getDemandsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CAPACITY_FIELD_NUMBER;
hash = (53 * hash) + getCapacity();
if (getIntervalsCount() > 0) {
hash = (37 * hash) + INTERVALS_FIELD_NUMBER;
hash = (53 * hash) + getIntervalsList().hashCode();
}
if (getDemandsCount() > 0) {
hash = (37 * hash) + DEMANDS_FIELD_NUMBER;
hash = (53 * hash) + getDemandsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ortools.sat.CumulativeConstraintProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ortools.sat.CumulativeConstraintProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* The sum of the demands of the intervals at each interval point cannot exceed
* a capacity. Note that intervals are interpreted as [start, end) and as
* such intervals like [2,3) and [3,4) do not overlap for the point of view of
* this constraint. Moreover, intervals of size zero are ignored.
*
*
* Protobuf type {@code operations_research.sat.CumulativeConstraintProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:operations_research.sat.CumulativeConstraintProto)
com.google.ortools.sat.CumulativeConstraintProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CumulativeConstraintProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CumulativeConstraintProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ortools.sat.CumulativeConstraintProto.class, com.google.ortools.sat.CumulativeConstraintProto.Builder.class);
}
// Construct using com.google.ortools.sat.CumulativeConstraintProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
capacity_ = 0;
intervals_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
demands_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_CumulativeConstraintProto_descriptor;
}
@java.lang.Override
public com.google.ortools.sat.CumulativeConstraintProto getDefaultInstanceForType() {
return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
}
@java.lang.Override
public com.google.ortools.sat.CumulativeConstraintProto build() {
com.google.ortools.sat.CumulativeConstraintProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ortools.sat.CumulativeConstraintProto buildPartial() {
com.google.ortools.sat.CumulativeConstraintProto result = new com.google.ortools.sat.CumulativeConstraintProto(this);
int from_bitField0_ = bitField0_;
result.capacity_ = capacity_;
if (((bitField0_ & 0x00000001) != 0)) {
intervals_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.intervals_ = intervals_;
if (((bitField0_ & 0x00000002) != 0)) {
demands_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.demands_ = demands_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ortools.sat.CumulativeConstraintProto) {
return mergeFrom((com.google.ortools.sat.CumulativeConstraintProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ortools.sat.CumulativeConstraintProto other) {
if (other == com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance()) return this;
if (other.getCapacity() != 0) {
setCapacity(other.getCapacity());
}
if (!other.intervals_.isEmpty()) {
if (intervals_.isEmpty()) {
intervals_ = other.intervals_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIntervalsIsMutable();
intervals_.addAll(other.intervals_);
}
onChanged();
}
if (!other.demands_.isEmpty()) {
if (demands_.isEmpty()) {
demands_ = other.demands_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDemandsIsMutable();
demands_.addAll(other.demands_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.ortools.sat.CumulativeConstraintProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.ortools.sat.CumulativeConstraintProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int capacity_ ;
/**
* int32 capacity = 1;
* @return The capacity.
*/
@java.lang.Override
public int getCapacity() {
return capacity_;
}
/**
* int32 capacity = 1;
* @param value The capacity to set.
* @return This builder for chaining.
*/
public Builder setCapacity(int value) {
capacity_ = value;
onChanged();
return this;
}
/**
* int32 capacity = 1;
* @return This builder for chaining.
*/
public Builder clearCapacity() {
capacity_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList intervals_ = emptyIntList();
private void ensureIntervalsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
intervals_ = mutableCopy(intervals_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated int32 intervals = 2;
* @return A list containing the intervals.
*/
public java.util.List
getIntervalsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(intervals_) : intervals_;
}
/**
* repeated int32 intervals = 2;
* @return The count of intervals.
*/
public int getIntervalsCount() {
return intervals_.size();
}
/**
* repeated int32 intervals = 2;
* @param index The index of the element to return.
* @return The intervals at the given index.
*/
public int getIntervals(int index) {
return intervals_.getInt(index);
}
/**
* repeated int32 intervals = 2;
* @param index The index to set the value at.
* @param value The intervals to set.
* @return This builder for chaining.
*/
public Builder setIntervals(
int index, int value) {
ensureIntervalsIsMutable();
intervals_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 intervals = 2;
* @param value The intervals to add.
* @return This builder for chaining.
*/
public Builder addIntervals(int value) {
ensureIntervalsIsMutable();
intervals_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 intervals = 2;
* @param values The intervals to add.
* @return This builder for chaining.
*/
public Builder addAllIntervals(
java.lang.Iterable extends java.lang.Integer> values) {
ensureIntervalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, intervals_);
onChanged();
return this;
}
/**
* repeated int32 intervals = 2;
* @return This builder for chaining.
*/
public Builder clearIntervals() {
intervals_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList demands_ = emptyIntList();
private void ensureDemandsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
demands_ = mutableCopy(demands_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @return A list containing the demands.
*/
public java.util.List
getDemandsList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(demands_) : demands_;
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @return The count of demands.
*/
public int getDemandsCount() {
return demands_.size();
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @param index The index of the element to return.
* @return The demands at the given index.
*/
public int getDemands(int index) {
return demands_.getInt(index);
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @param index The index to set the value at.
* @param value The demands to set.
* @return This builder for chaining.
*/
public Builder setDemands(
int index, int value) {
ensureDemandsIsMutable();
demands_.setInt(index, value);
onChanged();
return this;
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @param value The demands to add.
* @return This builder for chaining.
*/
public Builder addDemands(int value) {
ensureDemandsIsMutable();
demands_.addInt(value);
onChanged();
return this;
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @param values The demands to add.
* @return This builder for chaining.
*/
public Builder addAllDemands(
java.lang.Iterable extends java.lang.Integer> values) {
ensureDemandsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, demands_);
onChanged();
return this;
}
/**
*
* Same size as intervals.
*
*
* repeated int32 demands = 3;
* @return This builder for chaining.
*/
public Builder clearDemands() {
demands_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:operations_research.sat.CumulativeConstraintProto)
}
// @@protoc_insertion_point(class_scope:operations_research.sat.CumulativeConstraintProto)
private static final com.google.ortools.sat.CumulativeConstraintProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ortools.sat.CumulativeConstraintProto();
}
public static com.google.ortools.sat.CumulativeConstraintProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CumulativeConstraintProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CumulativeConstraintProto(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ortools.sat.CumulativeConstraintProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy