AsyncModelConfig
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ข้อมูลสําหรับการแก้ปัญหารูปแบบการเพิ่มประสิทธิภาพ 1 รูปแบบแบบไม่พร้อมกัน
การแสดง JSON |
{
"displayName": string,
"inputConfig": {
object (InputConfig )
},
"outputConfig": {
object (OutputConfig )
}
} |
ช่อง |
displayName |
string
ไม่บังคับ ชื่อโมเดลที่ผู้ใช้กำหนด สามารถใช้เป็นชื่อแทนโดยผู้ใช้เพื่อติดตามโมเดล
|
inputConfig |
object (InputConfig )
ต้องระบุ ข้อมูลเกี่ยวกับโมเดลอินพุต
|
outputConfig |
object (OutputConfig )
ต้องระบุ ข้อมูลตำแหน่งเอาต์พุตที่ต้องการ
|
GcsSource
ตำแหน่งของ Google Cloud Storage ที่ระบบจะอ่านไฟล์อินพุต
การแสดง JSON |
{
"uri": string
} |
ช่อง |
uri |
string
ต้องระบุ URI ของออบเจ็กต์ Google Cloud Storage ที่มีรูปแบบ gs://bucket/path/to/object
|
OutputConfig
ระบุปลายทางสำหรับผลลัพธ์ [locations.batchOptimizeTours][google.maps.redirectoptimizer.v1.RouteoptimizerService.BatchOptimizeTours]
การแสดง 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 .
} |
ช่อง |
dataFormat |
enum (DataFormat )
ต้องระบุ รูปแบบข้อมูลเอาต์พุต
|
ช่องการรวม destination ต้องระบุ destination ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้ |
gcsDestination |
object (GcsDestination )
ตำแหน่งของ Google Cloud Storage ที่จะเขียนเอาต์พุต
|
GcsDestination
ตำแหน่งของ Google Cloud Storage ที่จะเขียนไฟล์เอาต์พุต
การแสดง JSON |
{
"uri": string
} |
ช่อง |
uri |
string
ต้องระบุ URI ของ Google Cloud Storage
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]