Class FindNeighborsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Builder>
com.google.cloud.aiplatform.v1.FindNeighborsResponse.Builder
All Implemented Interfaces:
FindNeighborsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FindNeighborsResponse

public static final class FindNeighborsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Builder> implements FindNeighborsResponseOrBuilder
 The response message for
 [MatchService.FindNeighbors][google.cloud.aiplatform.v1.MatchService.FindNeighbors].
 
Protobuf type google.cloud.aiplatform.v1.FindNeighborsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Builder>
    • getDefaultInstanceForType

      public FindNeighborsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FindNeighborsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FindNeighborsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FindNeighborsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FindNeighborsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FindNeighborsResponse.Builder>
    • mergeFrom

      public FindNeighborsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FindNeighborsResponse.Builder>
      Throws:
      IOException
    • getNearestNeighborsList

      public List<FindNeighborsResponse.NearestNeighbors> getNearestNeighborsList()
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
      Specified by:
      getNearestNeighborsList in interface FindNeighborsResponseOrBuilder
    • getNearestNeighborsCount

      public int getNearestNeighborsCount()
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
      Specified by:
      getNearestNeighborsCount in interface FindNeighborsResponseOrBuilder
    • getNearestNeighbors

      public FindNeighborsResponse.NearestNeighbors getNearestNeighbors(int index)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
      Specified by:
      getNearestNeighbors in interface FindNeighborsResponseOrBuilder
    • setNearestNeighbors

      public FindNeighborsResponse.Builder setNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors value)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • setNearestNeighbors

      public FindNeighborsResponse.Builder setNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors.Builder builderForValue)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • addNearestNeighbors

       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • addNearestNeighbors

      public FindNeighborsResponse.Builder addNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors value)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • addNearestNeighbors

       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • addNearestNeighbors

      public FindNeighborsResponse.Builder addNearestNeighbors(int index, FindNeighborsResponse.NearestNeighbors.Builder builderForValue)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • addAllNearestNeighbors

      public FindNeighborsResponse.Builder addAllNearestNeighbors(Iterable<? extends FindNeighborsResponse.NearestNeighbors> values)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • clearNearestNeighbors

      public FindNeighborsResponse.Builder clearNearestNeighbors()
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • removeNearestNeighbors

      public FindNeighborsResponse.Builder removeNearestNeighbors(int index)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • getNearestNeighborsBuilder

      public FindNeighborsResponse.NearestNeighbors.Builder getNearestNeighborsBuilder(int index)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • getNearestNeighborsOrBuilder

      public FindNeighborsResponse.NearestNeighborsOrBuilder getNearestNeighborsOrBuilder(int index)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
      Specified by:
      getNearestNeighborsOrBuilder in interface FindNeighborsResponseOrBuilder
    • getNearestNeighborsOrBuilderList

      public List<? extends FindNeighborsResponse.NearestNeighborsOrBuilder> getNearestNeighborsOrBuilderList()
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
      Specified by:
      getNearestNeighborsOrBuilderList in interface FindNeighborsResponseOrBuilder
    • addNearestNeighborsBuilder

      public FindNeighborsResponse.NearestNeighbors.Builder addNearestNeighborsBuilder()
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • addNearestNeighborsBuilder

      public FindNeighborsResponse.NearestNeighbors.Builder addNearestNeighborsBuilder(int index)
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;
    • getNearestNeighborsBuilderList

      public List<FindNeighborsResponse.NearestNeighbors.Builder> getNearestNeighborsBuilderList()
       The nearest neighbors of the query datapoints.
       
      repeated .google.cloud.aiplatform.v1.FindNeighborsResponse.NearestNeighbors nearest_neighbors = 1;