# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::IndexAssetRequest (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::IndexAssetRequest.

Request message for IndexAsset.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #index

    def index() -> ::String

**Returns**

- (::String) --- Optional. The name of the index. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`

### #index=

    def index=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The name of the index. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`
**Returns**

- (::String) --- Optional. The name of the index. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}`

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the asset to index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the asset to index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`
**Returns**

- (::String) --- Required. The resource name of the asset to index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`