Class CottontailGrpc.Sample

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.vitrivr.cottontail.grpc.CottontailGrpc.Sample
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, CottontailGrpc.SampleOrBuilder
Enclosing class:
CottontailGrpc

public static final class CottontailGrpc.Sample extends com.google.protobuf.GeneratedMessageV3 implements CottontailGrpc.SampleOrBuilder
 Describes a random SAMPLE of an Entity. Can be used to specify the "FROM" part of a query. 
 
Protobuf type org.vitrivr.cottontail.grpc.Sample
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • bitField0_

      private int bitField0_
    • ENTITY_FIELD_NUMBER

      public static final int ENTITY_FIELD_NUMBER
      See Also:
    • entity_

      private CottontailGrpc.EntityName entity_
    • SEED_FIELD_NUMBER

      public static final int SEED_FIELD_NUMBER
      See Also:
    • seed_

      private long seed_
    • PROBABILITY_FIELD_NUMBER

      public static final int PROBABILITY_FIELD_NUMBER
      See Also:
    • probability_

      private float probability_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final CottontailGrpc.Sample DEFAULT_INSTANCE
    • PARSER

      private static final com.google.protobuf.Parser<CottontailGrpc.Sample> PARSER
  • Constructor Details

    • Sample

      private Sample(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
    • Sample

      private Sample()
  • 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()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasEntity

      public boolean hasEntity()
      .org.vitrivr.cottontail.grpc.EntityName entity = 1;
      Specified by:
      hasEntity in interface CottontailGrpc.SampleOrBuilder
      Returns:
      Whether the entity field is set.
    • getEntity

      public CottontailGrpc.EntityName getEntity()
      .org.vitrivr.cottontail.grpc.EntityName entity = 1;
      Specified by:
      getEntity in interface CottontailGrpc.SampleOrBuilder
      Returns:
      The entity.
    • getEntityOrBuilder

      public CottontailGrpc.EntityNameOrBuilder getEntityOrBuilder()
      .org.vitrivr.cottontail.grpc.EntityName entity = 1;
      Specified by:
      getEntityOrBuilder in interface CottontailGrpc.SampleOrBuilder
    • getSeed

      public long getSeed()
      int64 seed = 2;
      Specified by:
      getSeed in interface CottontailGrpc.SampleOrBuilder
      Returns:
      The seed.
    • getProbability

      public float getProbability()
      float probability = 3;
      Specified by:
      getProbability in interface CottontailGrpc.SampleOrBuilder
      Returns:
      The probability.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class 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.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • 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 CottontailGrpc.Sample parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static CottontailGrpc.Sample parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static CottontailGrpc.Sample parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static CottontailGrpc.Sample.Builder newBuilder()
    • newBuilder

      public static CottontailGrpc.Sample.Builder newBuilder(CottontailGrpc.Sample prototype)
    • toBuilder

      public CottontailGrpc.Sample.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static CottontailGrpc.Sample getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CottontailGrpc.Sample> parser()
    • getParserForType

      public com.google.protobuf.Parser<CottontailGrpc.Sample> 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.GeneratedMessageV3
    • getDefaultInstanceForType

      public CottontailGrpc.Sample getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder