Uri

  • A URI (Universal Resource Identifier) is used to point to a resource that can be read and written by the Route Optimization API.

  • The resource can be encoded as either JSON or textproto, with specific filename suffixes (.json or .txtpb) required for each.

  • Only Google Cloud Storage resources are supported.

  • An MD5 hash is provided by the server for resource integrity verification.

A Universal Resource Identifier that points to a resource that can be read and written by the Route Optimization API.

JSON representation
{
  "uri": string,
  "md5Hash": string
}
Fields
uri

string

The URI of the resource. The resource may not yet exist.

The contents of the resource are encoded as either JSON or textproto. Only Google Cloud Storage resources are supported. If the resource is encoded as JSON, the resource name must be suffixed with .json. If the resource is encoded as textproto, the resource name must be suffixed with .txtpb. For example, a Google Cloud Storage URI to a JSON encoded file might look like: gs://bucket/path/input/object.json.

md5Hash

string

Output only. The MD5 hash of the contents of the resource. The user is not required to provide a hash. It's computed by the server so the user can verify the contents of the resource returned by the server have not been modified. See https://cloud.google.com/storage/docs/data-validation#integrity.