Class UpsertDatapointsRequest.Builder (3.37.0)

public static final class UpsertDatapointsRequest.Builder extends GeneratedMessageV3.Builder<UpsertDatapointsRequest.Builder> implements UpsertDatapointsRequestOrBuilder

Request message for IndexService.UpsertDatapoints

Protobuf type google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDatapoints(Iterable<? extends IndexDatapoint> values)

public UpsertDatapointsRequest.Builder addAllDatapoints(Iterable<? extends IndexDatapoint> values)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.IndexDatapoint>
Returns
TypeDescription
UpsertDatapointsRequest.Builder

addDatapoints(IndexDatapoint value)

public UpsertDatapointsRequest.Builder addDatapoints(IndexDatapoint value)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
valueIndexDatapoint
Returns
TypeDescription
UpsertDatapointsRequest.Builder

addDatapoints(IndexDatapoint.Builder builderForValue)

public UpsertDatapointsRequest.Builder addDatapoints(IndexDatapoint.Builder builderForValue)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
builderForValueIndexDatapoint.Builder
Returns
TypeDescription
UpsertDatapointsRequest.Builder

addDatapoints(int index, IndexDatapoint value)

public UpsertDatapointsRequest.Builder addDatapoints(int index, IndexDatapoint value)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameters
NameDescription
indexint
valueIndexDatapoint
Returns
TypeDescription
UpsertDatapointsRequest.Builder

addDatapoints(int index, IndexDatapoint.Builder builderForValue)

public UpsertDatapointsRequest.Builder addDatapoints(int index, IndexDatapoint.Builder builderForValue)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameters
NameDescription
indexint
builderForValueIndexDatapoint.Builder
Returns
TypeDescription
UpsertDatapointsRequest.Builder

addDatapointsBuilder()

public IndexDatapoint.Builder addDatapointsBuilder()

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Returns
TypeDescription
IndexDatapoint.Builder

addDatapointsBuilder(int index)

public IndexDatapoint.Builder addDatapointsBuilder(int index)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
IndexDatapoint.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpsertDatapointsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

build()

public UpsertDatapointsRequest build()
Returns
TypeDescription
UpsertDatapointsRequest

buildPartial()

public UpsertDatapointsRequest buildPartial()
Returns
TypeDescription
UpsertDatapointsRequest

clear()

public UpsertDatapointsRequest.Builder clear()
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

clearDatapoints()

public UpsertDatapointsRequest.Builder clearDatapoints()

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Returns
TypeDescription
UpsertDatapointsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpsertDatapointsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

clearIndex()

public UpsertDatapointsRequest.Builder clearIndex()

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

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

Returns
TypeDescription
UpsertDatapointsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpsertDatapointsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

clearUpdateMask()

public UpsertDatapointsRequest.Builder clearUpdateMask()

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpsertDatapointsRequest.Builder

clone()

public UpsertDatapointsRequest.Builder clone()
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

getDatapoints(int index)

public IndexDatapoint getDatapoints(int index)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
IndexDatapoint

getDatapointsBuilder(int index)

public IndexDatapoint.Builder getDatapointsBuilder(int index)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
IndexDatapoint.Builder

getDatapointsBuilderList()

public List<IndexDatapoint.Builder> getDatapointsBuilderList()

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Returns
TypeDescription
List<Builder>

getDatapointsCount()

public int getDatapointsCount()

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Returns
TypeDescription
int

getDatapointsList()

public List<IndexDatapoint> getDatapointsList()

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Returns
TypeDescription
List<IndexDatapoint>

getDatapointsOrBuilder(int index)

public IndexDatapointOrBuilder getDatapointsOrBuilder(int index)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
IndexDatapointOrBuilder

getDatapointsOrBuilderList()

public List<? extends IndexDatapointOrBuilder> getDatapointsOrBuilderList()

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.IndexDatapointOrBuilder>

getDefaultInstanceForType()

public UpsertDatapointsRequest getDefaultInstanceForType()
Returns
TypeDescription
UpsertDatapointsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndex()

public String getIndex()

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

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

Returns
TypeDescription
String

The index.

getIndexBytes()

public ByteString getIndexBytes()

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

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

Returns
TypeDescription
ByteString

The bytes for index.

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpsertDatapointsRequest other)

public UpsertDatapointsRequest.Builder mergeFrom(UpsertDatapointsRequest other)
Parameter
NameDescription
otherUpsertDatapointsRequest
Returns
TypeDescription
UpsertDatapointsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpsertDatapointsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpsertDatapointsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpsertDatapointsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpsertDatapointsRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpsertDatapointsRequest.Builder

removeDatapoints(int index)

public UpsertDatapointsRequest.Builder removeDatapoints(int index)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
UpsertDatapointsRequest.Builder

setDatapoints(int index, IndexDatapoint value)

public UpsertDatapointsRequest.Builder setDatapoints(int index, IndexDatapoint value)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameters
NameDescription
indexint
valueIndexDatapoint
Returns
TypeDescription
UpsertDatapointsRequest.Builder

setDatapoints(int index, IndexDatapoint.Builder builderForValue)

public UpsertDatapointsRequest.Builder setDatapoints(int index, IndexDatapoint.Builder builderForValue)

A list of datapoints to be created/updated.

repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint datapoints = 2;

Parameters
NameDescription
indexint
builderForValueIndexDatapoint.Builder
Returns
TypeDescription
UpsertDatapointsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpsertDatapointsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

setIndex(String value)

public UpsertDatapointsRequest.Builder setIndex(String value)

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

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

Parameter
NameDescription
valueString

The index to set.

Returns
TypeDescription
UpsertDatapointsRequest.Builder

This builder for chaining.

setIndexBytes(ByteString value)

public UpsertDatapointsRequest.Builder setIndexBytes(ByteString value)

Required. The name of the Index resource to be updated. Format: projects/{project}/locations/{location}/indexes/{index}

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

Parameter
NameDescription
valueByteString

The bytes for index to set.

Returns
TypeDescription
UpsertDatapointsRequest.Builder

This builder for chaining.

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

public UpsertDatapointsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpsertDatapointsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpsertDatapointsRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpsertDatapointsRequest.Builder setUpdateMask(FieldMask value)

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpsertDatapointsRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpsertDatapointsRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Update mask is used to specify the fields to be overwritten in the datapoints by the update. The fields specified in the update_mask are relative to each IndexDatapoint inside datapoints, not the full request.

Updatable fields:

  • Use all_restricts to update both restricts and numeric_restricts.

.google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpsertDatapointsRequest.Builder