Class WeaviateProtoBaseSearch.NearObject

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
com.google.protobuf.GeneratedMessageV3
io.weaviate.client.grpc.protocol.v1.WeaviateProtoBaseSearch.NearObject
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, WeaviateProtoBaseSearch.NearObjectOrBuilder, Serializable
Enclosing class:
WeaviateProtoBaseSearch

public static final class WeaviateProtoBaseSearch.NearObject extends com.google.protobuf.GeneratedMessageV3 implements WeaviateProtoBaseSearch.NearObjectOrBuilder
Protobuf type weaviate.v1.NearObject
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getId

      public String getId()
      string id = 1;
      Specified by:
      getId in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      string id = 1;
      Specified by:
      getIdBytes in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      The bytes for id.
    • hasCertainty

      public boolean hasCertainty()
      optional double certainty = 2;
      Specified by:
      hasCertainty in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      Whether the certainty field is set.
    • getCertainty

      public double getCertainty()
      optional double certainty = 2;
      Specified by:
      getCertainty in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      The certainty.
    • hasDistance

      public boolean hasDistance()
      optional double distance = 3;
      Specified by:
      hasDistance in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      Whether the distance field is set.
    • getDistance

      public double getDistance()
      optional double distance = 3;
      Specified by:
      getDistance in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      The distance.
    • getTargetVectorsList

      @Deprecated public com.google.protobuf.ProtocolStringList getTargetVectorsList()
      Deprecated.
      weaviate.v1.NearObject.target_vectors is deprecated. See v1/base_search.proto;l=80
       deprecated in 1.26 - use targets
       
      repeated string target_vectors = 4 [deprecated = true];
      Specified by:
      getTargetVectorsList in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      A list containing the targetVectors.
    • getTargetVectorsCount

      @Deprecated public int getTargetVectorsCount()
      Deprecated.
      weaviate.v1.NearObject.target_vectors is deprecated. See v1/base_search.proto;l=80
       deprecated in 1.26 - use targets
       
      repeated string target_vectors = 4 [deprecated = true];
      Specified by:
      getTargetVectorsCount in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      The count of targetVectors.
    • getTargetVectors

      @Deprecated public String getTargetVectors(int index)
      Deprecated.
      weaviate.v1.NearObject.target_vectors is deprecated. See v1/base_search.proto;l=80
       deprecated in 1.26 - use targets
       
      repeated string target_vectors = 4 [deprecated = true];
      Specified by:
      getTargetVectors in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetVectors at the given index.
    • getTargetVectorsBytes

      @Deprecated public com.google.protobuf.ByteString getTargetVectorsBytes(int index)
      Deprecated.
      weaviate.v1.NearObject.target_vectors is deprecated. See v1/base_search.proto;l=80
       deprecated in 1.26 - use targets
       
      repeated string target_vectors = 4 [deprecated = true];
      Specified by:
      getTargetVectorsBytes in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetVectors at the given index.
    • hasTargets

      public boolean hasTargets()
      .weaviate.v1.Targets targets = 5;
      Specified by:
      hasTargets in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      Whether the targets field is set.
    • getTargets

      public WeaviateProtoBaseSearch.Targets getTargets()
      .weaviate.v1.Targets targets = 5;
      Specified by:
      getTargets in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
      Returns:
      The targets.
    • getTargetsOrBuilder

      public WeaviateProtoBaseSearch.TargetsOrBuilder getTargetsOrBuilder()
      .weaviate.v1.Targets targets = 5;
      Specified by:
      getTargetsOrBuilder in interface WeaviateProtoBaseSearch.NearObjectOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WeaviateProtoBaseSearch.NearObject parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static WeaviateProtoBaseSearch.NearObject parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static WeaviateProtoBaseSearch.NearObject parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public WeaviateProtoBaseSearch.NearObject.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static WeaviateProtoBaseSearch.NearObject.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected WeaviateProtoBaseSearch.NearObject.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static WeaviateProtoBaseSearch.NearObject getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<WeaviateProtoBaseSearch.NearObject> parser()
    • getParserForType

      public com.google.protobuf.Parser<WeaviateProtoBaseSearch.NearObject> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public WeaviateProtoBaseSearch.NearObject getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder