Interface CreateIndexRequestOrBuilder (0.33.0)

publicinterface CreateIndexRequestOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getIndex()

publicabstractIndexgetIndex()

Required. The index being created.

.google.cloud.visionai.v1.Index index = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Index

The index.

getIndexId()

publicabstractStringgetIndexId()

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-/. The first character must be a letter, the last could be a letter or a number.

string index_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The indexId.

getIndexIdBytes()

publicabstractByteStringgetIndexIdBytes()

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-/. The first character must be a letter, the last could be a letter or a number.

string index_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for indexId.

getIndexOrBuilder()

publicabstractIndexOrBuildergetIndexOrBuilder()

Required. The index being created.

.google.cloud.visionai.v1.Index index = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IndexOrBuilder

getParent()

publicabstractStringgetParent()

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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicabstractByteStringgetParentBytes()

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 parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasIndex()

publicabstractbooleanhasIndex()

Required. The index being created.

.google.cloud.visionai.v1.Index index = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the index field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.