# Cloud Vision V1p4beta1 API - Class Google::Cloud::Vision::V1p4beta1::CreateReferenceImageRequest (v0.16.0)

0.16.0 (latest) 0.15.1 0.14.1 0.13.0 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Vision V1p4beta1 API class Google::Cloud::Vision::V1p4beta1::CreateReferenceImageRequest.

Request message for the `CreateReferenceImage` method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Resource name of the product in which to create the reference image.

  Format is
  `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Resource name of the product in which to create the reference image.


  Format is
  `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
**Returns**

- (::String) --- Required. Resource name of the product in which to create the reference image.

  Format is
  `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.

### #reference_image

    def reference_image() -> ::Google::Cloud::Vision::V1p4beta1::ReferenceImage

**Returns**

- ([::Google::Cloud::Vision::V1p4beta1::ReferenceImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-ReferenceImage)) --- Required. The reference image to create. If an image ID is specified, it is ignored.

### #reference_image=

    def reference_image=(value) -> ::Google::Cloud::Vision::V1p4beta1::ReferenceImage

**Parameter**

- **value** ([::Google::Cloud::Vision::V1p4beta1::ReferenceImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-ReferenceImage)) --- Required. The reference image to create. If an image ID is specified, it is ignored.
**Returns**

- ([::Google::Cloud::Vision::V1p4beta1::ReferenceImage](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1p4beta1/latest/Google-Cloud-Vision-V1p4beta1-ReferenceImage)) --- Required. The reference image to create. If an image ID is specified, it is ignored.

### #reference_image_id

    def reference_image_id() -> ::String

**Returns**

- (::String) --- 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 `/`.

### #reference_image_id=

    def reference_image_id=(value) -> ::String

**Parameter**

- **value** (::String) --- 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 `/`.
**Returns**

- (::String) --- 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 `/`.