Class InjectedSolutionConstraint

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.optimization.v1.InjectedSolutionConstraint
All Implemented Interfaces:
InjectedSolutionConstraintOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class InjectedSolutionConstraint extends com.google.protobuf.GeneratedMessage implements InjectedSolutionConstraintOrBuilder
 Solution injected in the request including information about which visits
 must be constrained and how they must be constrained.
 
Protobuf type google.cloud.optimization.v1.InjectedSolutionConstraint
See Also:
  • Field Details

    • ROUTES_FIELD_NUMBER

      public static final int ROUTES_FIELD_NUMBER
      See Also:
    • SKIPPED_SHIPMENTS_FIELD_NUMBER

      public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER
      See Also:
    • CONSTRAINT_RELAXATIONS_FIELD_NUMBER

      public static final int CONSTRAINT_RELAXATIONS_FIELD_NUMBER
      See Also:
  • 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
    • getRoutesList

      public List<ShipmentRoute> getRoutesList()
       Routes of the solution to inject. Some routes may be omitted from the
       original solution. The routes and skipped shipments must satisfy the basic
       validity assumptions listed for `injected_first_solution_routes`.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesList in interface InjectedSolutionConstraintOrBuilder
    • getRoutesOrBuilderList

      public List<? extends ShipmentRouteOrBuilder> getRoutesOrBuilderList()
       Routes of the solution to inject. Some routes may be omitted from the
       original solution. The routes and skipped shipments must satisfy the basic
       validity assumptions listed for `injected_first_solution_routes`.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesOrBuilderList in interface InjectedSolutionConstraintOrBuilder
    • getRoutesCount

      public int getRoutesCount()
       Routes of the solution to inject. Some routes may be omitted from the
       original solution. The routes and skipped shipments must satisfy the basic
       validity assumptions listed for `injected_first_solution_routes`.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesCount in interface InjectedSolutionConstraintOrBuilder
    • getRoutes

      public ShipmentRoute getRoutes(int index)
       Routes of the solution to inject. Some routes may be omitted from the
       original solution. The routes and skipped shipments must satisfy the basic
       validity assumptions listed for `injected_first_solution_routes`.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutes in interface InjectedSolutionConstraintOrBuilder
    • getRoutesOrBuilder

      public ShipmentRouteOrBuilder getRoutesOrBuilder(int index)
       Routes of the solution to inject. Some routes may be omitted from the
       original solution. The routes and skipped shipments must satisfy the basic
       validity assumptions listed for `injected_first_solution_routes`.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesOrBuilder in interface InjectedSolutionConstraintOrBuilder
    • getSkippedShipmentsList

      public List<SkippedShipment> getSkippedShipmentsList()
       Skipped shipments of the solution to inject. Some may be omitted from the
       original solution. See the `routes` field.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      Specified by:
      getSkippedShipmentsList in interface InjectedSolutionConstraintOrBuilder
    • getSkippedShipmentsOrBuilderList

      public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()
       Skipped shipments of the solution to inject. Some may be omitted from the
       original solution. See the `routes` field.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      Specified by:
      getSkippedShipmentsOrBuilderList in interface InjectedSolutionConstraintOrBuilder
    • getSkippedShipmentsCount

      public int getSkippedShipmentsCount()
       Skipped shipments of the solution to inject. Some may be omitted from the
       original solution. See the `routes` field.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      Specified by:
      getSkippedShipmentsCount in interface InjectedSolutionConstraintOrBuilder
    • getSkippedShipments

      public SkippedShipment getSkippedShipments(int index)
       Skipped shipments of the solution to inject. Some may be omitted from the
       original solution. See the `routes` field.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      Specified by:
      getSkippedShipments in interface InjectedSolutionConstraintOrBuilder
    • getSkippedShipmentsOrBuilder

      public SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index)
       Skipped shipments of the solution to inject. Some may be omitted from the
       original solution. See the `routes` field.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 2;
      Specified by:
      getSkippedShipmentsOrBuilder in interface InjectedSolutionConstraintOrBuilder
    • getConstraintRelaxationsList

      public List<InjectedSolutionConstraint.ConstraintRelaxation> getConstraintRelaxationsList()
       For zero or more groups of vehicles, specifies when and how much to relax
       constraints. If this field is empty, all non-empty vehicle routes are
       fully constrained.
       
      repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
      Specified by:
      getConstraintRelaxationsList in interface InjectedSolutionConstraintOrBuilder
    • getConstraintRelaxationsOrBuilderList

      public List<? extends InjectedSolutionConstraint.ConstraintRelaxationOrBuilder> getConstraintRelaxationsOrBuilderList()
       For zero or more groups of vehicles, specifies when and how much to relax
       constraints. If this field is empty, all non-empty vehicle routes are
       fully constrained.
       
      repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
      Specified by:
      getConstraintRelaxationsOrBuilderList in interface InjectedSolutionConstraintOrBuilder
    • getConstraintRelaxationsCount

      public int getConstraintRelaxationsCount()
       For zero or more groups of vehicles, specifies when and how much to relax
       constraints. If this field is empty, all non-empty vehicle routes are
       fully constrained.
       
      repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
      Specified by:
      getConstraintRelaxationsCount in interface InjectedSolutionConstraintOrBuilder
    • getConstraintRelaxations

      public InjectedSolutionConstraint.ConstraintRelaxation getConstraintRelaxations(int index)
       For zero or more groups of vehicles, specifies when and how much to relax
       constraints. If this field is empty, all non-empty vehicle routes are
       fully constrained.
       
      repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
      Specified by:
      getConstraintRelaxations in interface InjectedSolutionConstraintOrBuilder
    • getConstraintRelaxationsOrBuilder

      public InjectedSolutionConstraint.ConstraintRelaxationOrBuilder getConstraintRelaxationsOrBuilder(int index)
       For zero or more groups of vehicles, specifies when and how much to relax
       constraints. If this field is empty, all non-empty vehicle routes are
       fully constrained.
       
      repeated .google.cloud.optimization.v1.InjectedSolutionConstraint.ConstraintRelaxation constraint_relaxations = 3;
      Specified by:
      getConstraintRelaxationsOrBuilder in interface InjectedSolutionConstraintOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InjectedSolutionConstraint parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InjectedSolutionConstraint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InjectedSolutionConstraint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public InjectedSolutionConstraint.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static InjectedSolutionConstraint.Builder newBuilder()
    • newBuilder

      public static InjectedSolutionConstraint.Builder newBuilder(InjectedSolutionConstraint prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InjectedSolutionConstraint.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static InjectedSolutionConstraint getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InjectedSolutionConstraint> parser()
    • getParserForType

      public com.google.protobuf.Parser<InjectedSolutionConstraint> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public InjectedSolutionConstraint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder