Reference documentation and code samples for the Google Maps Route Optimization V1 Client class Uri.
A Universal Resource Identifier that points to a resource that can be read and written by the Route Optimization API.
Generated from protobuf message google.maps.routeoptimization.v1.Uri
Namespace
Google \ Maps \ RouteOptimization \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ 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 |
getUri
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUri
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|