public static final class UpsertDatapointsRequest.Builder extends GeneratedMessageV3.Builder<UpsertDatapointsRequest.Builder> implements UpsertDatapointsRequestOrBuilder
Request message for IndexService.UpsertDatapoints
Protobuf type google.cloud.aiplatform.v1.UpsertDatapointsRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public UpsertDatapointsRequest.Builder addAllDatapoints(Iterable<? extends IndexDatapoint> values)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1.IndexDatapoint>
|
Returns
public UpsertDatapointsRequest.Builder addDatapoints(IndexDatapoint value)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public UpsertDatapointsRequest.Builder addDatapoints(IndexDatapoint.Builder builderForValue)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public UpsertDatapointsRequest.Builder addDatapoints(int index, IndexDatapoint value)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameters
Returns
public UpsertDatapointsRequest.Builder addDatapoints(int index, IndexDatapoint.Builder builderForValue)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameters
Returns
public IndexDatapoint.Builder addDatapointsBuilder()
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Returns
public IndexDatapoint.Builder addDatapointsBuilder(int index)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public UpsertDatapointsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UpsertDatapointsRequest build()
Returns
public UpsertDatapointsRequest buildPartial()
Returns
public UpsertDatapointsRequest.Builder clear()
Returns
Overrides
public UpsertDatapointsRequest.Builder clearDatapoints()
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Returns
public UpsertDatapointsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public UpsertDatapointsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public UpsertDatapointsRequest.Builder clone()
Returns
Overrides
public IndexDatapoint getDatapoints(int index)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public IndexDatapoint.Builder getDatapointsBuilder(int index)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public List<IndexDatapoint.Builder> getDatapointsBuilderList()
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Returns
public int getDatapointsCount()
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Returns
public List<IndexDatapoint> getDatapointsList()
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Returns
public IndexDatapointOrBuilder getDatapointsOrBuilder(int index)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public List<? extends IndexDatapointOrBuilder> getDatapointsOrBuilderList()
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Returns
Type | Description |
List<? extends com.google.cloud.aiplatform.v1.IndexDatapointOrBuilder> | |
public UpsertDatapointsRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
String | The index.
|
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
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public UpsertDatapointsRequest.Builder mergeFrom(UpsertDatapointsRequest other)
Parameter
Returns
public UpsertDatapointsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public UpsertDatapointsRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final UpsertDatapointsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public UpsertDatapointsRequest.Builder removeDatapoints(int index)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameter
Returns
public UpsertDatapointsRequest.Builder setDatapoints(int index, IndexDatapoint value)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameters
Returns
public UpsertDatapointsRequest.Builder setDatapoints(int index, IndexDatapoint.Builder builderForValue)
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;
Parameters
Returns
public UpsertDatapointsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | String
The index to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for index to set.
|
Returns
public UpsertDatapointsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final UpsertDatapointsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides