Package com.google.cloud.aiplatform.v1
Class UpsertDatapointsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder>
com.google.cloud.aiplatform.v1.UpsertDatapointsRequest.Builder
- All Implemented Interfaces:
UpsertDatapointsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UpsertDatapointsRequest
public static final class UpsertDatapointsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder>
implements UpsertDatapointsRequestOrBuilder
Request message for [IndexService.UpsertDatapoints][google.cloud.aiplatform.v1.IndexService.UpsertDatapoints]Protobuf type
google.cloud.aiplatform.v1.UpsertDatapointsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllDatapoints(Iterable<? extends IndexDatapoint> values) A list of datapoints to be created/updated.addDatapoints(int index, IndexDatapoint value) A list of datapoints to be created/updated.addDatapoints(int index, IndexDatapoint.Builder builderForValue) A list of datapoints to be created/updated.addDatapoints(IndexDatapoint value) A list of datapoints to be created/updated.addDatapoints(IndexDatapoint.Builder builderForValue) A list of datapoints to be created/updated.A list of datapoints to be created/updated.addDatapointsBuilder(int index) A list of datapoints to be created/updated.build()clear()A list of datapoints to be created/updated.Required.Optional.getDatapoints(int index) A list of datapoints to be created/updated.getDatapointsBuilder(int index) A list of datapoints to be created/updated.A list of datapoints to be created/updated.intA list of datapoints to be created/updated.A list of datapoints to be created/updated.getDatapointsOrBuilder(int index) A list of datapoints to be created/updated.List<? extends IndexDatapointOrBuilder>A list of datapoints to be created/updated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIndex()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.FieldMaskOptional.com.google.protobuf.FieldMask.BuilderOptional.com.google.protobuf.FieldMaskOrBuilderOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(UpsertDatapointsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateMask(com.google.protobuf.FieldMask value) Optional.removeDatapoints(int index) A list of datapoints to be created/updated.setDatapoints(int index, IndexDatapoint value) A list of datapoints to be created/updated.setDatapoints(int index, IndexDatapoint.Builder builderForValue) A list of datapoints to be created/updated.Required.setIndexBytes(com.google.protobuf.ByteString value) Required.setUpdateMask(com.google.protobuf.FieldMask value) Optional.setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpsertDatapointsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<UpsertDatapointsRequest.Builder>
-
mergeFrom
public UpsertDatapointsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpsertDatapointsRequest.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getIndexin interfaceUpsertDatapointsRequestOrBuilder- Returns:
- The index.
-
getIndexBytes
public com.google.protobuf.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) = { ... }- Specified by:
getIndexBytesin interfaceUpsertDatapointsRequestOrBuilder- Returns:
- The bytes for index.
-
setIndex
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) = { ... }- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIndexBytes
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) = { ... }- Parameters:
value- The bytes for index to set.- Returns:
- This builder for chaining.
-
getDatapointsList
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;- Specified by:
getDatapointsListin interfaceUpsertDatapointsRequestOrBuilder
-
getDatapointsCount
public int getDatapointsCount()A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;- Specified by:
getDatapointsCountin interfaceUpsertDatapointsRequestOrBuilder
-
getDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;- Specified by:
getDatapointsin interfaceUpsertDatapointsRequestOrBuilder
-
setDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
setDatapoints
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; -
addDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
addDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
addDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
addDatapoints
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; -
addAllDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
clearDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
removeDatapoints
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
getDatapointsBuilder
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
getDatapointsOrBuilder
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;- Specified by:
getDatapointsOrBuilderin interfaceUpsertDatapointsRequestOrBuilder
-
getDatapointsOrBuilderList
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2;- Specified by:
getDatapointsOrBuilderListin interfaceUpsertDatapointsRequestOrBuilder
-
addDatapointsBuilder
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
addDatapointsBuilder
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
getDatapointsBuilderList
A list of datapoints to be created/updated.
repeated .google.cloud.aiplatform.v1.IndexDatapoint datapoints = 2; -
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];- Specified by:
hasUpdateMaskin interfaceUpsertDatapointsRequestOrBuilder- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.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];- Specified by:
getUpdateMaskin interfaceUpsertDatapointsRequestOrBuilder- Returns:
- The updateMask.
-
setUpdateMask
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]; -
setUpdateMask
public UpsertDatapointsRequest.Builder setUpdateMask(com.google.protobuf.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]; -
mergeUpdateMask
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]; -
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]; -
getUpdateMaskBuilder
public com.google.protobuf.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]; -
getUpdateMaskOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateMaskOrBuilderin interfaceUpsertDatapointsRequestOrBuilder
-