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

com.vesoft.nebula.proto.common.ClientInfo Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.1
package com.vesoft.nebula.proto.common;

/**
 * Protobuf type {@code nebula.proto.common.ClientInfo}
 */
public final class ClientInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:nebula.proto.common.ClientInfo)
    ClientInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ClientInfo.newBuilder() to construct.
  private ClientInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ClientInfo() {
    lang_ = 0;
    protocolVersion_ = com.google.protobuf.ByteString.EMPTY;
    version_ = com.google.protobuf.ByteString.EMPTY;
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.vesoft.nebula.proto.common.Common.internal_static_nebula_proto_common_ClientInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.vesoft.nebula.proto.common.Common.internal_static_nebula_proto_common_ClientInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.vesoft.nebula.proto.common.ClientInfo.class, com.vesoft.nebula.proto.common.ClientInfo.Builder.class);
  }

  /**
   * Protobuf enum {@code nebula.proto.common.ClientInfo.Language}
   */
  public enum Language
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * UNKNOWN = 0;
     */
    UNKNOWN(0),
    /**
     * CPP = 1;
     */
    CPP(1),
    /**
     * GO = 2;
     */
    GO(2),
    /**
     * JAVA = 3;
     */
    JAVA(3),
    /**
     * PYTHON = 4;
     */
    PYTHON(4),
    /**
     * JAVASCRIPT = 5;
     */
    JAVASCRIPT(5),
    UNRECOGNIZED(-1),
    ;

    /**
     * UNKNOWN = 0;
     */
    public static final int UNKNOWN_VALUE = 0;
    /**
     * CPP = 1;
     */
    public static final int CPP_VALUE = 1;
    /**
     * GO = 2;
     */
    public static final int GO_VALUE = 2;
    /**
     * JAVA = 3;
     */
    public static final int JAVA_VALUE = 3;
    /**
     * PYTHON = 4;
     */
    public static final int PYTHON_VALUE = 4;
    /**
     * JAVASCRIPT = 5;
     */
    public static final int JAVASCRIPT_VALUE = 5;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Language valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Language forNumber(int value) {
      switch (value) {
        case 0: return UNKNOWN;
        case 1: return CPP;
        case 2: return GO;
        case 3: return JAVA;
        case 4: return PYTHON;
        case 5: return JAVASCRIPT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Language> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Language findValueByNumber(int number) {
              return Language.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.vesoft.nebula.proto.common.ClientInfo.getDescriptor().getEnumTypes().get(0);
    }

    private static final Language[] VALUES = values();

    public static Language valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Language(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:nebula.proto.common.ClientInfo.Language)
  }

  public static final int LANG_FIELD_NUMBER = 1;
  private int lang_ = 0;
  /**
   * .nebula.proto.common.ClientInfo.Language lang = 1;
   * @return The enum numeric value on the wire for lang.
   */
  @java.lang.Override public int getLangValue() {
    return lang_;
  }
  /**
   * .nebula.proto.common.ClientInfo.Language lang = 1;
   * @return The lang.
   */
  @java.lang.Override public com.vesoft.nebula.proto.common.ClientInfo.Language getLang() {
    com.vesoft.nebula.proto.common.ClientInfo.Language result = com.vesoft.nebula.proto.common.ClientInfo.Language.forNumber(lang_);
    return result == null ? com.vesoft.nebula.proto.common.ClientInfo.Language.UNRECOGNIZED : result;
  }

  public static final int PROTOCOL_VERSION_FIELD_NUMBER = 2;
  private com.google.protobuf.ByteString protocolVersion_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes protocol_version = 2;
   * @return The protocolVersion.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getProtocolVersion() {
    return protocolVersion_;
  }

  public static final int VERSION_FIELD_NUMBER = 3;
  private com.google.protobuf.ByteString version_ = com.google.protobuf.ByteString.EMPTY;
  /**
   * bytes version = 3;
   * @return The version.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVersion() {
    return version_;
  }

  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 (lang_ != com.vesoft.nebula.proto.common.ClientInfo.Language.UNKNOWN.getNumber()) {
      output.writeEnum(1, lang_);
    }
    if (!protocolVersion_.isEmpty()) {
      output.writeBytes(2, protocolVersion_);
    }
    if (!version_.isEmpty()) {
      output.writeBytes(3, version_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (lang_ != com.vesoft.nebula.proto.common.ClientInfo.Language.UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, lang_);
    }
    if (!protocolVersion_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(2, protocolVersion_);
    }
    if (!version_.isEmpty()) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(3, version_);
    }
    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 com.vesoft.nebula.proto.common.ClientInfo)) {
      return super.equals(obj);
    }
    com.vesoft.nebula.proto.common.ClientInfo other = (com.vesoft.nebula.proto.common.ClientInfo) obj;

    if (lang_ != other.lang_) return false;
    if (!getProtocolVersion()
        .equals(other.getProtocolVersion())) return false;
    if (!getVersion()
        .equals(other.getVersion())) 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) + LANG_FIELD_NUMBER;
    hash = (53 * hash) + lang_;
    hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getProtocolVersion().hashCode();
    hash = (37 * hash) + VERSION_FIELD_NUMBER;
    hash = (53 * hash) + getVersion().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.vesoft.nebula.proto.common.ClientInfo 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 com.vesoft.nebula.proto.common.ClientInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.vesoft.nebula.proto.common.ClientInfo 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(com.vesoft.nebula.proto.common.ClientInfo 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 nebula.proto.common.ClientInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:nebula.proto.common.ClientInfo)
      com.vesoft.nebula.proto.common.ClientInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.vesoft.nebula.proto.common.Common.internal_static_nebula_proto_common_ClientInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.vesoft.nebula.proto.common.Common.internal_static_nebula_proto_common_ClientInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.vesoft.nebula.proto.common.ClientInfo.class, com.vesoft.nebula.proto.common.ClientInfo.Builder.class);
    }

    // Construct using com.vesoft.nebula.proto.common.ClientInfo.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      lang_ = 0;
      protocolVersion_ = com.google.protobuf.ByteString.EMPTY;
      version_ = com.google.protobuf.ByteString.EMPTY;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.vesoft.nebula.proto.common.Common.internal_static_nebula_proto_common_ClientInfo_descriptor;
    }

    @java.lang.Override
    public com.vesoft.nebula.proto.common.ClientInfo getDefaultInstanceForType() {
      return com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance();
    }

    @java.lang.Override
    public com.vesoft.nebula.proto.common.ClientInfo build() {
      com.vesoft.nebula.proto.common.ClientInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.vesoft.nebula.proto.common.ClientInfo buildPartial() {
      com.vesoft.nebula.proto.common.ClientInfo result = new com.vesoft.nebula.proto.common.ClientInfo(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.vesoft.nebula.proto.common.ClientInfo result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.lang_ = lang_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.protocolVersion_ = protocolVersion_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.version_ = version_;
      }
    }

    @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 com.vesoft.nebula.proto.common.ClientInfo) {
        return mergeFrom((com.vesoft.nebula.proto.common.ClientInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.vesoft.nebula.proto.common.ClientInfo other) {
      if (other == com.vesoft.nebula.proto.common.ClientInfo.getDefaultInstance()) return this;
      if (other.lang_ != 0) {
        setLangValue(other.getLangValue());
      }
      if (other.getProtocolVersion() != com.google.protobuf.ByteString.EMPTY) {
        setProtocolVersion(other.getProtocolVersion());
      }
      if (other.getVersion() != com.google.protobuf.ByteString.EMPTY) {
        setVersion(other.getVersion());
      }
      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: {
              lang_ = input.readEnum();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 18: {
              protocolVersion_ = input.readBytes();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              version_ = input.readBytes();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private int lang_ = 0;
    /**
     * .nebula.proto.common.ClientInfo.Language lang = 1;
     * @return The enum numeric value on the wire for lang.
     */
    @java.lang.Override public int getLangValue() {
      return lang_;
    }
    /**
     * .nebula.proto.common.ClientInfo.Language lang = 1;
     * @param value The enum numeric value on the wire for lang to set.
     * @return This builder for chaining.
     */
    public Builder setLangValue(int value) {
      lang_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.common.ClientInfo.Language lang = 1;
     * @return The lang.
     */
    @java.lang.Override
    public com.vesoft.nebula.proto.common.ClientInfo.Language getLang() {
      com.vesoft.nebula.proto.common.ClientInfo.Language result = com.vesoft.nebula.proto.common.ClientInfo.Language.forNumber(lang_);
      return result == null ? com.vesoft.nebula.proto.common.ClientInfo.Language.UNRECOGNIZED : result;
    }
    /**
     * .nebula.proto.common.ClientInfo.Language lang = 1;
     * @param value The lang to set.
     * @return This builder for chaining.
     */
    public Builder setLang(com.vesoft.nebula.proto.common.ClientInfo.Language value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      lang_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .nebula.proto.common.ClientInfo.Language lang = 1;
     * @return This builder for chaining.
     */
    public Builder clearLang() {
      bitField0_ = (bitField0_ & ~0x00000001);
      lang_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.ByteString protocolVersion_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes protocol_version = 2;
     * @return The protocolVersion.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getProtocolVersion() {
      return protocolVersion_;
    }
    /**
     * bytes protocol_version = 2;
     * @param value The protocolVersion to set.
     * @return This builder for chaining.
     */
    public Builder setProtocolVersion(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      protocolVersion_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * bytes protocol_version = 2;
     * @return This builder for chaining.
     */
    public Builder clearProtocolVersion() {
      bitField0_ = (bitField0_ & ~0x00000002);
      protocolVersion_ = getDefaultInstance().getProtocolVersion();
      onChanged();
      return this;
    }

    private com.google.protobuf.ByteString version_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * bytes version = 3;
     * @return The version.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getVersion() {
      return version_;
    }
    /**
     * bytes version = 3;
     * @param value The version to set.
     * @return This builder for chaining.
     */
    public Builder setVersion(com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      version_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * bytes version = 3;
     * @return This builder for chaining.
     */
    public Builder clearVersion() {
      bitField0_ = (bitField0_ & ~0x00000004);
      version_ = getDefaultInstance().getVersion();
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:nebula.proto.common.ClientInfo)
  }

  // @@protoc_insertion_point(class_scope:nebula.proto.common.ClientInfo)
  private static final com.vesoft.nebula.proto.common.ClientInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.vesoft.nebula.proto.common.ClientInfo();
  }

  public static com.vesoft.nebula.proto.common.ClientInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy