Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateIndexRequest.
Message for creating an Index.
Generated from protobuf message google.cloud.visionai.v1.CreateIndexRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Value for the parent. The resource name of the Corpus under which this index is created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
↳ index_id
string
Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
↳ index
getParent
Required. Value for the parent. The resource name of the Corpus under which
this index is created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
string
setParent
Required. Value for the parent. The resource name of the Corpus under which
this index is created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
var
string
$this
getIndexId
Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string
setIndexId
Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
var
string
$this
getIndex
Required. The index being created.
hasIndex
clearIndex
setIndex
Required. The index being created.
$this
static::build
parent
string
Required. Value for the parent. The resource name of the Corpus under which
this index is created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
Please see WarehouseClient::corpusName()
for help formatting this field.
index
indexId
string
Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

