All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.maps.routeoptimization.v1.OptimizeToursValidationErrorOrBuilder Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/maps/routeoptimization/v1/route_optimization_service.proto

// Protobuf Java Version: 3.25.5
package com.google.maps.routeoptimization.v1;

public interface OptimizeToursValidationErrorOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.maps.routeoptimization.v1.OptimizeToursValidationError)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * 
   * A validation error is defined by the pair (`code`, `display_name`) which
   * are always present.
   *
   * The fields following this section provide more context about the error.
   *
   * *MULTIPLE ERRORS*:
   * When there are multiple errors, the validation process tries to output
   * several of them. Much like a compiler, this is an imperfect process. Some
   * validation errors will be "fatal", meaning that they stop the entire
   * validation process. This is the case for `display_name="UNSPECIFIED"`
   * errors, among others. Some errors may cause the validation process to skip
   * other errors.
   *
   * *STABILITY*:
   * `code` and `display_name` should be very stable. But new codes and
   * display names may appear over time, which may cause a given (invalid)
   * request to yield a different (`code`, `display_name`) pair because the new
   * error hid the old one. For example, see "MULTIPLE ERRORS".
   * 
* * int32 code = 1; * * @return The code. */ int getCode(); /** * * *
   * The error display name.
   * 
* * string display_name = 2; * * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
   * The error display name.
   * 
* * string display_name = 2; * * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** * * *
   * An error context may involve 0, 1 (most of the time) or more fields. For
   * example, referring to vehicle #4 and shipment #2's first pickup can be
   * done as follows:
   * ```
   * fields { name: "vehicles" index: 4}
   * fields { name: "shipments" index: 2 sub_field {name: "pickups" index: 0} }
   * ```
   * Note, however, that the cardinality of `fields` should not change for a
   * given error code.
   * 
* * * repeated .google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReference fields = 3; * */ java.util.List getFieldsList(); /** * * *
   * An error context may involve 0, 1 (most of the time) or more fields. For
   * example, referring to vehicle #4 and shipment #2's first pickup can be
   * done as follows:
   * ```
   * fields { name: "vehicles" index: 4}
   * fields { name: "shipments" index: 2 sub_field {name: "pickups" index: 0} }
   * ```
   * Note, however, that the cardinality of `fields` should not change for a
   * given error code.
   * 
* * * repeated .google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReference fields = 3; * */ com.google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReference getFields( int index); /** * * *
   * An error context may involve 0, 1 (most of the time) or more fields. For
   * example, referring to vehicle #4 and shipment #2's first pickup can be
   * done as follows:
   * ```
   * fields { name: "vehicles" index: 4}
   * fields { name: "shipments" index: 2 sub_field {name: "pickups" index: 0} }
   * ```
   * Note, however, that the cardinality of `fields` should not change for a
   * given error code.
   * 
* * * repeated .google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReference fields = 3; * */ int getFieldsCount(); /** * * *
   * An error context may involve 0, 1 (most of the time) or more fields. For
   * example, referring to vehicle #4 and shipment #2's first pickup can be
   * done as follows:
   * ```
   * fields { name: "vehicles" index: 4}
   * fields { name: "shipments" index: 2 sub_field {name: "pickups" index: 0} }
   * ```
   * Note, however, that the cardinality of `fields` should not change for a
   * given error code.
   * 
* * * repeated .google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReference fields = 3; * */ java.util.List< ? extends com.google.maps.routeoptimization.v1.OptimizeToursValidationError .FieldReferenceOrBuilder> getFieldsOrBuilderList(); /** * * *
   * An error context may involve 0, 1 (most of the time) or more fields. For
   * example, referring to vehicle #4 and shipment #2's first pickup can be
   * done as follows:
   * ```
   * fields { name: "vehicles" index: 4}
   * fields { name: "shipments" index: 2 sub_field {name: "pickups" index: 0} }
   * ```
   * Note, however, that the cardinality of `fields` should not change for a
   * given error code.
   * 
* * * repeated .google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReference fields = 3; * */ com.google.maps.routeoptimization.v1.OptimizeToursValidationError.FieldReferenceOrBuilder getFieldsOrBuilder(int index); /** * * *
   * Human-readable string describing the error. There is a 1:1 mapping
   * between `code` and `error_message` (when code != "UNSPECIFIED").
   *
   * *STABILITY*: Not stable: the error message associated to a given `code` may
   * change (hopefully to clarify it) over time. Please rely on the
   * `display_name` and `code` instead.
   * 
* * string error_message = 4; * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** * * *
   * Human-readable string describing the error. There is a 1:1 mapping
   * between `code` and `error_message` (when code != "UNSPECIFIED").
   *
   * *STABILITY*: Not stable: the error message associated to a given `code` may
   * change (hopefully to clarify it) over time. Please rely on the
   * `display_name` and `code` instead.
   * 
* * string error_message = 4; * * @return The bytes for errorMessage. */ com.google.protobuf.ByteString getErrorMessageBytes(); /** * * *
   * May contain the value(s) of the field(s). This is not always available. You
   * should absolutely not rely on it and use it only for manual model
   * debugging.
   * 
* * string offending_values = 5; * * @return The offendingValues. */ java.lang.String getOffendingValues(); /** * * *
   * May contain the value(s) of the field(s). This is not always available. You
   * should absolutely not rely on it and use it only for manual model
   * debugging.
   * 
* * string offending_values = 5; * * @return The bytes for offendingValues. */ com.google.protobuf.ByteString getOffendingValuesBytes(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy