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

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

Go to download

Java SDK for Milvus, a distributed high-performance vector search engine. update grpc to 1.42.1 update protobuf to 3.19.1

There is a newer version: 2.2.2.1
Show newest version
// 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_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PlaceholderValue(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            tag_ = s;
            break;
          }
          case 16: {
            int rawValue = input.readEnum();

            type_ = rawValue;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              values_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            values_.add(input.readBytes());
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        values_ = java.util.Collections.unmodifiableList(values_); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  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;
  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_;
  /**
   * .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() {
    @SuppressWarnings("deprecation")
    io.milvus.grpc.PlaceholderType result = io.milvus.grpc.PlaceholderType.valueOf(type_);
    return result == null ? io.milvus.grpc.PlaceholderType.UNRECOGNIZED : result;
  }

  public static final int VALUES_FIELD_NUMBER = 3;
  private java.util.List values_;
  /**
   * 
   * values is a 2d-array, every array contains a vector
   * 
* * 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, every array contains a vector
   * 
* * repeated bytes values = 3; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** *
   * values is a 2d-array, every array contains a vector
   * 
* * 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)); } unknownFields.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 += unknownFields.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 (!unknownFields.equals(other.unknownFields)) 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) + unknownFields.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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); tag_ = ""; type_ = 0; values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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); int from_bitField0_ = bitField0_; result.tag_ = tag_; result.type_ = type_; if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; onBuilt(); return result; } @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_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { io.milvus.grpc.PlaceholderValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.milvus.grpc.PlaceholderValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; onChanged(); return this; } /** * string tag = 1; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); 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; 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; onChanged(); return this; } /** * .milvus.proto.common.PlaceholderType type = 2; * @return The type. */ @java.lang.Override public io.milvus.grpc.PlaceholderType getType() { @SuppressWarnings("deprecation") io.milvus.grpc.PlaceholderType result = io.milvus.grpc.PlaceholderType.valueOf(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(); } type_ = value.getNumber(); onChanged(); return this; } /** * .milvus.proto.common.PlaceholderType type = 2; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000001; } } /** *
     * values is a 2d-array, every array contains a vector
     * 
* * repeated bytes values = 3; * @return A list containing the values. */ public java.util.List getValuesList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(values_) : values_; } /** *
     * values is a 2d-array, every array contains a vector
     * 
* * repeated bytes values = 3; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** *
     * values is a 2d-array, every array contains a vector
     * 
* * 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, every array contains a vector
     * 
* * 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); onChanged(); return this; } /** *
     * values is a 2d-array, every array contains a vector
     * 
* * 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); onChanged(); return this; } /** *
     * values is a 2d-array, every array contains a vector
     * 
* * 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_); onChanged(); return this; } /** *
     * values is a 2d-array, every array contains a vector
     * 
* * repeated bytes values = 3; * @return This builder for chaining. */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); 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 { return new PlaceholderValue(input, extensionRegistry); } }; 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 - 2024 Weber Informatics LLC | Privacy Policy