Class PlaceholderValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<PlaceholderValue.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
io.milvus.grpc.PlaceholderValue.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PlaceholderValueOrBuilder, Cloneable
Enclosing class:
PlaceholderValue

public static final class PlaceholderValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder> implements PlaceholderValueOrBuilder
Protobuf type milvus.proto.common.PlaceholderValue
  • Method Details

    • 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.Builder<PlaceholderValue.Builder>
    • clear

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

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

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

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

      public PlaceholderValue.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • setField

      public PlaceholderValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • clearField

      public PlaceholderValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • clearOneof

      public PlaceholderValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • setRepeatedField

      public PlaceholderValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • addRepeatedField

      public PlaceholderValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • mergeFrom

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

      public PlaceholderValue.Builder mergeFrom(PlaceholderValue other)
    • isInitialized

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

      public PlaceholderValue.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<PlaceholderValue.Builder>
      Throws:
      IOException
    • getTag

      public String getTag()
      string tag = 1;
      Specified by:
      getTag in interface PlaceholderValueOrBuilder
      Returns:
      The tag.
    • getTagBytes

      public com.google.protobuf.ByteString getTagBytes()
      string tag = 1;
      Specified by:
      getTagBytes in interface PlaceholderValueOrBuilder
      Returns:
      The bytes for tag.
    • setTag

      public PlaceholderValue.Builder setTag(String value)
      string tag = 1;
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public PlaceholderValue.Builder clearTag()
      string tag = 1;
      Returns:
      This builder for chaining.
    • setTagBytes

      public PlaceholderValue.Builder setTagBytes(com.google.protobuf.ByteString value)
      string tag = 1;
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
      .milvus.proto.common.PlaceholderType type = 2;
      Specified by:
      getTypeValue in interface PlaceholderValueOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public PlaceholderValue.Builder setTypeValue(int value)
      .milvus.proto.common.PlaceholderType type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public PlaceholderType getType()
      .milvus.proto.common.PlaceholderType type = 2;
      Specified by:
      getType in interface PlaceholderValueOrBuilder
      Returns:
      The type.
    • setType

      public PlaceholderValue.Builder setType(PlaceholderType value)
      .milvus.proto.common.PlaceholderType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public PlaceholderValue.Builder clearType()
      .milvus.proto.common.PlaceholderType type = 2;
      Returns:
      This builder for chaining.
    • getValuesList

      public List<com.google.protobuf.ByteString> getValuesList()
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Specified by:
      getValuesList in interface PlaceholderValueOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Specified by:
      getValuesCount in interface PlaceholderValueOrBuilder
      Returns:
      The count of values.
    • getValues

      public com.google.protobuf.ByteString getValues(int index)
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Specified by:
      getValues in interface PlaceholderValueOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • setValues

      public PlaceholderValue.Builder setValues(int index, com.google.protobuf.ByteString value)
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Parameters:
      index - The index to set the value at.
      value - The values to set.
      Returns:
      This builder for chaining.
    • addValues

      public PlaceholderValue.Builder addValues(com.google.protobuf.ByteString value)
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

      public PlaceholderValue.Builder addAllValues(Iterable<? extends com.google.protobuf.ByteString> values)
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

      public PlaceholderValue.Builder clearValues()
       values is a 2d-array of nq rows, every row contains a query vector.
       for dense vector, all rows are of the same length; for sparse vector,
       the length of each row may vary depending on their number of non-zeros.
       
      repeated bytes values = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final PlaceholderValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>
    • mergeUnknownFields

      public final PlaceholderValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PlaceholderValue.Builder>