AsyncModelConfig
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thông tin để giải quyết một mô hình tối ưu hoá một cách không đồng bộ.
Biểu diễn dưới dạng JSON |
{
"displayName": string,
"inputConfig": {
object (InputConfig )
},
"outputConfig": {
object (OutputConfig )
}
} |
Trường |
displayName |
string
Không bắt buộc. Tên mô hình do người dùng xác định, có thể được người dùng sử dụng làm bí danh để theo dõi các mô hình.
|
inputConfig |
object (InputConfig )
Bắt buộc. Thông tin về mô hình đầu vào.
|
outputConfig |
object (OutputConfig )
Bắt buộc. Thông tin vị trí đầu ra mong muốn.
|
GcsSource
Vị trí của Google Cloud Storage nơi tệp nhập sẽ được đọc.
Biểu diễn dưới dạng JSON |
{
"uri": string
} |
Trường |
uri |
string
Bắt buộc. URI của một đối tượng trong Google Cloud Storage có định dạng gs://bucket/path/to/object .
|
OutputConfig
Chỉ định một đích đến cho kết quả [locations.batchOptimize Tours][google.maps.routeoptimization.v1.RouteOptimizationService.BatchOptimize Tours].
Biểu diễn dưới dạng JSON |
{
"dataFormat": enum (DataFormat ),
// Union field destination can be only one of the following:
"gcsDestination": {
object (GcsDestination )
}
// End of list of possible types for union field destination .
} |
Trường |
dataFormat |
enum (DataFormat )
Bắt buộc. Định dạng dữ liệu đầu ra.
|
Trường kết hợp destination . Bắt buộc. destination chỉ có thể là một trong những trạng thái sau đây: |
gcsDestination |
object (GcsDestination )
Vị trí Google Cloud Storage để ghi dữ liệu đầu ra.
|
GcsDestination
Vị trí của Google Cloud Storage, nơi bạn sẽ ghi(các) tệp đầu ra.
Biểu diễn dưới dạng JSON |
{
"uri": string
} |
Trường |
uri |
string
Bắt buộc. URI Google Cloud Storage.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eAsyncModelConfig provides information for solving one optimization model asynchronously, specifying input and output configurations.\u003c/p\u003e\n"],["\u003cp\u003eInputConfig defines the input data format and source, which can be a Google Cloud Storage location with a single object (file) using \u003ccode\u003egcsSource\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eOutputConfig specifies the output data format and destination, allowing results to be written to a designated Google Cloud Storage location using \u003ccode\u003egcsDestination\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSupported data formats for both input and output include JSON and Protocol Buffers text format, selected using the \u003ccode\u003edataFormat\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eUsers can optionally provide a \u003ccode\u003edisplayName\u003c/code\u003e for the model as an alias for tracking purposes.\u003c/p\u003e\n"]]],["This content details configurations for asynchronous optimization model solutions. Key actions include defining `InputConfig` and `OutputConfig`. `InputConfig` specifies data format (`JSON` or `PROTO_TEXT`) and a Google Cloud Storage (GCS) source URI. `OutputConfig` sets the output data format and a GCS destination URI. Users provide a model display name and must specify input and output data formats, utilizing GCS for both input and output. Supported data formats are JSON or PROTO_TEXT.\n"],null,["# AsyncModelConfig\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [InputConfig](#InputConfig)\n - [JSON representation](#InputConfig.SCHEMA_REPRESENTATION)\n- [GcsSource](#GcsSource)\n - [JSON representation](#GcsSource.SCHEMA_REPRESENTATION)\n- [DataFormat](#DataFormat)\n- [OutputConfig](#OutputConfig)\n - [JSON representation](#OutputConfig.SCHEMA_REPRESENTATION)\n- [GcsDestination](#GcsDestination)\n - [JSON representation](#GcsDestination.SCHEMA_REPRESENTATION)\n\nInformation for solving one optimization model asynchronously.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"displayName\": string, \"inputConfig\": { object (/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#InputConfig) }, \"outputConfig\": { object (/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#OutputConfig) } } ``` |\n\n| Fields ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` Optional. User defined model name, can be used as alias by users to keep track of models. |\n| `inputConfig` | `object (`[InputConfig](/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#InputConfig)`)` Required. Information about the input model. |\n| `outputConfig` | `object (`[OutputConfig](/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#OutputConfig)`)` Required. The desired output location information. |\n\nInputConfig\n-----------\n\nSpecify an input for \\[locations.batchOptimizeTours\\]\\[google.maps.routeoptimization.v1.RouteOptimizationService.BatchOptimizeTours\\].\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dataFormat\": enum (/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#DataFormat), // Union field `source` can be only one of the following: \"gcsSource\": { object (/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#GcsSource) } // End of list of possible types for union field `source`. } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dataFormat` | `enum (`[DataFormat](/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#DataFormat)`)` Required. The input data format. |\n| Union field `source`. Required. `source` can be only one of the following: ||\n| `gcsSource` | `object (`[GcsSource](/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#GcsSource)`)` A Google Cloud Storage location. This must be a single object (file). |\n\nGcsSource\n---------\n\nThe Google Cloud Storage location where the input file will be read from.\n\n| JSON representation |\n|---------------------------|\n| ``` { \"uri\": string } ``` |\n\n| Fields ||\n|-------|-------------------------------------------------------------------------------------------------------|\n| `uri` | `string` Required. URI of a Google Cloud Storage object with the format `gs://bucket/path/to/object`. |\n\nDataFormat\n----------\n\nData formats for input and output files.\n\n| Enums ||\n|---------------------------|----------------------------------------------------------------------------------------------|\n| `DATA_FORMAT_UNSPECIFIED` | Invalid value, format must not be UNSPECIFIED. |\n| `JSON` | JavaScript Object Notation. |\n| `PROTO_TEXT` | Protocol Buffers text format. See \u003chttps://protobuf.dev/reference/protobuf/textformat-spec/\u003e |\n\nOutputConfig\n------------\n\nSpecify a destination for \\[locations.batchOptimizeTours\\]\\[google.maps.routeoptimization.v1.RouteOptimizationService.BatchOptimizeTours\\] results.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"dataFormat\": enum (/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#DataFormat), // Union field `destination` can be only one of the following: \"gcsDestination\": { object (/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#GcsDestination) } // End of list of possible types for union field `destination`. } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dataFormat` | `enum (`[DataFormat](/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#DataFormat)`)` Required. The output data format. |\n| Union field `destination`. Required. `destination` can be only one of the following: ||\n| `gcsDestination` | `object (`[GcsDestination](/maps/documentation/route-optimization/reference/rest/v1/AsyncModelConfig#GcsDestination)`)` The Google Cloud Storage location to write the output to. |\n\nGcsDestination\n--------------\n\nThe Google Cloud Storage location where the output file(s) will be written to.\n\n| JSON representation |\n|---------------------------|\n| ``` { \"uri\": string } ``` |\n\n| Fields ||\n|-------|----------------------------------------------|\n| `uri` | `string` Required. Google Cloud Storage URI. |"]]