Class CreateIndexRequest.Builder (3.50.0)

public static final class CreateIndexRequest.Builder extends GeneratedMessageV3.Builder<CreateIndexRequest.Builder> implements CreateIndexRequestOrBuilder

Request message for IndexService.CreateIndex.

Protobuf type google.cloud.aiplatform.v1.CreateIndexRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateIndexRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateIndexRequest.Builder
Overrides

build()

public CreateIndexRequest build()
Returns
Type Description
CreateIndexRequest

buildPartial()

public CreateIndexRequest buildPartial()
Returns
Type Description
CreateIndexRequest

clear()

public CreateIndexRequest.Builder clear()
Returns
Type Description
CreateIndexRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateIndexRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateIndexRequest.Builder
Overrides

clearIndex()

public CreateIndexRequest.Builder clearIndex()

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateIndexRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateIndexRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateIndexRequest.Builder
Overrides

clearParent()

public CreateIndexRequest.Builder clearParent()

Required. The resource name of the Location to create the Index in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateIndexRequest.Builder

This builder for chaining.

clone()

public CreateIndexRequest.Builder clone()
Returns
Type Description
CreateIndexRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateIndexRequest getDefaultInstanceForType()
Returns
Type Description
CreateIndexRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIndex()

public Index getIndex()

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Index

The index.

getIndexBuilder()

public Index.Builder getIndexBuilder()

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Index.Builder

getIndexOrBuilder()

public IndexOrBuilder getIndexOrBuilder()

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IndexOrBuilder

getParent()

public String getParent()

Required. The resource name of the Location to create the Index in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location to create the Index in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasIndex()

public boolean hasIndex()

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the index field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateIndexRequest other)

public CreateIndexRequest.Builder mergeFrom(CreateIndexRequest other)
Parameter
Name Description
other CreateIndexRequest
Returns
Type Description
CreateIndexRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateIndexRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateIndexRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateIndexRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateIndexRequest.Builder
Overrides

mergeIndex(Index value)

public CreateIndexRequest.Builder mergeIndex(Index value)

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Index
Returns
Type Description
CreateIndexRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateIndexRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateIndexRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateIndexRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateIndexRequest.Builder
Overrides

setIndex(Index value)

public CreateIndexRequest.Builder setIndex(Index value)

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Index
Returns
Type Description
CreateIndexRequest.Builder

setIndex(Index.Builder builderForValue)

public CreateIndexRequest.Builder setIndex(Index.Builder builderForValue)

Required. The Index to create.

.google.cloud.aiplatform.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Index.Builder
Returns
Type Description
CreateIndexRequest.Builder

setParent(String value)

public CreateIndexRequest.Builder setParent(String value)

Required. The resource name of the Location to create the Index in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateIndexRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateIndexRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location to create the Index in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateIndexRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateIndexRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateIndexRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateIndexRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateIndexRequest.Builder
Overrides