Package com.google.cloud.aiplatform.v1
Class ReadIndexDatapointsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReadIndexDatapointsRequest.Builder>
com.google.cloud.aiplatform.v1.ReadIndexDatapointsRequest.Builder
- All Implemented Interfaces:
ReadIndexDatapointsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReadIndexDatapointsRequest
public static final class ReadIndexDatapointsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReadIndexDatapointsRequest.Builder>
implements ReadIndexDatapointsRequestOrBuilder
The request message for [MatchService.ReadIndexDatapoints][google.cloud.aiplatform.v1.MatchService.ReadIndexDatapoints].Protobuf type
google.cloud.aiplatform.v1.ReadIndexDatapointsRequest-
Method Summary
Modifier and TypeMethodDescriptionIDs of the datapoints to be searched for.IDs of the datapoints to be searched for.addIdsBytes(com.google.protobuf.ByteString value) IDs of the datapoints to be searched for.build()clear()The ID of the DeployedIndex that will serve the request.clearIds()IDs of the datapoints to be searched for.Required.The ID of the DeployedIndex that will serve the request.com.google.protobuf.ByteStringThe ID of the DeployedIndex that will serve the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIds(int index) IDs of the datapoints to be searched for.com.google.protobuf.ByteStringgetIdsBytes(int index) IDs of the datapoints to be searched for.intIDs of the datapoints to be searched for.com.google.protobuf.ProtocolStringListIDs of the datapoints to be searched for.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDeployedIndexId(String value) The ID of the DeployedIndex that will serve the request.setDeployedIndexIdBytes(com.google.protobuf.ByteString value) The ID of the DeployedIndex that will serve the request.IDs of the datapoints to be searched for.setIndexEndpoint(String value) Required.setIndexEndpointBytes(com.google.protobuf.ByteString value) Required.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<ReadIndexDatapointsRequest.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<ReadIndexDatapointsRequest.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<ReadIndexDatapointsRequest.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<ReadIndexDatapointsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReadIndexDatapointsRequest.Builder>
-
mergeFrom
public ReadIndexDatapointsRequest.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<ReadIndexDatapointsRequest.Builder>- Throws:
IOException
-
getIndexEndpoint
Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getIndexEndpointin interfaceReadIndexDatapointsRequestOrBuilder- Returns:
- The indexEndpoint.
-
getIndexEndpointBytes
public com.google.protobuf.ByteString getIndexEndpointBytes()Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getIndexEndpointBytesin interfaceReadIndexDatapointsRequestOrBuilder- Returns:
- The bytes for indexEndpoint.
-
setIndexEndpoint
Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The indexEndpoint to set.- Returns:
- This builder for chaining.
-
clearIndexEndpoint
Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setIndexEndpointBytes
public ReadIndexDatapointsRequest.Builder setIndexEndpointBytes(com.google.protobuf.ByteString value) Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`string index_endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for indexEndpoint to set.- Returns:
- This builder for chaining.
-
getDeployedIndexId
The ID of the DeployedIndex that will serve the request.
string deployed_index_id = 2;- Specified by:
getDeployedIndexIdin interfaceReadIndexDatapointsRequestOrBuilder- Returns:
- The deployedIndexId.
-
getDeployedIndexIdBytes
public com.google.protobuf.ByteString getDeployedIndexIdBytes()The ID of the DeployedIndex that will serve the request.
string deployed_index_id = 2;- Specified by:
getDeployedIndexIdBytesin interfaceReadIndexDatapointsRequestOrBuilder- Returns:
- The bytes for deployedIndexId.
-
setDeployedIndexId
The ID of the DeployedIndex that will serve the request.
string deployed_index_id = 2;- Parameters:
value- The deployedIndexId to set.- Returns:
- This builder for chaining.
-
clearDeployedIndexId
The ID of the DeployedIndex that will serve the request.
string deployed_index_id = 2;- Returns:
- This builder for chaining.
-
setDeployedIndexIdBytes
public ReadIndexDatapointsRequest.Builder setDeployedIndexIdBytes(com.google.protobuf.ByteString value) The ID of the DeployedIndex that will serve the request.
string deployed_index_id = 2;- Parameters:
value- The bytes for deployedIndexId to set.- Returns:
- This builder for chaining.
-
getIdsList
public com.google.protobuf.ProtocolStringList getIdsList()IDs of the datapoints to be searched for.
repeated string ids = 3;- Specified by:
getIdsListin interfaceReadIndexDatapointsRequestOrBuilder- Returns:
- A list containing the ids.
-
getIdsCount
public int getIdsCount()IDs of the datapoints to be searched for.
repeated string ids = 3;- Specified by:
getIdsCountin interfaceReadIndexDatapointsRequestOrBuilder- Returns:
- The count of ids.
-
getIds
IDs of the datapoints to be searched for.
repeated string ids = 3;- Specified by:
getIdsin interfaceReadIndexDatapointsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The ids at the given index.
-
getIdsBytes
public com.google.protobuf.ByteString getIdsBytes(int index) IDs of the datapoints to be searched for.
repeated string ids = 3;- Specified by:
getIdsBytesin interfaceReadIndexDatapointsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ids at the given index.
-
setIds
IDs of the datapoints to be searched for.
repeated string ids = 3;- Parameters:
index- The index to set the value at.value- The ids to set.- Returns:
- This builder for chaining.
-
addIds
IDs of the datapoints to be searched for.
repeated string ids = 3;- Parameters:
value- The ids to add.- Returns:
- This builder for chaining.
-
addAllIds
IDs of the datapoints to be searched for.
repeated string ids = 3;- Parameters:
values- The ids to add.- Returns:
- This builder for chaining.
-
clearIds
IDs of the datapoints to be searched for.
repeated string ids = 3;- Returns:
- This builder for chaining.
-
addIdsBytes
IDs of the datapoints to be searched for.
repeated string ids = 3;- Parameters:
value- The bytes of the ids to add.- Returns:
- This builder for chaining.
-