Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ProductsResource.ReferenceImagesResource.CreateRequest

Creates and returns a new ReferenceImage resource. The bounding_poly field is optional. If bounding_poly is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ReferenceImage>
VisionBaseServiceRequest<ReferenceImage>
ProjectsResource.LocationsResource.ProductsResource.ReferenceImagesResource.CreateRequest
Implements
IClientServiceRequest<ReferenceImage>
IClientServiceRequest
Inherited Members
VisionBaseServiceRequest<ReferenceImage>.Xgafv
VisionBaseServiceRequest<ReferenceImage>.AccessToken
VisionBaseServiceRequest<ReferenceImage>.Alt
VisionBaseServiceRequest<ReferenceImage>.Callback
VisionBaseServiceRequest<ReferenceImage>.Fields
VisionBaseServiceRequest<ReferenceImage>.Key
VisionBaseServiceRequest<ReferenceImage>.OauthToken
VisionBaseServiceRequest<ReferenceImage>.PrettyPrint
VisionBaseServiceRequest<ReferenceImage>.QuotaUser
VisionBaseServiceRequest<ReferenceImage>.UploadType
VisionBaseServiceRequest<ReferenceImage>.UploadProtocol
ClientServiceRequest<ReferenceImage>.Execute()
ClientServiceRequest<ReferenceImage>.ExecuteAsStream()
ClientServiceRequest<ReferenceImage>.ExecuteAsync()
ClientServiceRequest<ReferenceImage>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ReferenceImage>.ExecuteAsStreamAsync()
ClientServiceRequest<ReferenceImage>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ReferenceImage>.CreateRequest(bool?)
ClientServiceRequest<ReferenceImage>.GenerateRequestUri()
ClientServiceRequest<ReferenceImage>.GetDefaultETagAction(string)
ClientServiceRequest<ReferenceImage>.ETagAction
ClientServiceRequest<ReferenceImage>.ModifyRequest
ClientServiceRequest<ReferenceImage>.ValidateParameters
ClientServiceRequest<ReferenceImage>.ApiVersion
ClientServiceRequest<ReferenceImage>.RequestParameters
ClientServiceRequest<ReferenceImage>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProductsResource.ReferenceImagesResource.CreateRequest : VisionBaseServiceRequest<ReferenceImage>, IClientServiceRequest<ReferenceImage>, IClientServiceRequest

Constructors

CreateRequest(IClientService, ReferenceImage, string)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, ReferenceImage body, string parent)
Parameters
Type Name Description
IClientService service
ReferenceImage body
string parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ReferenceImage>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ReferenceImage>.MethodName

Parent

Required. Resource name of the product in which to create the reference image. Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID.

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

ReferenceImageId

A user-supplied resource id for the ReferenceImage to be added. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.

Declaration
[RequestParameter("referenceImageId", RequestParameterType.Query)]
public virtual string ReferenceImageId { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ReferenceImage>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<ReferenceImage>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
VisionBaseServiceRequest<ReferenceImage>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX