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

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

There is a newer version: 2.4.8
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.MsgBase}
 */
public final class MsgBase extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:milvus.proto.common.MsgBase)
    MsgBaseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MsgBase.newBuilder() to construct.
  private MsgBase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private MsgBase() {
    msgType_ = 0;
  }

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

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

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 6:
        return internalGetProperties();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_MsgBase_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.milvus.grpc.MsgBase.class, io.milvus.grpc.MsgBase.Builder.class);
  }

  private int bitField0_;
  public static final int MSG_TYPE_FIELD_NUMBER = 1;
  private int msgType_ = 0;
  /**
   * .milvus.proto.common.MsgType msg_type = 1;
   * @return The enum numeric value on the wire for msgType.
   */
  @java.lang.Override public int getMsgTypeValue() {
    return msgType_;
  }
  /**
   * .milvus.proto.common.MsgType msg_type = 1;
   * @return The msgType.
   */
  @java.lang.Override public io.milvus.grpc.MsgType getMsgType() {
    io.milvus.grpc.MsgType result = io.milvus.grpc.MsgType.forNumber(msgType_);
    return result == null ? io.milvus.grpc.MsgType.UNRECOGNIZED : result;
  }

  public static final int MSGID_FIELD_NUMBER = 2;
  private long msgID_ = 0L;
  /**
   * int64 msgID = 2;
   * @return The msgID.
   */
  @java.lang.Override
  public long getMsgID() {
    return msgID_;
  }

  public static final int TIMESTAMP_FIELD_NUMBER = 3;
  private long timestamp_ = 0L;
  /**
   * uint64 timestamp = 3;
   * @return The timestamp.
   */
  @java.lang.Override
  public long getTimestamp() {
    return timestamp_;
  }

  public static final int SOURCEID_FIELD_NUMBER = 4;
  private long sourceID_ = 0L;
  /**
   * int64 sourceID = 4;
   * @return The sourceID.
   */
  @java.lang.Override
  public long getSourceID() {
    return sourceID_;
  }

  public static final int TARGETID_FIELD_NUMBER = 5;
  private long targetID_ = 0L;
  /**
   * int64 targetID = 5;
   * @return The targetID.
   */
  @java.lang.Override
  public long getTargetID() {
    return targetID_;
  }

  public static final int PROPERTIES_FIELD_NUMBER = 6;
  private static final class PropertiesDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_MsgBase_PropertiesEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> properties_;
  private com.google.protobuf.MapField
  internalGetProperties() {
    if (properties_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          PropertiesDefaultEntryHolder.defaultEntry);
    }
    return properties_;
  }
  public int getPropertiesCount() {
    return internalGetProperties().getMap().size();
  }
  /**
   * map<string, string> properties = 6;
   */
  @java.lang.Override
  public boolean containsProperties(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetProperties().getMap().containsKey(key);
  }
  /**
   * Use {@link #getPropertiesMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getProperties() {
    return getPropertiesMap();
  }
  /**
   * map<string, string> properties = 6;
   */
  @java.lang.Override
  public java.util.Map getPropertiesMap() {
    return internalGetProperties().getMap();
  }
  /**
   * map<string, string> properties = 6;
   */
  @java.lang.Override
  public /* nullable */
java.lang.String getPropertiesOrDefault(
      java.lang.String key,
      /* nullable */
java.lang.String defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetProperties().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, string> properties = 6;
   */
  @java.lang.Override
  public java.lang.String getPropertiesOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetProperties().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int REPLICATEINFO_FIELD_NUMBER = 7;
  private io.milvus.grpc.ReplicateInfo replicateInfo_;
  /**
   * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
   * @return Whether the replicateInfo field is set.
   */
  @java.lang.Override
  public boolean hasReplicateInfo() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
   * @return The replicateInfo.
   */
  @java.lang.Override
  public io.milvus.grpc.ReplicateInfo getReplicateInfo() {
    return replicateInfo_ == null ? io.milvus.grpc.ReplicateInfo.getDefaultInstance() : replicateInfo_;
  }
  /**
   * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
   */
  @java.lang.Override
  public io.milvus.grpc.ReplicateInfoOrBuilder getReplicateInfoOrBuilder() {
    return replicateInfo_ == null ? io.milvus.grpc.ReplicateInfo.getDefaultInstance() : replicateInfo_;
  }

  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 (msgType_ != io.milvus.grpc.MsgType.Undefined.getNumber()) {
      output.writeEnum(1, msgType_);
    }
    if (msgID_ != 0L) {
      output.writeInt64(2, msgID_);
    }
    if (timestamp_ != 0L) {
      output.writeUInt64(3, timestamp_);
    }
    if (sourceID_ != 0L) {
      output.writeInt64(4, sourceID_);
    }
    if (targetID_ != 0L) {
      output.writeInt64(5, targetID_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetProperties(),
        PropertiesDefaultEntryHolder.defaultEntry,
        6);
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(7, getReplicateInfo());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (msgType_ != io.milvus.grpc.MsgType.Undefined.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, msgType_);
    }
    if (msgID_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, msgID_);
    }
    if (timestamp_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, timestamp_);
    }
    if (sourceID_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, sourceID_);
    }
    if (targetID_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, targetID_);
    }
    for (java.util.Map.Entry entry
         : internalGetProperties().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, properties__);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getReplicateInfo());
    }
    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.MsgBase)) {
      return super.equals(obj);
    }
    io.milvus.grpc.MsgBase other = (io.milvus.grpc.MsgBase) obj;

    if (msgType_ != other.msgType_) return false;
    if (getMsgID()
        != other.getMsgID()) return false;
    if (getTimestamp()
        != other.getTimestamp()) return false;
    if (getSourceID()
        != other.getSourceID()) return false;
    if (getTargetID()
        != other.getTargetID()) return false;
    if (!internalGetProperties().equals(
        other.internalGetProperties())) return false;
    if (hasReplicateInfo() != other.hasReplicateInfo()) return false;
    if (hasReplicateInfo()) {
      if (!getReplicateInfo()
          .equals(other.getReplicateInfo())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + MSG_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + msgType_;
    hash = (37 * hash) + MSGID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getMsgID());
    hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTimestamp());
    hash = (37 * hash) + SOURCEID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getSourceID());
    hash = (37 * hash) + TARGETID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getTargetID());
    if (!internalGetProperties().getMap().isEmpty()) {
      hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetProperties().hashCode();
    }
    if (hasReplicateInfo()) {
      hash = (37 * hash) + REPLICATEINFO_FIELD_NUMBER;
      hash = (53 * hash) + getReplicateInfo().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetProperties();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetMutableProperties();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.milvus.grpc.CommonProto.internal_static_milvus_proto_common_MsgBase_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.milvus.grpc.MsgBase.class, io.milvus.grpc.MsgBase.Builder.class);
    }

    // Construct using io.milvus.grpc.MsgBase.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getReplicateInfoFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      msgType_ = 0;
      msgID_ = 0L;
      timestamp_ = 0L;
      sourceID_ = 0L;
      targetID_ = 0L;
      internalGetMutableProperties().clear();
      replicateInfo_ = null;
      if (replicateInfoBuilder_ != null) {
        replicateInfoBuilder_.dispose();
        replicateInfoBuilder_ = null;
      }
      return this;
    }

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

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

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

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

    private void buildPartial0(io.milvus.grpc.MsgBase result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.msgType_ = msgType_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.msgID_ = msgID_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.timestamp_ = timestamp_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.sourceID_ = sourceID_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.targetID_ = targetID_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.properties_ = internalGetProperties();
        result.properties_.makeImmutable();
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.replicateInfo_ = replicateInfoBuilder_ == null
            ? replicateInfo_
            : replicateInfoBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      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.MsgBase) {
        return mergeFrom((io.milvus.grpc.MsgBase)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.milvus.grpc.MsgBase other) {
      if (other == io.milvus.grpc.MsgBase.getDefaultInstance()) return this;
      if (other.msgType_ != 0) {
        setMsgTypeValue(other.getMsgTypeValue());
      }
      if (other.getMsgID() != 0L) {
        setMsgID(other.getMsgID());
      }
      if (other.getTimestamp() != 0L) {
        setTimestamp(other.getTimestamp());
      }
      if (other.getSourceID() != 0L) {
        setSourceID(other.getSourceID());
      }
      if (other.getTargetID() != 0L) {
        setTargetID(other.getTargetID());
      }
      internalGetMutableProperties().mergeFrom(
          other.internalGetProperties());
      bitField0_ |= 0x00000020;
      if (other.hasReplicateInfo()) {
        mergeReplicateInfo(other.getReplicateInfo());
      }
      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 8: {
              msgType_ = input.readEnum();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              msgID_ = input.readInt64();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 24: {
              timestamp_ = input.readUInt64();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 32: {
              sourceID_ = input.readInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 40: {
              targetID_ = input.readInt64();
              bitField0_ |= 0x00000010;
              break;
            } // case 40
            case 50: {
              com.google.protobuf.MapEntry
              properties__ = input.readMessage(
                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              internalGetMutableProperties().getMutableMap().put(
                  properties__.getKey(), properties__.getValue());
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            case 58: {
              input.readMessage(
                  getReplicateInfoFieldBuilder().getBuilder(),
                  extensionRegistry);
              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 int msgType_ = 0;
    /**
     * .milvus.proto.common.MsgType msg_type = 1;
     * @return The enum numeric value on the wire for msgType.
     */
    @java.lang.Override public int getMsgTypeValue() {
      return msgType_;
    }
    /**
     * .milvus.proto.common.MsgType msg_type = 1;
     * @param value The enum numeric value on the wire for msgType to set.
     * @return This builder for chaining.
     */
    public Builder setMsgTypeValue(int value) {
      msgType_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.MsgType msg_type = 1;
     * @return The msgType.
     */
    @java.lang.Override
    public io.milvus.grpc.MsgType getMsgType() {
      io.milvus.grpc.MsgType result = io.milvus.grpc.MsgType.forNumber(msgType_);
      return result == null ? io.milvus.grpc.MsgType.UNRECOGNIZED : result;
    }
    /**
     * .milvus.proto.common.MsgType msg_type = 1;
     * @param value The msgType to set.
     * @return This builder for chaining.
     */
    public Builder setMsgType(io.milvus.grpc.MsgType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      msgType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.MsgType msg_type = 1;
     * @return This builder for chaining.
     */
    public Builder clearMsgType() {
      bitField0_ = (bitField0_ & ~0x00000001);
      msgType_ = 0;
      onChanged();
      return this;
    }

    private long msgID_ ;
    /**
     * int64 msgID = 2;
     * @return The msgID.
     */
    @java.lang.Override
    public long getMsgID() {
      return msgID_;
    }
    /**
     * int64 msgID = 2;
     * @param value The msgID to set.
     * @return This builder for chaining.
     */
    public Builder setMsgID(long value) {

      msgID_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * int64 msgID = 2;
     * @return This builder for chaining.
     */
    public Builder clearMsgID() {
      bitField0_ = (bitField0_ & ~0x00000002);
      msgID_ = 0L;
      onChanged();
      return this;
    }

    private long timestamp_ ;
    /**
     * uint64 timestamp = 3;
     * @return The timestamp.
     */
    @java.lang.Override
    public long getTimestamp() {
      return timestamp_;
    }
    /**
     * uint64 timestamp = 3;
     * @param value The timestamp to set.
     * @return This builder for chaining.
     */
    public Builder setTimestamp(long value) {

      timestamp_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * uint64 timestamp = 3;
     * @return This builder for chaining.
     */
    public Builder clearTimestamp() {
      bitField0_ = (bitField0_ & ~0x00000004);
      timestamp_ = 0L;
      onChanged();
      return this;
    }

    private long sourceID_ ;
    /**
     * int64 sourceID = 4;
     * @return The sourceID.
     */
    @java.lang.Override
    public long getSourceID() {
      return sourceID_;
    }
    /**
     * int64 sourceID = 4;
     * @param value The sourceID to set.
     * @return This builder for chaining.
     */
    public Builder setSourceID(long value) {

      sourceID_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * int64 sourceID = 4;
     * @return This builder for chaining.
     */
    public Builder clearSourceID() {
      bitField0_ = (bitField0_ & ~0x00000008);
      sourceID_ = 0L;
      onChanged();
      return this;
    }

    private long targetID_ ;
    /**
     * int64 targetID = 5;
     * @return The targetID.
     */
    @java.lang.Override
    public long getTargetID() {
      return targetID_;
    }
    /**
     * int64 targetID = 5;
     * @param value The targetID to set.
     * @return This builder for chaining.
     */
    public Builder setTargetID(long value) {

      targetID_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * int64 targetID = 5;
     * @return This builder for chaining.
     */
    public Builder clearTargetID() {
      bitField0_ = (bitField0_ & ~0x00000010);
      targetID_ = 0L;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> properties_;
    private com.google.protobuf.MapField
        internalGetProperties() {
      if (properties_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            PropertiesDefaultEntryHolder.defaultEntry);
      }
      return properties_;
    }
    private com.google.protobuf.MapField
        internalGetMutableProperties() {
      if (properties_ == null) {
        properties_ = com.google.protobuf.MapField.newMapField(
            PropertiesDefaultEntryHolder.defaultEntry);
      }
      if (!properties_.isMutable()) {
        properties_ = properties_.copy();
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return properties_;
    }
    public int getPropertiesCount() {
      return internalGetProperties().getMap().size();
    }
    /**
     * map<string, string> properties = 6;
     */
    @java.lang.Override
    public boolean containsProperties(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetProperties().getMap().containsKey(key);
    }
    /**
     * Use {@link #getPropertiesMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getProperties() {
      return getPropertiesMap();
    }
    /**
     * map<string, string> properties = 6;
     */
    @java.lang.Override
    public java.util.Map getPropertiesMap() {
      return internalGetProperties().getMap();
    }
    /**
     * map<string, string> properties = 6;
     */
    @java.lang.Override
    public /* nullable */
java.lang.String getPropertiesOrDefault(
        java.lang.String key,
        /* nullable */
java.lang.String defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetProperties().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, string> properties = 6;
     */
    @java.lang.Override
    public java.lang.String getPropertiesOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetProperties().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }
    public Builder clearProperties() {
      bitField0_ = (bitField0_ & ~0x00000020);
      internalGetMutableProperties().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, string> properties = 6;
     */
    public Builder removeProperties(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableProperties().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
        getMutableProperties() {
      bitField0_ |= 0x00000020;
      return internalGetMutableProperties().getMutableMap();
    }
    /**
     * map<string, string> properties = 6;
     */
    public Builder putProperties(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) { throw new NullPointerException("map value"); }
      internalGetMutableProperties().getMutableMap()
          .put(key, value);
      bitField0_ |= 0x00000020;
      return this;
    }
    /**
     * map<string, string> properties = 6;
     */
    public Builder putAllProperties(
        java.util.Map values) {
      internalGetMutableProperties().getMutableMap()
          .putAll(values);
      bitField0_ |= 0x00000020;
      return this;
    }

    private io.milvus.grpc.ReplicateInfo replicateInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.ReplicateInfo, io.milvus.grpc.ReplicateInfo.Builder, io.milvus.grpc.ReplicateInfoOrBuilder> replicateInfoBuilder_;
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     * @return Whether the replicateInfo field is set.
     */
    public boolean hasReplicateInfo() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     * @return The replicateInfo.
     */
    public io.milvus.grpc.ReplicateInfo getReplicateInfo() {
      if (replicateInfoBuilder_ == null) {
        return replicateInfo_ == null ? io.milvus.grpc.ReplicateInfo.getDefaultInstance() : replicateInfo_;
      } else {
        return replicateInfoBuilder_.getMessage();
      }
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    public Builder setReplicateInfo(io.milvus.grpc.ReplicateInfo value) {
      if (replicateInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        replicateInfo_ = value;
      } else {
        replicateInfoBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    public Builder setReplicateInfo(
        io.milvus.grpc.ReplicateInfo.Builder builderForValue) {
      if (replicateInfoBuilder_ == null) {
        replicateInfo_ = builderForValue.build();
      } else {
        replicateInfoBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    public Builder mergeReplicateInfo(io.milvus.grpc.ReplicateInfo value) {
      if (replicateInfoBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0) &&
          replicateInfo_ != null &&
          replicateInfo_ != io.milvus.grpc.ReplicateInfo.getDefaultInstance()) {
          getReplicateInfoBuilder().mergeFrom(value);
        } else {
          replicateInfo_ = value;
        }
      } else {
        replicateInfoBuilder_.mergeFrom(value);
      }
      if (replicateInfo_ != null) {
        bitField0_ |= 0x00000040;
        onChanged();
      }
      return this;
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    public Builder clearReplicateInfo() {
      bitField0_ = (bitField0_ & ~0x00000040);
      replicateInfo_ = null;
      if (replicateInfoBuilder_ != null) {
        replicateInfoBuilder_.dispose();
        replicateInfoBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    public io.milvus.grpc.ReplicateInfo.Builder getReplicateInfoBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return getReplicateInfoFieldBuilder().getBuilder();
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    public io.milvus.grpc.ReplicateInfoOrBuilder getReplicateInfoOrBuilder() {
      if (replicateInfoBuilder_ != null) {
        return replicateInfoBuilder_.getMessageOrBuilder();
      } else {
        return replicateInfo_ == null ?
            io.milvus.grpc.ReplicateInfo.getDefaultInstance() : replicateInfo_;
      }
    }
    /**
     * .milvus.proto.common.ReplicateInfo replicateInfo = 7;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.milvus.grpc.ReplicateInfo, io.milvus.grpc.ReplicateInfo.Builder, io.milvus.grpc.ReplicateInfoOrBuilder> 
        getReplicateInfoFieldBuilder() {
      if (replicateInfoBuilder_ == null) {
        replicateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.milvus.grpc.ReplicateInfo, io.milvus.grpc.ReplicateInfo.Builder, io.milvus.grpc.ReplicateInfoOrBuilder>(
                getReplicateInfo(),
                getParentForChildren(),
                isClean());
        replicateInfo_ = null;
      }
      return replicateInfoBuilder_;
    }
    @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.MsgBase)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy