Import
|
|||||
|
|
Asynchronous API that imports a list of reference images to specified product sets based on a list of image information.
The google.longrunning.Operation API can be used to keep track of the
progress and results of the request.
Operation.metadata
contains BatchOperationMetadata
. (progress)
Operation.response
contains ImportProductSetsResponse
. (results)
The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see ImportProductSetsGcsSource.csv_file_uri
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- Apply machine learning models to understand and label images
Input
This building block consumes 4 input parameters
Name | Format | Description |
---|---|---|
parent Required |
STRING |
The project in which the ProductSets should be imported. Format is |
inputConfig |
OBJECT |
The input content for the |
inputConfig.gcsSource |
OBJECT |
The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line |
inputConfig.gcsSource.csvFileUri |
STRING |
The Google Cloud Storage URI of the input csv file. The URI must start with The format of the input csv file should be one image per line. In each line, there are 8 columns.
The If the The The If a The
The At most one The The system will resize the image if the image resolution is too large to process (larger than 20MP) |
= Parameter name
= Format
parent STRING Required The project in which the ProductSets should be imported. Format is |
inputConfig OBJECT The input content for the |
inputConfig.gcsSource OBJECT The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line |
inputConfig.gcsSource.csvFileUri STRING The Google Cloud Storage URI of the input csv file. The URI must start with The format of the input csv file should be one image per line. In each line, there are 8 columns.
The If the The The If a The
The At most one The The system will resize the image if the image resolution is too large to process (larger than 20MP) |
Output
This building block provides 11 output parameters
Name | Format | Description |
---|---|---|
done |
BOOLEAN |
If the value is |
response |
OBJECT |
The normal response of the operation in case of success. If the original
method returns no data on success, such as |
response.customKey.value |
ANY |
The normal response of the operation in case of success. If the original
method returns no data on success, such as |
name |
STRING |
The server-assigned name, which is only unique within the same service that
originally returns it. If you use the default HTTP mapping, the
|
error |
OBJECT |
The You can find out more about this error model and how to work with it in the API Design Guide |
error.code |
INTEGER |
The status code, which should be an enum value of google.rpc.Code |
error.message |
STRING |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client |
error.details[] |
OBJECT |
|
error.details[].customKey.value |
ANY |
|
metadata |
OBJECT |
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any |
metadata.customKey.value |
ANY |
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any |
= Parameter name
= Format
done BOOLEAN If the value is |
response OBJECT The normal response of the operation in case of success. If the original
method returns no data on success, such as |
response.customKey.value ANY The normal response of the operation in case of success. If the original
method returns no data on success, such as |
name STRING The server-assigned name, which is only unique within the same service that
originally returns it. If you use the default HTTP mapping, the
|
error OBJECT The You can find out more about this error model and how to work with it in the API Design Guide |
error.code INTEGER The status code, which should be an enum value of google.rpc.Code |
error.message STRING A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client |
error.details[] OBJECT |
error.details[].customKey.value ANY |
metadata OBJECT Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any |
metadata.customKey.value ANY Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any |