All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.milvus.grpc.PlaceholderValue Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package io.milvus.grpc;

/**
 * Protobuf type {@code milvus.proto.common.PlaceholderValue}
 */
public final class PlaceholderValue extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.common.PlaceholderValue)
    PlaceholderValueOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PlaceholderValue.newBuilder() to construct.
  private PlaceholderValue(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PlaceholderValue() {
    tag_ = "";
    type_ = 0;
    values_ = emptyList(com.google.protobuf.ByteString.class);
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new PlaceholderValue();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PlaceholderValue_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PlaceholderValue_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.milvus.grpc.PlaceholderValue.class, io.milvus.grpc.PlaceholderValue.Builder.class);
  }

  public static final int TAG_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object tag_ = "";
  /**
   * string tag = 1;
   * @return The tag.
   */
  @java.lang.Override
  public java.lang.String getTag() {
    java.lang.Object ref = tag_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      tag_ = s;
      return s;
    }
  }
  /**
   * string tag = 1;
   * @return The bytes for tag.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTagBytes() {
    java.lang.Object ref = tag_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      tag_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TYPE_FIELD_NUMBER = 2;
  private int type_ = 0;
  /**
   * .milvus.proto.common.PlaceholderType type = 2;
   * @return The enum numeric value on the wire for type.
   */
  @java.lang.Override public int getTypeValue() {
    return type_;
  }
  /**
   * .milvus.proto.common.PlaceholderType type = 2;
   * @return The type.
   */
  @java.lang.Override public io.milvus.grpc.PlaceholderType getType() {
    io.milvus.grpc.PlaceholderType result = io.milvus.grpc.PlaceholderType.forNumber(type_);
    return result == null ? io.milvus.grpc.PlaceholderType.UNRECOGNIZED : result;
  }

  public static final int VALUES_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private com.google.protobuf.Internal.ProtobufList values_ =
      emptyList(com.google.protobuf.ByteString.class);
  /**
   * 
   * 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; * @return A list containing the values. */ @java.lang.Override public java.util.List getValuesList() { return 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; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** *
   * 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; * @param index The index of the element to return. * @return The values at the given index. */ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); } if (type_ != io.milvus.grpc.PlaceholderType.None.getNumber()) { output.writeEnum(2, type_); } for (int i = 0; i < values_.size(); i++) { output.writeBytes(3, values_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); } if (type_ != io.milvus.grpc.PlaceholderType.None.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.milvus.grpc.PlaceholderValue)) { return super.equals(obj); } io.milvus.grpc.PlaceholderValue other = (io.milvus.grpc.PlaceholderValue) obj; if (!getTag() .equals(other.getTag())) return false; if (type_ != other.type_) return false; if (!getValuesList() .equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.PlaceholderValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.PlaceholderValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.PlaceholderValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.PlaceholderValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.PlaceholderValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.PlaceholderValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.PlaceholderValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.PlaceholderValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.milvus.grpc.PlaceholderValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.PlaceholderValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.milvus.grpc.PlaceholderValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.PlaceholderValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.milvus.grpc.PlaceholderValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code milvus.proto.common.PlaceholderValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.common.PlaceholderValue) io.milvus.grpc.PlaceholderValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PlaceholderValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PlaceholderValue_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.PlaceholderValue.class, io.milvus.grpc.PlaceholderValue.Builder.class); } // Construct using io.milvus.grpc.PlaceholderValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; tag_ = ""; type_ = 0; values_ = emptyList(com.google.protobuf.ByteString.class); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_PlaceholderValue_descriptor; } @java.lang.Override public io.milvus.grpc.PlaceholderValue getDefaultInstanceForType() { return io.milvus.grpc.PlaceholderValue.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.PlaceholderValue build() { io.milvus.grpc.PlaceholderValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.PlaceholderValue buildPartial() { io.milvus.grpc.PlaceholderValue result = new io.milvus.grpc.PlaceholderValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.milvus.grpc.PlaceholderValue result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.tag_ = tag_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { values_.makeImmutable(); result.values_ = values_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.milvus.grpc.PlaceholderValue) { return mergeFrom((io.milvus.grpc.PlaceholderValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.PlaceholderValue other) { if (other == io.milvus.grpc.PlaceholderValue.getDefaultInstance()) return this; if (!other.getTag().isEmpty()) { tag_ = other.tag_; bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; values_.makeImmutable(); bitField0_ |= 0x00000004; } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { tag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { com.google.protobuf.ByteString v = input.readBytes(); ensureValuesIsMutable(); values_.add(v); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object tag_ = ""; /** * string tag = 1; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tag = 1; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tag = 1; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string tag = 1; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string tag = 1; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int type_ = 0; /** * .milvus.proto.common.PlaceholderType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .milvus.proto.common.PlaceholderType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .milvus.proto.common.PlaceholderType type = 2; * @return The type. */ @java.lang.Override public io.milvus.grpc.PlaceholderType getType() { io.milvus.grpc.PlaceholderType result = io.milvus.grpc.PlaceholderType.forNumber(type_); return result == null ? io.milvus.grpc.PlaceholderType.UNRECOGNIZED : result; } /** * .milvus.proto.common.PlaceholderType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.milvus.grpc.PlaceholderType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** * .milvus.proto.common.PlaceholderType type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.ProtobufList values_ = emptyList(com.google.protobuf.ByteString.class); private void ensureValuesIsMutable() { if (!values_.isModifiable()) { values_ = makeMutableCopy(values_); } bitField0_ |= 0x00000004; } /** *
     * 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; * @return A list containing the values. */ public java.util.List getValuesList() { values_.makeImmutable(); return 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; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** *
     * 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; * @param index The index of the element to return. * @return The values at the given index. */ public com.google.protobuf.ByteString getValues(int index) { return values_.get(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; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * 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; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * 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; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * 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; * @return This builder for chaining. */ public Builder clearValues() { values_ = emptyList(com.google.protobuf.ByteString.class); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:milvus.proto.common.PlaceholderValue) } // @@protoc_insertion_point(class_scope:milvus.proto.common.PlaceholderValue) private static final io.milvus.grpc.PlaceholderValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.PlaceholderValue(); } public static io.milvus.grpc.PlaceholderValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlaceholderValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.milvus.grpc.PlaceholderValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy