# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::UpdateCollectionRequest (v1.5.0)

1.5.0 (latest) 1.4.1 1.3.1 1.2.0 1.1.1 1.0.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::UpdateCollectionRequest.

Request message for UpdateCollectionRequest.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #collection

    def collection() -> ::Google::Cloud::VisionAI::V1::Collection

**Returns**

- ([::Google::Cloud::VisionAI::V1::Collection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-Collection)) --- Required. The collection to update.


  The collection's `name` field is used to identify the collection to be
  updated. Format:
  `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`

### #collection=

    def collection=(value) -> ::Google::Cloud::VisionAI::V1::Collection

**Parameter**

- **value** ([::Google::Cloud::VisionAI::V1::Collection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-Collection)) --- Required. The collection to update.


  The collection's `name` field is used to identify the collection to be
  updated. Format:
  `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
**Returns**

- ([::Google::Cloud::VisionAI::V1::Collection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-Collection)) --- Required. The collection to update.


  The collection's `name` field is used to identify the collection to be
  updated. Format:
  `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`

### #update_mask

    def update_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Protobuf-FieldMask)) ---

  The list of fields to be updated.
  - Unset `update_mask` or set `update_mask` to be a single "\*" only will update all updatable fields with the value provided in `collection`.
  - To update `display_name` value to empty string, set it in the `collection` to empty string, and set `update_mask` with "display_name". Same applies to other updatable string fields in the `collection`.

### #update_mask=

    def update_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Protobuf-FieldMask)) ---

  The list of fields to be updated.
  - Unset `update_mask` or set `update_mask` to be a single "\*" only will update all updatable fields with the value provided in `collection`.
  - To update `display_name` value to empty string, set it in the `collection` to empty string, and set `update_mask` with "display_name". Same applies to other updatable string fields in the `collection`.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Protobuf-FieldMask)) ---

  The list of fields to be updated.
  - Unset `update_mask` or set `update_mask` to be a single "\*" only will update all updatable fields with the value provided in `collection`.
  - To update `display_name` value to empty string, set it in the `collection` to empty string, and set `update_mask` with "display_name". Same applies to other updatable string fields in the `collection`.