Class SetCoverProto.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Builder>
com.google.ortools.algorithms.SetCoverProto.Builder
All Implemented Interfaces:
SetCoverProtoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SetCoverProto

public static final class SetCoverProto.Builder extends com.google.protobuf.GeneratedMessage.Builder<SetCoverProto.Builder> implements SetCoverProtoOrBuilder
 TODO(user): use uint64 instead of int32 for indices, as the solver
 supports it.
 
Protobuf type operations_research.SetCoverProto
  • 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<SetCoverProto.Builder>
    • clear

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

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

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

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

      public SetCoverProto.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<SetCoverProto.Builder>
    • mergeFrom

      public SetCoverProto.Builder mergeFrom(SetCoverProto other)
    • isInitialized

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

      public SetCoverProto.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<SetCoverProto.Builder>
      Throws:
      IOException
    • getSubsetList

      public List<SetCoverProto.Subset> getSubsetList()
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
      Specified by:
      getSubsetList in interface SetCoverProtoOrBuilder
    • getSubsetCount

      public int getSubsetCount()
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
      Specified by:
      getSubsetCount in interface SetCoverProtoOrBuilder
    • getSubset

      public SetCoverProto.Subset getSubset(int index)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
      Specified by:
      getSubset in interface SetCoverProtoOrBuilder
    • setSubset

      public SetCoverProto.Builder setSubset(int index, SetCoverProto.Subset value)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • setSubset

      public SetCoverProto.Builder setSubset(int index, SetCoverProto.Subset.Builder builderForValue)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • addSubset

      public SetCoverProto.Builder addSubset(SetCoverProto.Subset value)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • addSubset

      public SetCoverProto.Builder addSubset(int index, SetCoverProto.Subset value)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • addSubset

      public SetCoverProto.Builder addSubset(SetCoverProto.Subset.Builder builderForValue)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • addSubset

      public SetCoverProto.Builder addSubset(int index, SetCoverProto.Subset.Builder builderForValue)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • addAllSubset

      public SetCoverProto.Builder addAllSubset(Iterable<? extends SetCoverProto.Subset> values)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • clearSubset

      public SetCoverProto.Builder clearSubset()
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • removeSubset

      public SetCoverProto.Builder removeSubset(int index)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • getSubsetBuilder

      public SetCoverProto.Subset.Builder getSubsetBuilder(int index)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • getSubsetOrBuilder

      public SetCoverProto.SubsetOrBuilder getSubsetOrBuilder(int index)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
      Specified by:
      getSubsetOrBuilder in interface SetCoverProtoOrBuilder
    • getSubsetOrBuilderList

      public List<? extends SetCoverProto.SubsetOrBuilder> getSubsetOrBuilderList()
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
      Specified by:
      getSubsetOrBuilderList in interface SetCoverProtoOrBuilder
    • addSubsetBuilder

      public SetCoverProto.Subset.Builder addSubsetBuilder()
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • addSubsetBuilder

      public SetCoverProto.Subset.Builder addSubsetBuilder(int index)
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • getSubsetBuilderList

      public List<SetCoverProto.Subset.Builder> getSubsetBuilderList()
       The list of subsets in the model.
       
      repeated .operations_research.SetCoverProto.Subset subset = 1;
    • hasName

      public boolean hasName()
       A user-defined name for the model.
       
      optional string name = 2;
      Specified by:
      hasName in interface SetCoverProtoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       A user-defined name for the model.
       
      optional string name = 2;
      Specified by:
      getName in interface SetCoverProtoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       A user-defined name for the model.
       
      optional string name = 2;
      Specified by:
      getNameBytes in interface SetCoverProtoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SetCoverProto.Builder setName(String value)
       A user-defined name for the model.
       
      optional string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SetCoverProto.Builder clearName()
       A user-defined name for the model.
       
      optional string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SetCoverProto.Builder setNameBytes(com.google.protobuf.ByteString value)
       A user-defined name for the model.
       
      optional string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasFingerprint

      public boolean hasFingerprint()
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
      Specified by:
      hasFingerprint in interface SetCoverProtoOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public Int128 getFingerprint()
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
      Specified by:
      getFingerprint in interface SetCoverProtoOrBuilder
      Returns:
      The fingerprint.
    • setFingerprint

      public SetCoverProto.Builder setFingerprint(Int128 value)
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
    • setFingerprint

      public SetCoverProto.Builder setFingerprint(Int128.Builder builderForValue)
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
    • mergeFingerprint

      public SetCoverProto.Builder mergeFingerprint(Int128 value)
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
    • clearFingerprint

      public SetCoverProto.Builder clearFingerprint()
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
    • getFingerprintBuilder

      public Int128.Builder getFingerprintBuilder()
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
    • getFingerprintOrBuilder

      public Int128OrBuilder getFingerprintOrBuilder()
       An automatically fingerprint for the model. TODO(user): Implement.
       
      optional .operations_research.Int128 fingerprint = 3;
      Specified by:
      getFingerprintOrBuilder in interface SetCoverProtoOrBuilder