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

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

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

package io.milvus.grpc;

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

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 3:
        return internalGetCollSegIDs();
      case 4:
        return internalGetFlushCollSegIDs();
      case 5:
        return internalGetCollSealTimes();
      case 6:
        return internalGetCollFlushTs();
      case 7:
        return internalGetChannelCps();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.milvus.grpc.FlushResponse.class, io.milvus.grpc.FlushResponse.Builder.class);
  }

  private int bitField0_;
  public static final int STATUS_FIELD_NUMBER = 1;
  private io.milvus.grpc.Status status_;
  /**
   * .milvus.proto.common.Status status = 1;
   * @return Whether the status field is set.
   */
  @java.lang.Override
  public boolean hasStatus() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .milvus.proto.common.Status status = 1;
   * @return The status.
   */
  @java.lang.Override
  public io.milvus.grpc.Status getStatus() {
    return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_;
  }
  /**
   * .milvus.proto.common.Status status = 1;
   */
  @java.lang.Override
  public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() {
    return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_;
  }

  public static final int DB_NAME_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private volatile java.lang.Object dbName_ = "";
  /**
   * string db_name = 2;
   * @return The dbName.
   */
  @java.lang.Override
  public java.lang.String getDbName() {
    java.lang.Object ref = dbName_;
    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();
      dbName_ = s;
      return s;
    }
  }
  /**
   * string db_name = 2;
   * @return The bytes for dbName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDbNameBytes() {
    java.lang.Object ref = dbName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      dbName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int COLL_SEGIDS_FIELD_NUMBER = 3;
  private static final class CollSegIDsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, io.milvus.grpc.LongArray> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_CollSegIDsEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                io.milvus.grpc.LongArray.getDefaultInstance());
  }
  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<
      java.lang.String, io.milvus.grpc.LongArray> collSegIDs_;
  private com.google.protobuf.MapField
  internalGetCollSegIDs() {
    if (collSegIDs_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          CollSegIDsDefaultEntryHolder.defaultEntry);
    }
    return collSegIDs_;
  }
  public int getCollSegIDsCount() {
    return internalGetCollSegIDs().getMap().size();
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3;
   */
  @java.lang.Override
  public boolean containsCollSegIDs(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetCollSegIDs().getMap().containsKey(key);
  }
  /**
   * Use {@link #getCollSegIDsMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getCollSegIDs() {
    return getCollSegIDsMap();
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3;
   */
  @java.lang.Override
  public java.util.Map getCollSegIDsMap() {
    return internalGetCollSegIDs().getMap();
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3;
   */
  @java.lang.Override
  public /* nullable */
io.milvus.grpc.LongArray getCollSegIDsOrDefault(
      java.lang.String key,
      /* nullable */
io.milvus.grpc.LongArray defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetCollSegIDs().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3;
   */
  @java.lang.Override
  public io.milvus.grpc.LongArray getCollSegIDsOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetCollSegIDs().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int FLUSH_COLL_SEGIDS_FIELD_NUMBER = 4;
  private static final class FlushCollSegIDsDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, io.milvus.grpc.LongArray> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_FlushCollSegIDsEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                io.milvus.grpc.LongArray.getDefaultInstance());
  }
  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<
      java.lang.String, io.milvus.grpc.LongArray> flushCollSegIDs_;
  private com.google.protobuf.MapField
  internalGetFlushCollSegIDs() {
    if (flushCollSegIDs_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          FlushCollSegIDsDefaultEntryHolder.defaultEntry);
    }
    return flushCollSegIDs_;
  }
  public int getFlushCollSegIDsCount() {
    return internalGetFlushCollSegIDs().getMap().size();
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4;
   */
  @java.lang.Override
  public boolean containsFlushCollSegIDs(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetFlushCollSegIDs().getMap().containsKey(key);
  }
  /**
   * Use {@link #getFlushCollSegIDsMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getFlushCollSegIDs() {
    return getFlushCollSegIDsMap();
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4;
   */
  @java.lang.Override
  public java.util.Map getFlushCollSegIDsMap() {
    return internalGetFlushCollSegIDs().getMap();
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4;
   */
  @java.lang.Override
  public /* nullable */
io.milvus.grpc.LongArray getFlushCollSegIDsOrDefault(
      java.lang.String key,
      /* nullable */
io.milvus.grpc.LongArray defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetFlushCollSegIDs().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4;
   */
  @java.lang.Override
  public io.milvus.grpc.LongArray getFlushCollSegIDsOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetFlushCollSegIDs().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int COLL_SEAL_TIMES_FIELD_NUMBER = 5;
  private static final class CollSealTimesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.Long> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_CollSealTimesEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.INT64,
                0L);
  }
  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.Long> collSealTimes_;
  private com.google.protobuf.MapField
  internalGetCollSealTimes() {
    if (collSealTimes_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          CollSealTimesDefaultEntryHolder.defaultEntry);
    }
    return collSealTimes_;
  }
  public int getCollSealTimesCount() {
    return internalGetCollSealTimes().getMap().size();
  }
  /**
   * 
   * physical time for backup tool
   * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public boolean containsCollSealTimes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollSealTimes().getMap().containsKey(key); } /** * Use {@link #getCollSealTimesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollSealTimes() { return getCollSealTimesMap(); } /** *
   * physical time for backup tool
   * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public java.util.Map getCollSealTimesMap() { return internalGetCollSealTimes().getMap(); } /** *
   * physical time for backup tool
   * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public long getCollSealTimesOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollSealTimes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * physical time for backup tool
   * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public long getCollSealTimesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollSealTimes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int COLL_FLUSH_TS_FIELD_NUMBER = 6; private static final class CollFlushTsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Long> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_CollFlushTsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.UINT64, 0L); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Long> collFlushTs_; private com.google.protobuf.MapField internalGetCollFlushTs() { if (collFlushTs_ == null) { return com.google.protobuf.MapField.emptyMapField( CollFlushTsDefaultEntryHolder.defaultEntry); } return collFlushTs_; } public int getCollFlushTsCount() { return internalGetCollFlushTs().getMap().size(); } /** *
   * hybrid ts for geting flush tate
   * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public boolean containsCollFlushTs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollFlushTs().getMap().containsKey(key); } /** * Use {@link #getCollFlushTsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollFlushTs() { return getCollFlushTsMap(); } /** *
   * hybrid ts for geting flush tate
   * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public java.util.Map getCollFlushTsMap() { return internalGetCollFlushTs().getMap(); } /** *
   * hybrid ts for geting flush tate
   * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public long getCollFlushTsOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollFlushTs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * hybrid ts for geting flush tate
   * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public long getCollFlushTsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollFlushTs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CHANNEL_CPS_FIELD_NUMBER = 7; private static final class ChannelCpsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, milvus.proto.msg.Msg.MsgPosition> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_ChannelCpsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, milvus.proto.msg.Msg.MsgPosition.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, milvus.proto.msg.Msg.MsgPosition> channelCps_; private com.google.protobuf.MapField internalGetChannelCps() { if (channelCps_ == null) { return com.google.protobuf.MapField.emptyMapField( ChannelCpsDefaultEntryHolder.defaultEntry); } return channelCps_; } public int getChannelCpsCount() { return internalGetChannelCps().getMap().size(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public boolean containsChannelCps( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetChannelCps().getMap().containsKey(key); } /** * Use {@link #getChannelCpsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getChannelCps() { return getChannelCpsMap(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public java.util.Map getChannelCpsMap() { return internalGetChannelCps().getMap(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public /* nullable */ milvus.proto.msg.Msg.MsgPosition getChannelCpsOrDefault( java.lang.String key, /* nullable */ milvus.proto.msg.Msg.MsgPosition defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetChannelCps().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public milvus.proto.msg.Msg.MsgPosition getChannelCpsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetChannelCps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dbName_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCollSegIDs(), CollSegIDsDefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFlushCollSegIDs(), FlushCollSegIDsDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCollSealTimes(), CollSealTimesDefaultEntryHolder.defaultEntry, 5); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCollFlushTs(), CollFlushTsDefaultEntryHolder.defaultEntry, 6); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetChannelCps(), ChannelCpsDefaultEntryHolder.defaultEntry, 7); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dbName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dbName_); } for (java.util.Map.Entry entry : internalGetCollSegIDs().getMap().entrySet()) { com.google.protobuf.MapEntry collSegIDs__ = CollSegIDsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, collSegIDs__); } for (java.util.Map.Entry entry : internalGetFlushCollSegIDs().getMap().entrySet()) { com.google.protobuf.MapEntry flushCollSegIDs__ = FlushCollSegIDsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, flushCollSegIDs__); } for (java.util.Map.Entry entry : internalGetCollSealTimes().getMap().entrySet()) { com.google.protobuf.MapEntry collSealTimes__ = CollSealTimesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, collSealTimes__); } for (java.util.Map.Entry entry : internalGetCollFlushTs().getMap().entrySet()) { com.google.protobuf.MapEntry collFlushTs__ = CollFlushTsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, collFlushTs__); } for (java.util.Map.Entry entry : internalGetChannelCps().getMap().entrySet()) { com.google.protobuf.MapEntry channelCps__ = ChannelCpsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, channelCps__); } 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.FlushResponse)) { return super.equals(obj); } io.milvus.grpc.FlushResponse other = (io.milvus.grpc.FlushResponse) obj; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus() .equals(other.getStatus())) return false; } if (!getDbName() .equals(other.getDbName())) return false; if (!internalGetCollSegIDs().equals( other.internalGetCollSegIDs())) return false; if (!internalGetFlushCollSegIDs().equals( other.internalGetFlushCollSegIDs())) return false; if (!internalGetCollSealTimes().equals( other.internalGetCollSealTimes())) return false; if (!internalGetCollFlushTs().equals( other.internalGetCollFlushTs())) return false; if (!internalGetChannelCps().equals( other.internalGetChannelCps())) 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(); if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } hash = (37 * hash) + DB_NAME_FIELD_NUMBER; hash = (53 * hash) + getDbName().hashCode(); if (!internalGetCollSegIDs().getMap().isEmpty()) { hash = (37 * hash) + COLL_SEGIDS_FIELD_NUMBER; hash = (53 * hash) + internalGetCollSegIDs().hashCode(); } if (!internalGetFlushCollSegIDs().getMap().isEmpty()) { hash = (37 * hash) + FLUSH_COLL_SEGIDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFlushCollSegIDs().hashCode(); } if (!internalGetCollSealTimes().getMap().isEmpty()) { hash = (37 * hash) + COLL_SEAL_TIMES_FIELD_NUMBER; hash = (53 * hash) + internalGetCollSealTimes().hashCode(); } if (!internalGetCollFlushTs().getMap().isEmpty()) { hash = (37 * hash) + COLL_FLUSH_TS_FIELD_NUMBER; hash = (53 * hash) + internalGetCollFlushTs().hashCode(); } if (!internalGetChannelCps().getMap().isEmpty()) { hash = (37 * hash) + CHANNEL_CPS_FIELD_NUMBER; hash = (53 * hash) + internalGetChannelCps().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.milvus.grpc.FlushResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.FlushResponse 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.FlushResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.FlushResponse 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.FlushResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.milvus.grpc.FlushResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.milvus.grpc.FlushResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.FlushResponse 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.FlushResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.milvus.grpc.FlushResponse 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.FlushResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.milvus.grpc.FlushResponse 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.FlushResponse 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.milvus.FlushResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:milvus.proto.milvus.FlushResponse) io.milvus.grpc.FlushResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetCollSegIDs(); case 4: return internalGetFlushCollSegIDs(); case 5: return internalGetCollSealTimes(); case 6: return internalGetCollFlushTs(); case 7: return internalGetChannelCps(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableCollSegIDs(); case 4: return internalGetMutableFlushCollSegIDs(); case 5: return internalGetMutableCollSealTimes(); case 6: return internalGetMutableCollFlushTs(); case 7: return internalGetMutableChannelCps(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.milvus.grpc.FlushResponse.class, io.milvus.grpc.FlushResponse.Builder.class); } // Construct using io.milvus.grpc.FlushResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStatusFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } dbName_ = ""; internalGetMutableCollSegIDs().clear(); internalGetMutableFlushCollSegIDs().clear(); internalGetMutableCollSealTimes().clear(); internalGetMutableCollFlushTs().clear(); internalGetMutableChannelCps().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.milvus.grpc.MilvusProto.internal_static_milvus_proto_milvus_FlushResponse_descriptor; } @java.lang.Override public io.milvus.grpc.FlushResponse getDefaultInstanceForType() { return io.milvus.grpc.FlushResponse.getDefaultInstance(); } @java.lang.Override public io.milvus.grpc.FlushResponse build() { io.milvus.grpc.FlushResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.milvus.grpc.FlushResponse buildPartial() { io.milvus.grpc.FlushResponse result = new io.milvus.grpc.FlushResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.milvus.grpc.FlushResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dbName_ = dbName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.collSegIDs_ = internalGetCollSegIDs(); result.collSegIDs_.makeImmutable(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.flushCollSegIDs_ = internalGetFlushCollSegIDs(); result.flushCollSegIDs_.makeImmutable(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.collSealTimes_ = internalGetCollSealTimes(); result.collSealTimes_.makeImmutable(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.collFlushTs_ = internalGetCollFlushTs(); result.collFlushTs_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.channelCps_ = internalGetChannelCps(); result.channelCps_.makeImmutable(); } result.bitField0_ |= to_bitField0_; } @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.FlushResponse) { return mergeFrom((io.milvus.grpc.FlushResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.milvus.grpc.FlushResponse other) { if (other == io.milvus.grpc.FlushResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (!other.getDbName().isEmpty()) { dbName_ = other.dbName_; bitField0_ |= 0x00000002; onChanged(); } internalGetMutableCollSegIDs().mergeFrom( other.internalGetCollSegIDs()); bitField0_ |= 0x00000004; internalGetMutableFlushCollSegIDs().mergeFrom( other.internalGetFlushCollSegIDs()); bitField0_ |= 0x00000008; internalGetMutableCollSealTimes().mergeFrom( other.internalGetCollSealTimes()); bitField0_ |= 0x00000010; internalGetMutableCollFlushTs().mergeFrom( other.internalGetCollFlushTs()); bitField0_ |= 0x00000020; internalGetMutableChannelCps().mergeFrom( other.internalGetChannelCps()); bitField0_ |= 0x00000040; 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( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { dbName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.google.protobuf.MapEntry collSegIDs__ = input.readMessage( CollSegIDsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableCollSegIDs().getMutableMap().put( collSegIDs__.getKey(), collSegIDs__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry flushCollSegIDs__ = input.readMessage( FlushCollSegIDsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFlushCollSegIDs().getMutableMap().put( flushCollSegIDs__.getKey(), flushCollSegIDs__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry collSealTimes__ = input.readMessage( CollSealTimesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableCollSealTimes().getMutableMap().put( collSealTimes__.getKey(), collSealTimes__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry collFlushTs__ = input.readMessage( CollFlushTsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableCollFlushTs().getMutableMap().put( collFlushTs__.getKey(), collFlushTs__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry channelCps__ = input.readMessage( ChannelCpsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableChannelCps().getMutableMap().put( channelCps__.getKey(), channelCps__.getValue()); bitField0_ |= 0x00000040; break; } // case 58 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 io.milvus.grpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> statusBuilder_; /** * .milvus.proto.common.Status status = 1; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); } /** * .milvus.proto.common.Status status = 1; * @return The status. */ public io.milvus.grpc.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** * .milvus.proto.common.Status status = 1; */ public Builder setStatus(io.milvus.grpc.Status value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } status_ = value; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .milvus.proto.common.Status status = 1; */ public Builder setStatus( io.milvus.grpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .milvus.proto.common.Status status = 1; */ public Builder mergeStatus(io.milvus.grpc.Status value) { if (statusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && status_ != null && status_ != io.milvus.grpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .milvus.proto.common.Status status = 1; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); return this; } /** * .milvus.proto.common.Status status = 1; */ public io.milvus.grpc.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** * .milvus.proto.common.Status status = 1; */ public io.milvus.grpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.milvus.grpc.Status.getDefaultInstance() : status_; } } /** * .milvus.proto.common.Status status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.milvus.grpc.Status, io.milvus.grpc.Status.Builder, io.milvus.grpc.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private java.lang.Object dbName_ = ""; /** * string db_name = 2; * @return The dbName. */ public java.lang.String getDbName() { java.lang.Object ref = dbName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dbName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string db_name = 2; * @return The bytes for dbName. */ public com.google.protobuf.ByteString getDbNameBytes() { java.lang.Object ref = dbName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string db_name = 2; * @param value The dbName to set. * @return This builder for chaining. */ public Builder setDbName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dbName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string db_name = 2; * @return This builder for chaining. */ public Builder clearDbName() { dbName_ = getDefaultInstance().getDbName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string db_name = 2; * @param value The bytes for dbName to set. * @return This builder for chaining. */ public Builder setDbNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dbName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, io.milvus.grpc.LongArray> collSegIDs_; private com.google.protobuf.MapField internalGetCollSegIDs() { if (collSegIDs_ == null) { return com.google.protobuf.MapField.emptyMapField( CollSegIDsDefaultEntryHolder.defaultEntry); } return collSegIDs_; } private com.google.protobuf.MapField internalGetMutableCollSegIDs() { if (collSegIDs_ == null) { collSegIDs_ = com.google.protobuf.MapField.newMapField( CollSegIDsDefaultEntryHolder.defaultEntry); } if (!collSegIDs_.isMutable()) { collSegIDs_ = collSegIDs_.copy(); } bitField0_ |= 0x00000004; onChanged(); return collSegIDs_; } public int getCollSegIDsCount() { return internalGetCollSegIDs().getMap().size(); } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ @java.lang.Override public boolean containsCollSegIDs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollSegIDs().getMap().containsKey(key); } /** * Use {@link #getCollSegIDsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollSegIDs() { return getCollSegIDsMap(); } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ @java.lang.Override public java.util.Map getCollSegIDsMap() { return internalGetCollSegIDs().getMap(); } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ @java.lang.Override public /* nullable */ io.milvus.grpc.LongArray getCollSegIDsOrDefault( java.lang.String key, /* nullable */ io.milvus.grpc.LongArray defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollSegIDs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ @java.lang.Override public io.milvus.grpc.LongArray getCollSegIDsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollSegIDs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCollSegIDs() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableCollSegIDs().getMutableMap() .clear(); return this; } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ public Builder removeCollSegIDs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollSegIDs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCollSegIDs() { bitField0_ |= 0x00000004; return internalGetMutableCollSegIDs().getMutableMap(); } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ public Builder putCollSegIDs( java.lang.String key, io.milvus.grpc.LongArray value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableCollSegIDs().getMutableMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** * map<string, .milvus.proto.schema.LongArray> coll_segIDs = 3; */ public Builder putAllCollSegIDs( java.util.Map values) { internalGetMutableCollSegIDs().getMutableMap() .putAll(values); bitField0_ |= 0x00000004; return this; } private com.google.protobuf.MapField< java.lang.String, io.milvus.grpc.LongArray> flushCollSegIDs_; private com.google.protobuf.MapField internalGetFlushCollSegIDs() { if (flushCollSegIDs_ == null) { return com.google.protobuf.MapField.emptyMapField( FlushCollSegIDsDefaultEntryHolder.defaultEntry); } return flushCollSegIDs_; } private com.google.protobuf.MapField internalGetMutableFlushCollSegIDs() { if (flushCollSegIDs_ == null) { flushCollSegIDs_ = com.google.protobuf.MapField.newMapField( FlushCollSegIDsDefaultEntryHolder.defaultEntry); } if (!flushCollSegIDs_.isMutable()) { flushCollSegIDs_ = flushCollSegIDs_.copy(); } bitField0_ |= 0x00000008; onChanged(); return flushCollSegIDs_; } public int getFlushCollSegIDsCount() { return internalGetFlushCollSegIDs().getMap().size(); } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ @java.lang.Override public boolean containsFlushCollSegIDs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFlushCollSegIDs().getMap().containsKey(key); } /** * Use {@link #getFlushCollSegIDsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFlushCollSegIDs() { return getFlushCollSegIDsMap(); } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ @java.lang.Override public java.util.Map getFlushCollSegIDsMap() { return internalGetFlushCollSegIDs().getMap(); } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ @java.lang.Override public /* nullable */ io.milvus.grpc.LongArray getFlushCollSegIDsOrDefault( java.lang.String key, /* nullable */ io.milvus.grpc.LongArray defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFlushCollSegIDs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ @java.lang.Override public io.milvus.grpc.LongArray getFlushCollSegIDsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFlushCollSegIDs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFlushCollSegIDs() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableFlushCollSegIDs().getMutableMap() .clear(); return this; } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ public Builder removeFlushCollSegIDs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFlushCollSegIDs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFlushCollSegIDs() { bitField0_ |= 0x00000008; return internalGetMutableFlushCollSegIDs().getMutableMap(); } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ public Builder putFlushCollSegIDs( java.lang.String key, io.milvus.grpc.LongArray value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableFlushCollSegIDs().getMutableMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** * map<string, .milvus.proto.schema.LongArray> flush_coll_segIDs = 4; */ public Builder putAllFlushCollSegIDs( java.util.Map values) { internalGetMutableFlushCollSegIDs().getMutableMap() .putAll(values); bitField0_ |= 0x00000008; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> collSealTimes_; private com.google.protobuf.MapField internalGetCollSealTimes() { if (collSealTimes_ == null) { return com.google.protobuf.MapField.emptyMapField( CollSealTimesDefaultEntryHolder.defaultEntry); } return collSealTimes_; } private com.google.protobuf.MapField internalGetMutableCollSealTimes() { if (collSealTimes_ == null) { collSealTimes_ = com.google.protobuf.MapField.newMapField( CollSealTimesDefaultEntryHolder.defaultEntry); } if (!collSealTimes_.isMutable()) { collSealTimes_ = collSealTimes_.copy(); } bitField0_ |= 0x00000010; onChanged(); return collSealTimes_; } public int getCollSealTimesCount() { return internalGetCollSealTimes().getMap().size(); } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public boolean containsCollSealTimes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollSealTimes().getMap().containsKey(key); } /** * Use {@link #getCollSealTimesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollSealTimes() { return getCollSealTimesMap(); } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public java.util.Map getCollSealTimesMap() { return internalGetCollSealTimes().getMap(); } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public long getCollSealTimesOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollSealTimes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ @java.lang.Override public long getCollSealTimesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollSealTimes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCollSealTimes() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableCollSealTimes().getMutableMap() .clear(); return this; } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ public Builder removeCollSealTimes( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollSealTimes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCollSealTimes() { bitField0_ |= 0x00000010; return internalGetMutableCollSealTimes().getMutableMap(); } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ public Builder putCollSealTimes( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollSealTimes().getMutableMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
     * physical time for backup tool
     * 
* * map<string, int64> coll_seal_times = 5; */ public Builder putAllCollSealTimes( java.util.Map values) { internalGetMutableCollSealTimes().getMutableMap() .putAll(values); bitField0_ |= 0x00000010; return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Long> collFlushTs_; private com.google.protobuf.MapField internalGetCollFlushTs() { if (collFlushTs_ == null) { return com.google.protobuf.MapField.emptyMapField( CollFlushTsDefaultEntryHolder.defaultEntry); } return collFlushTs_; } private com.google.protobuf.MapField internalGetMutableCollFlushTs() { if (collFlushTs_ == null) { collFlushTs_ = com.google.protobuf.MapField.newMapField( CollFlushTsDefaultEntryHolder.defaultEntry); } if (!collFlushTs_.isMutable()) { collFlushTs_ = collFlushTs_.copy(); } bitField0_ |= 0x00000020; onChanged(); return collFlushTs_; } public int getCollFlushTsCount() { return internalGetCollFlushTs().getMap().size(); } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public boolean containsCollFlushTs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollFlushTs().getMap().containsKey(key); } /** * Use {@link #getCollFlushTsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollFlushTs() { return getCollFlushTsMap(); } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public java.util.Map getCollFlushTsMap() { return internalGetCollFlushTs().getMap(); } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public long getCollFlushTsOrDefault( java.lang.String key, long defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollFlushTs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ @java.lang.Override public long getCollFlushTsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollFlushTs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearCollFlushTs() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableCollFlushTs().getMutableMap() .clear(); return this; } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ public Builder removeCollFlushTs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollFlushTs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCollFlushTs() { bitField0_ |= 0x00000020; return internalGetMutableCollFlushTs().getMutableMap(); } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ public Builder putCollFlushTs( java.lang.String key, long value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollFlushTs().getMutableMap() .put(key, value); bitField0_ |= 0x00000020; return this; } /** *
     * hybrid ts for geting flush tate
     * 
* * map<string, uint64> coll_flush_ts = 6; */ public Builder putAllCollFlushTs( java.util.Map values) { internalGetMutableCollFlushTs().getMutableMap() .putAll(values); bitField0_ |= 0x00000020; return this; } private com.google.protobuf.MapField< java.lang.String, milvus.proto.msg.Msg.MsgPosition> channelCps_; private com.google.protobuf.MapField internalGetChannelCps() { if (channelCps_ == null) { return com.google.protobuf.MapField.emptyMapField( ChannelCpsDefaultEntryHolder.defaultEntry); } return channelCps_; } private com.google.protobuf.MapField internalGetMutableChannelCps() { if (channelCps_ == null) { channelCps_ = com.google.protobuf.MapField.newMapField( ChannelCpsDefaultEntryHolder.defaultEntry); } if (!channelCps_.isMutable()) { channelCps_ = channelCps_.copy(); } bitField0_ |= 0x00000040; onChanged(); return channelCps_; } public int getChannelCpsCount() { return internalGetChannelCps().getMap().size(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public boolean containsChannelCps( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetChannelCps().getMap().containsKey(key); } /** * Use {@link #getChannelCpsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getChannelCps() { return getChannelCpsMap(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public java.util.Map getChannelCpsMap() { return internalGetChannelCps().getMap(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public /* nullable */ milvus.proto.msg.Msg.MsgPosition getChannelCpsOrDefault( java.lang.String key, /* nullable */ milvus.proto.msg.Msg.MsgPosition defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetChannelCps().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ @java.lang.Override public milvus.proto.msg.Msg.MsgPosition getChannelCpsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetChannelCps().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearChannelCps() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableChannelCps().getMutableMap() .clear(); return this; } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ public Builder removeChannelCps( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableChannelCps().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableChannelCps() { bitField0_ |= 0x00000040; return internalGetMutableChannelCps().getMutableMap(); } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ public Builder putChannelCps( java.lang.String key, milvus.proto.msg.Msg.MsgPosition value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableChannelCps().getMutableMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** * map<string, .milvus.proto.msg.MsgPosition> channel_cps = 7; */ public Builder putAllChannelCps( java.util.Map values) { internalGetMutableChannelCps().getMutableMap() .putAll(values); bitField0_ |= 0x00000040; 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.milvus.FlushResponse) } // @@protoc_insertion_point(class_scope:milvus.proto.milvus.FlushResponse) private static final io.milvus.grpc.FlushResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.milvus.grpc.FlushResponse(); } public static io.milvus.grpc.FlushResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FlushResponse 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.FlushResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy