Class ProjectsResource.LocationsResource.ProductSetsResource
The "productSets" collection of methods.
Inherited Members
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProductSetsResource
Constructors
ProductSetsResource(IClientService)
Constructs a new resource.
Declaration
public ProductSetsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Products
Gets the Products resource.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.ProductsResource Products { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.ProductsResource |
Methods
AddProduct(AddProductToProductSetRequest, string)
Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.AddProductRequest AddProduct(AddProductToProductSetRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| AddProductToProductSetRequest | body | The body of the request. |
| string | name | Required. The resource name for the ProductSet to modify. Format is:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.AddProductRequest |
Create(ProductSet, string)
Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.CreateRequest Create(ProductSet body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ProductSet | body | The body of the request. |
| string | parent | Required. The project in which the ProductSet should be created. Format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.CreateRequest |
Delete(string)
Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. The actual image files are not deleted from Google Cloud Storage.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the ProductSet to delete. Format is:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.DeleteRequest |
Get(string)
Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Resource name of the ProductSet to get. Format is:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.GetRequest |
Import(ImportProductSetsRequest, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.ImportRequest Import(ImportProductSetsRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| ImportProductSetsRequest | body | The body of the request. |
| string | parent | Required. The project in which the ProductSets should be imported. Format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.ImportRequest |
List(string)
Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The project from which ProductSets should be listed. Format is
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.ListRequest |
Patch(ProductSet, string)
Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors:
- Returns NOT_FOUND if the ProductSet does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.PatchRequest Patch(ProductSet body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| ProductSet | body | The body of the request. |
| string | name | The resource name of the ProductSet. Format is:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.PatchRequest |
RemoveProduct(RemoveProductFromProductSetRequest, string)
Removes a Product from the specified ProductSet.
Declaration
public virtual ProjectsResource.LocationsResource.ProductSetsResource.RemoveProductRequest RemoveProduct(RemoveProductFromProductSetRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| RemoveProductFromProductSetRequest | body | The body of the request. |
| string | name | Required. The resource name for the ProductSet to modify. Format is:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ProductSetsResource.RemoveProductRequest |