feat!: modified descriptions of validation rules on create entity endpoints

* Commas disallowed
* Backslash allowed

BREAKING CHANGE: Because of a bug commas have been accepted as part of individual IDs. Fixing this bug is a breaking change but we don't expect users to be impacted as we have detected no individual IDs being generated with commas. Commas are still OK to use as delimiters for lists of multiple IDs.

PiperOrigin-RevId: 431967940
pull/706/head
Google APIs 3 years ago committed by Copybara-Service
parent d4f3468ef8
commit c392eb0604
  1. 8
      google/maps/fleetengine/delivery/v1/delivery_api.proto
  2. 4
      google/maps/fleetengine/delivery/v1/tasks.proto
  3. 8
      google/maps/fleetengine/v1/trip_api.proto
  4. 8
      google/maps/fleetengine/v1/vehicle_api.proto

@ -137,10 +137,10 @@ message CreateDeliveryVehicleRequest {
//
// * IDs must be valid Unicode strings.
// * IDs are limited to a maximum length of 64 characters.
// * IDs will be normalized according to Unicode Normalization Form C
// * IDs must be normalized according to Unicode Normalization Form C
// (http://www.unicode.org/reports/tr15/).
// * IDs may not contain any of the following ASCII characters: '/', ':',
// '\\', '?', or '#'.
// '?', ',', or '#'.
string delivery_vehicle_id = 4 [(google.api.field_behavior) = REQUIRED];
// Required. The `DeliveryVehicle` entity to create. When creating a new delivery
@ -264,10 +264,10 @@ message CreateTaskRequest {
//
// * Task IDs must be valid Unicode strings.
// * Task IDs are limited to a maximum length of 64 characters.
// * Task IDs will be normalized according to Unicode Normalization Form C
// * Task IDs must be normalized according to Unicode Normalization Form C
// (http://www.unicode.org/reports/tr15/).
// * Task IDs may not contain any of the following ASCII characters: '/',
// ':', '\\', '?', or '#'.
// ':', '?', ',', or '#'.
string task_id = 5 [(google.api.field_behavior) = REQUIRED];
// Required. The Task entity to create.

@ -171,10 +171,10 @@ message Task {
//
// * Tracking IDs must be valid Unicode strings.
// * Tracking IDs are limited to a maximum length of 64 characters.
// * Tracking IDs will be normalized according to Unicode Normalization Form C
// * Tracking IDs must be normalized according to Unicode Normalization Form C
// (http://www.unicode.org/reports/tr15/).
// * Tracking IDs may not contain any of the following ASCII characters: '/',
// ':', '\\', '?', or '#'.
// ':', '?', ',', or '#'.
string tracking_id = 4 [(google.api.field_behavior) = IMMUTABLE];
// Output only. The ID of the vehicle that is executing this Task.

@ -97,12 +97,12 @@ message CreateTripRequest {
// Required. Unique Trip ID; must be unique per provider.
// Subject to the following restrictions:
//
// 1. IDs must not contain any of the following ASCII characters: '/', ':',
// '?', or '#'.
// 1. IDs must be valid Unicode strings.
// 2. IDs are limited to a maximum length of 64 characters.
// 3. IDs must be valid Unicode strings.
// 4. IDs must be normalized according to Unicode Normalization Form C
// 3. IDs must be normalized according to Unicode Normalization Form C
// (http://www.unicode.org/reports/tr15/).
// 4. IDs must not contain any of the following ASCII characters: '/', ':',
// '?', ',', or '#'.
string trip_id = 5 [(google.api.field_behavior) = REQUIRED];
// Required. Trip entity to create.

@ -170,12 +170,12 @@ message CreateVehicleRequest {
// Required. Unique Vehicle ID; must be unique per provider.
// Subject to the following restrictions:
//
// 1. IDs must not contain any of the following ASCII characters: '/', ':',
// '?', or '#'.
// 1. IDs must be valid Unicode strings.
// 2. IDs are limited to a maximum length of 64 characters.
// 3. IDs must be valid Unicode strings.
// 4. IDs must be normalized according to Unicode Normalization Form C
// 3. IDs must be normalized according to Unicode Normalization Form C
// (http://www.unicode.org/reports/tr15/).
// 4. IDs must not contain any of the following ASCII characters: '/', ':',
// '?', ',', or '#'.
string vehicle_id = 4 [(google.api.field_behavior) = REQUIRED];
// Required. The Vehicle entity to create. When creating a Vehicle, the following

Loading…
Cancel
Save