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

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

There is a newer version: 2.4.8
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: schema.proto

package io.milvus.grpc;

/**
 * Protobuf type {@code milvus.proto.schema.IDs}
 */
public final class IDs extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.schema.IDs)
    IDsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use IDs.newBuilder() to construct.
  private IDs(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private IDs() {
  }

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

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

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

  private int idFieldCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object idField_;
  public enum IdFieldCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INT_ID(1),
    STR_ID(2),
    IDFIELD_NOT_SET(0);
    private final int value;
    private IdFieldCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static IdFieldCase valueOf(int value) {
      return forNumber(value);
    }

    public static IdFieldCase forNumber(int value) {
      switch (value) {
        case 1: return INT_ID;
        case 2: return STR_ID;
        case 0: return IDFIELD_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public IdFieldCase
  getIdFieldCase() {
    return IdFieldCase.forNumber(
        idFieldCase_);
  }

  public static final int INT_ID_FIELD_NUMBER = 1;
  /**
   * .milvus.proto.schema.LongArray int_id = 1;
   * @return Whether the intId field is set.
   */
  @java.lang.Override
  public boolean hasIntId() {
    return idFieldCase_ == 1;
  }
  /**
   * .milvus.proto.schema.LongArray int_id = 1;
   * @return The intId.
   */
  @java.lang.Override
  public io.milvus.grpc.LongArray getIntId() {
    if (idFieldCase_ == 1) {
       return (io.milvus.grpc.LongArray) idField_;
    }
    return io.milvus.grpc.LongArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.LongArray int_id = 1;
   */
  @java.lang.Override
  public io.milvus.grpc.LongArrayOrBuilder getIntIdOrBuilder() {
    if (idFieldCase_ == 1) {
       return (io.milvus.grpc.LongArray) idField_;
    }
    return io.milvus.grpc.LongArray.getDefaultInstance();
  }

  public static final int STR_ID_FIELD_NUMBER = 2;
  /**
   * .milvus.proto.schema.StringArray str_id = 2;
   * @return Whether the strId field is set.
   */
  @java.lang.Override
  public boolean hasStrId() {
    return idFieldCase_ == 2;
  }
  /**
   * .milvus.proto.schema.StringArray str_id = 2;
   * @return The strId.
   */
  @java.lang.Override
  public io.milvus.grpc.StringArray getStrId() {
    if (idFieldCase_ == 2) {
       return (io.milvus.grpc.StringArray) idField_;
    }
    return io.milvus.grpc.StringArray.getDefaultInstance();
  }
  /**
   * .milvus.proto.schema.StringArray str_id = 2;
   */
  @java.lang.Override
  public io.milvus.grpc.StringArrayOrBuilder getStrIdOrBuilder() {
    if (idFieldCase_ == 2) {
       return (io.milvus.grpc.StringArray) idField_;
    }
    return io.milvus.grpc.StringArray.getDefaultInstance();
  }

  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 (idFieldCase_ == 1) {
      output.writeMessage(1, (io.milvus.grpc.LongArray) idField_);
    }
    if (idFieldCase_ == 2) {
      output.writeMessage(2, (io.milvus.grpc.StringArray) idField_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (idFieldCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (io.milvus.grpc.LongArray) idField_);
    }
    if (idFieldCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (io.milvus.grpc.StringArray) idField_);
    }
    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.IDs)) {
      return super.equals(obj);
    }
    io.milvus.grpc.IDs other = (io.milvus.grpc.IDs) obj;

    if (!getIdFieldCase().equals(other.getIdFieldCase())) return false;
    switch (idFieldCase_) {
      case 1:
        if (!getIntId()
            .equals(other.getIntId())) return false;
        break;
      case 2:
        if (!getStrId()
            .equals(other.getStrId())) return false;
        break;
      case 0:
      default:
    }
    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();
    switch (idFieldCase_) {
      case 1:
        hash = (37 * hash) + INT_ID_FIELD_NUMBER;
        hash = (53 * hash) + getIntId().hashCode();
        break;
      case 2:
        hash = (37 * hash) + STR_ID_FIELD_NUMBER;
        hash = (53 * hash) + getStrId().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.milvus.grpc.IDs parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.IDs 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.IDs parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.IDs 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.IDs parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.milvus.grpc.IDs parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.milvus.grpc.IDs parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.IDs 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.IDs parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static io.milvus.grpc.IDs 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.IDs parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.milvus.grpc.IDs 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.IDs 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.schema.IDs}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:milvus.proto.schema.IDs)
      io.milvus.grpc.IDsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_IDs_descriptor;
    }

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

    // Construct using io.milvus.grpc.IDs.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (intIdBuilder_ != null) {
        intIdBuilder_.clear();
      }
      if (strIdBuilder_ != null) {
        strIdBuilder_.clear();
      }
      idFieldCase_ = 0;
      idField_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.milvus.grpc.SchemaProto.internal_static_milvus_proto_schema_IDs_descriptor;
    }

    @java.lang.Override
    public io.milvus.grpc.IDs getDefaultInstanceForType() {
      return io.milvus.grpc.IDs.getDefaultInstance();
    }

    @java.lang.Override
    public io.milvus.grpc.IDs build() {
      io.milvus.grpc.IDs result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.milvus.grpc.IDs buildPartial() {
      io.milvus.grpc.IDs result = new io.milvus.grpc.IDs(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(io.milvus.grpc.IDs result) {
      int from_bitField0_ = bitField0_;
    }

    private void buildPartialOneofs(io.milvus.grpc.IDs result) {
      result.idFieldCase_ = idFieldCase_;
      result.idField_ = this.idField_;
      if (idFieldCase_ == 1 &&
          intIdBuilder_ != null) {
        result.idField_ = intIdBuilder_.build();
      }
      if (idFieldCase_ == 2 &&
          strIdBuilder_ != null) {
        result.idField_ = strIdBuilder_.build();
      }
    }

    @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.IDs) {
        return mergeFrom((io.milvus.grpc.IDs)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.milvus.grpc.IDs other) {
      if (other == io.milvus.grpc.IDs.getDefaultInstance()) return this;
      switch (other.getIdFieldCase()) {
        case INT_ID: {
          mergeIntId(other.getIntId());
          break;
        }
        case STR_ID: {
          mergeStrId(other.getStrId());
          break;
        }
        case IDFIELD_NOT_SET: {
          break;
        }
      }
      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: {
              input.readMessage(
                  getIntIdFieldBuilder().getBuilder(),
                  extensionRegistry);
              idFieldCase_ = 1;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getStrIdFieldBuilder().getBuilder(),
                  extensionRegistry);
              idFieldCase_ = 2;
              break;
            } // case 18
            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 idFieldCase_ = 0;
    private java.lang.Object idField_;
    public IdFieldCase
        getIdFieldCase() {
      return IdFieldCase.forNumber(
          idFieldCase_);
    }

    public Builder clearIdField() {
      idFieldCase_ = 0;
      idField_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.LongArray, io.milvus.grpc.LongArray.Builder, io.milvus.grpc.LongArrayOrBuilder> intIdBuilder_;
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     * @return Whether the intId field is set.
     */
    @java.lang.Override
    public boolean hasIntId() {
      return idFieldCase_ == 1;
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     * @return The intId.
     */
    @java.lang.Override
    public io.milvus.grpc.LongArray getIntId() {
      if (intIdBuilder_ == null) {
        if (idFieldCase_ == 1) {
          return (io.milvus.grpc.LongArray) idField_;
        }
        return io.milvus.grpc.LongArray.getDefaultInstance();
      } else {
        if (idFieldCase_ == 1) {
          return intIdBuilder_.getMessage();
        }
        return io.milvus.grpc.LongArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    public Builder setIntId(io.milvus.grpc.LongArray value) {
      if (intIdBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        idField_ = value;
        onChanged();
      } else {
        intIdBuilder_.setMessage(value);
      }
      idFieldCase_ = 1;
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    public Builder setIntId(
        io.milvus.grpc.LongArray.Builder builderForValue) {
      if (intIdBuilder_ == null) {
        idField_ = builderForValue.build();
        onChanged();
      } else {
        intIdBuilder_.setMessage(builderForValue.build());
      }
      idFieldCase_ = 1;
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    public Builder mergeIntId(io.milvus.grpc.LongArray value) {
      if (intIdBuilder_ == null) {
        if (idFieldCase_ == 1 &&
            idField_ != io.milvus.grpc.LongArray.getDefaultInstance()) {
          idField_ = io.milvus.grpc.LongArray.newBuilder((io.milvus.grpc.LongArray) idField_)
              .mergeFrom(value).buildPartial();
        } else {
          idField_ = value;
        }
        onChanged();
      } else {
        if (idFieldCase_ == 1) {
          intIdBuilder_.mergeFrom(value);
        } else {
          intIdBuilder_.setMessage(value);
        }
      }
      idFieldCase_ = 1;
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    public Builder clearIntId() {
      if (intIdBuilder_ == null) {
        if (idFieldCase_ == 1) {
          idFieldCase_ = 0;
          idField_ = null;
          onChanged();
        }
      } else {
        if (idFieldCase_ == 1) {
          idFieldCase_ = 0;
          idField_ = null;
        }
        intIdBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    public io.milvus.grpc.LongArray.Builder getIntIdBuilder() {
      return getIntIdFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    @java.lang.Override
    public io.milvus.grpc.LongArrayOrBuilder getIntIdOrBuilder() {
      if ((idFieldCase_ == 1) && (intIdBuilder_ != null)) {
        return intIdBuilder_.getMessageOrBuilder();
      } else {
        if (idFieldCase_ == 1) {
          return (io.milvus.grpc.LongArray) idField_;
        }
        return io.milvus.grpc.LongArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.LongArray int_id = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.LongArray, io.milvus.grpc.LongArray.Builder, io.milvus.grpc.LongArrayOrBuilder> 
        getIntIdFieldBuilder() {
      if (intIdBuilder_ == null) {
        if (!(idFieldCase_ == 1)) {
          idField_ = io.milvus.grpc.LongArray.getDefaultInstance();
        }
        intIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.LongArray, io.milvus.grpc.LongArray.Builder, io.milvus.grpc.LongArrayOrBuilder>(
                (io.milvus.grpc.LongArray) idField_,
                getParentForChildren(),
                isClean());
        idField_ = null;
      }
      idFieldCase_ = 1;
      onChanged();
      return intIdBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.StringArray, io.milvus.grpc.StringArray.Builder, io.milvus.grpc.StringArrayOrBuilder> strIdBuilder_;
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     * @return Whether the strId field is set.
     */
    @java.lang.Override
    public boolean hasStrId() {
      return idFieldCase_ == 2;
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     * @return The strId.
     */
    @java.lang.Override
    public io.milvus.grpc.StringArray getStrId() {
      if (strIdBuilder_ == null) {
        if (idFieldCase_ == 2) {
          return (io.milvus.grpc.StringArray) idField_;
        }
        return io.milvus.grpc.StringArray.getDefaultInstance();
      } else {
        if (idFieldCase_ == 2) {
          return strIdBuilder_.getMessage();
        }
        return io.milvus.grpc.StringArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    public Builder setStrId(io.milvus.grpc.StringArray value) {
      if (strIdBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        idField_ = value;
        onChanged();
      } else {
        strIdBuilder_.setMessage(value);
      }
      idFieldCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    public Builder setStrId(
        io.milvus.grpc.StringArray.Builder builderForValue) {
      if (strIdBuilder_ == null) {
        idField_ = builderForValue.build();
        onChanged();
      } else {
        strIdBuilder_.setMessage(builderForValue.build());
      }
      idFieldCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    public Builder mergeStrId(io.milvus.grpc.StringArray value) {
      if (strIdBuilder_ == null) {
        if (idFieldCase_ == 2 &&
            idField_ != io.milvus.grpc.StringArray.getDefaultInstance()) {
          idField_ = io.milvus.grpc.StringArray.newBuilder((io.milvus.grpc.StringArray) idField_)
              .mergeFrom(value).buildPartial();
        } else {
          idField_ = value;
        }
        onChanged();
      } else {
        if (idFieldCase_ == 2) {
          strIdBuilder_.mergeFrom(value);
        } else {
          strIdBuilder_.setMessage(value);
        }
      }
      idFieldCase_ = 2;
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    public Builder clearStrId() {
      if (strIdBuilder_ == null) {
        if (idFieldCase_ == 2) {
          idFieldCase_ = 0;
          idField_ = null;
          onChanged();
        }
      } else {
        if (idFieldCase_ == 2) {
          idFieldCase_ = 0;
          idField_ = null;
        }
        strIdBuilder_.clear();
      }
      return this;
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    public io.milvus.grpc.StringArray.Builder getStrIdBuilder() {
      return getStrIdFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    @java.lang.Override
    public io.milvus.grpc.StringArrayOrBuilder getStrIdOrBuilder() {
      if ((idFieldCase_ == 2) && (strIdBuilder_ != null)) {
        return strIdBuilder_.getMessageOrBuilder();
      } else {
        if (idFieldCase_ == 2) {
          return (io.milvus.grpc.StringArray) idField_;
        }
        return io.milvus.grpc.StringArray.getDefaultInstance();
      }
    }
    /**
     * .milvus.proto.schema.StringArray str_id = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.StringArray, io.milvus.grpc.StringArray.Builder, io.milvus.grpc.StringArrayOrBuilder> 
        getStrIdFieldBuilder() {
      if (strIdBuilder_ == null) {
        if (!(idFieldCase_ == 2)) {
          idField_ = io.milvus.grpc.StringArray.getDefaultInstance();
        }
        strIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.StringArray, io.milvus.grpc.StringArray.Builder, io.milvus.grpc.StringArrayOrBuilder>(
                (io.milvus.grpc.StringArray) idField_,
                getParentForChildren(),
                isClean());
        idField_ = null;
      }
      idFieldCase_ = 2;
      onChanged();
      return strIdBuilder_;
    }
    @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.schema.IDs)
  }

  // @@protoc_insertion_point(class_scope:milvus.proto.schema.IDs)
  private static final io.milvus.grpc.IDs DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.milvus.grpc.IDs();
  }

  public static io.milvus.grpc.IDs getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public IDs 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.IDs getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy