Class InjectedSolutionConstraint

  • All Implemented Interfaces:
    InjectedSolutionConstraintOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class InjectedSolutionConstraint
    extends com.google.protobuf.GeneratedMessageV3
    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:
    Serialized Form
    • Field Detail

      • SKIPPED_SHIPMENTS_FIELD_NUMBER

        public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONSTRAINT_RELAXATIONS_FIELD_NUMBER

        public static final int CONSTRAINT_RELAXATIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

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

        public InjectedSolutionConstraint.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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