Class NearestNeighbors.Builder

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

public static final class NearestNeighbors.Builder extends com.google.protobuf.GeneratedMessage.Builder<NearestNeighbors.Builder> implements NearestNeighborsOrBuilder
 Nearest neighbors for one query.
 
Protobuf type google.cloud.aiplatform.v1.NearestNeighbors
  • 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<NearestNeighbors.Builder>
    • clear

      public NearestNeighbors.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<NearestNeighbors.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<NearestNeighbors.Builder>
    • getDefaultInstanceForType

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

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

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

      public NearestNeighbors.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<NearestNeighbors.Builder>
    • mergeFrom

      public NearestNeighbors.Builder mergeFrom(NearestNeighbors other)
    • isInitialized

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

      public NearestNeighbors.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<NearestNeighbors.Builder>
      Throws:
      IOException
    • getNeighborsList

      public List<NearestNeighbors.Neighbor> getNeighborsList()
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
      Specified by:
      getNeighborsList in interface NearestNeighborsOrBuilder
    • getNeighborsCount

      public int getNeighborsCount()
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
      Specified by:
      getNeighborsCount in interface NearestNeighborsOrBuilder
    • getNeighbors

      public NearestNeighbors.Neighbor getNeighbors(int index)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
      Specified by:
      getNeighbors in interface NearestNeighborsOrBuilder
    • setNeighbors

      public NearestNeighbors.Builder setNeighbors(int index, NearestNeighbors.Neighbor value)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • setNeighbors

      public NearestNeighbors.Builder setNeighbors(int index, NearestNeighbors.Neighbor.Builder builderForValue)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • addNeighbors

       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • addNeighbors

      public NearestNeighbors.Builder addNeighbors(int index, NearestNeighbors.Neighbor value)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • addNeighbors

      public NearestNeighbors.Builder addNeighbors(NearestNeighbors.Neighbor.Builder builderForValue)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • addNeighbors

      public NearestNeighbors.Builder addNeighbors(int index, NearestNeighbors.Neighbor.Builder builderForValue)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • addAllNeighbors

      public NearestNeighbors.Builder addAllNeighbors(Iterable<? extends NearestNeighbors.Neighbor> values)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • clearNeighbors

      public NearestNeighbors.Builder clearNeighbors()
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • removeNeighbors

      public NearestNeighbors.Builder removeNeighbors(int index)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • getNeighborsBuilder

      public NearestNeighbors.Neighbor.Builder getNeighborsBuilder(int index)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • getNeighborsOrBuilder

      public NearestNeighbors.NeighborOrBuilder getNeighborsOrBuilder(int index)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
      Specified by:
      getNeighborsOrBuilder in interface NearestNeighborsOrBuilder
    • getNeighborsOrBuilderList

      public List<? extends NearestNeighbors.NeighborOrBuilder> getNeighborsOrBuilderList()
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
      Specified by:
      getNeighborsOrBuilderList in interface NearestNeighborsOrBuilder
    • addNeighborsBuilder

      public NearestNeighbors.Neighbor.Builder addNeighborsBuilder()
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • addNeighborsBuilder

      public NearestNeighbors.Neighbor.Builder addNeighborsBuilder(int index)
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;
    • getNeighborsBuilderList

      public List<NearestNeighbors.Neighbor.Builder> getNeighborsBuilderList()
       All its neighbors.
       
      repeated .google.cloud.aiplatform.v1.NearestNeighbors.Neighbor neighbors = 1;