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

wechat.protobuf.ManualAuthAccountRequest Maven / Gradle / Ivy

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

package wechat.protobuf;

/**
 * Protobuf type {@code wechat_proto.ManualAuthAccountRequest}
 */
public final class ManualAuthAccountRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.ManualAuthAccountRequest)
    ManualAuthAccountRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ManualAuthAccountRequest.newBuilder() to construct.
  private ManualAuthAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ManualAuthAccountRequest() {
    userName_ = "";
    password1_ = "";
    password2_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ManualAuthAccountRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            wechat.protobuf.AESKey.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = aes_.toBuilder();
            }
            aes_ = input.readMessage(wechat.protobuf.AESKey.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(aes_);
              aes_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 18: {
            wechat.protobuf.ECDHKey.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = ecdhKey_.toBuilder();
            }
            ecdhKey_ = input.readMessage(wechat.protobuf.ECDHKey.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(ecdhKey_);
              ecdhKey_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            userName_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            password1_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            password2_ = bs;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_ManualAuthAccountRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_ManualAuthAccountRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.ManualAuthAccountRequest.class, wechat.protobuf.ManualAuthAccountRequest.Builder.class);
  }

  private int bitField0_;
  public static final int AES_FIELD_NUMBER = 1;
  private wechat.protobuf.AESKey aes_;
  /**
   * optional .wechat_proto.AESKey aes = 1;
   * @return Whether the aes field is set.
   */
  @java.lang.Override
  public boolean hasAes() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .wechat_proto.AESKey aes = 1;
   * @return The aes.
   */
  @java.lang.Override
  public wechat.protobuf.AESKey getAes() {
    return aes_ == null ? wechat.protobuf.AESKey.getDefaultInstance() : aes_;
  }
  /**
   * optional .wechat_proto.AESKey aes = 1;
   */
  @java.lang.Override
  public wechat.protobuf.AESKeyOrBuilder getAesOrBuilder() {
    return aes_ == null ? wechat.protobuf.AESKey.getDefaultInstance() : aes_;
  }

  public static final int ECDHKEY_FIELD_NUMBER = 2;
  private wechat.protobuf.ECDHKey ecdhKey_;
  /**
   * optional .wechat_proto.ECDHKey ecdhKey = 2;
   * @return Whether the ecdhKey field is set.
   */
  @java.lang.Override
  public boolean hasEcdhKey() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional .wechat_proto.ECDHKey ecdhKey = 2;
   * @return The ecdhKey.
   */
  @java.lang.Override
  public wechat.protobuf.ECDHKey getEcdhKey() {
    return ecdhKey_ == null ? wechat.protobuf.ECDHKey.getDefaultInstance() : ecdhKey_;
  }
  /**
   * optional .wechat_proto.ECDHKey ecdhKey = 2;
   */
  @java.lang.Override
  public wechat.protobuf.ECDHKeyOrBuilder getEcdhKeyOrBuilder() {
    return ecdhKey_ == null ? wechat.protobuf.ECDHKey.getDefaultInstance() : ecdhKey_;
  }

  public static final int USERNAME_FIELD_NUMBER = 3;
  private volatile java.lang.Object userName_;
  /**
   * optional string userName = 3;
   * @return Whether the userName field is set.
   */
  @java.lang.Override
  public boolean hasUserName() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional string userName = 3;
   * @return The userName.
   */
  @java.lang.Override
  public java.lang.String getUserName() {
    java.lang.Object ref = userName_;
    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();
      if (bs.isValidUtf8()) {
        userName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string userName = 3;
   * @return The bytes for userName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUserNameBytes() {
    java.lang.Object ref = userName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      userName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PASSWORD_1_FIELD_NUMBER = 4;
  private volatile java.lang.Object password1_;
  /**
   * optional string password_1 = 4;
   * @return Whether the password1 field is set.
   */
  @java.lang.Override
  public boolean hasPassword1() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string password_1 = 4;
   * @return The password1.
   */
  @java.lang.Override
  public java.lang.String getPassword1() {
    java.lang.Object ref = password1_;
    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();
      if (bs.isValidUtf8()) {
        password1_ = s;
      }
      return s;
    }
  }
  /**
   * optional string password_1 = 4;
   * @return The bytes for password1.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPassword1Bytes() {
    java.lang.Object ref = password1_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      password1_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PASSWORD_2_FIELD_NUMBER = 5;
  private volatile java.lang.Object password2_;
  /**
   * optional string password_2 = 5;
   * @return Whether the password2 field is set.
   */
  @java.lang.Override
  public boolean hasPassword2() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional string password_2 = 5;
   * @return The password2.
   */
  @java.lang.Override
  public java.lang.String getPassword2() {
    java.lang.Object ref = password2_;
    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();
      if (bs.isValidUtf8()) {
        password2_ = s;
      }
      return s;
    }
  }
  /**
   * optional string password_2 = 5;
   * @return The bytes for password2.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPassword2Bytes() {
    java.lang.Object ref = password2_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      password2_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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, getAes());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getEcdhKey());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userName_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password1_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, password2_);
    }
    unknownFields.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, getAes());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getEcdhKey());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userName_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password1_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, password2_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof wechat.protobuf.ManualAuthAccountRequest)) {
      return super.equals(obj);
    }
    wechat.protobuf.ManualAuthAccountRequest other = (wechat.protobuf.ManualAuthAccountRequest) obj;

    if (hasAes() != other.hasAes()) return false;
    if (hasAes()) {
      if (!getAes()
          .equals(other.getAes())) return false;
    }
    if (hasEcdhKey() != other.hasEcdhKey()) return false;
    if (hasEcdhKey()) {
      if (!getEcdhKey()
          .equals(other.getEcdhKey())) return false;
    }
    if (hasUserName() != other.hasUserName()) return false;
    if (hasUserName()) {
      if (!getUserName()
          .equals(other.getUserName())) return false;
    }
    if (hasPassword1() != other.hasPassword1()) return false;
    if (hasPassword1()) {
      if (!getPassword1()
          .equals(other.getPassword1())) return false;
    }
    if (hasPassword2() != other.hasPassword2()) return false;
    if (hasPassword2()) {
      if (!getPassword2()
          .equals(other.getPassword2())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasAes()) {
      hash = (37 * hash) + AES_FIELD_NUMBER;
      hash = (53 * hash) + getAes().hashCode();
    }
    if (hasEcdhKey()) {
      hash = (37 * hash) + ECDHKEY_FIELD_NUMBER;
      hash = (53 * hash) + getEcdhKey().hashCode();
    }
    if (hasUserName()) {
      hash = (37 * hash) + USERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getUserName().hashCode();
    }
    if (hasPassword1()) {
      hash = (37 * hash) + PASSWORD_1_FIELD_NUMBER;
      hash = (53 * hash) + getPassword1().hashCode();
    }
    if (hasPassword2()) {
      hash = (37 * hash) + PASSWORD_2_FIELD_NUMBER;
      hash = (53 * hash) + getPassword2().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.ManualAuthAccountRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.ManualAuthAccountRequest 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 wechat.protobuf.ManualAuthAccountRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static wechat.protobuf.ManualAuthAccountRequest 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 wechat.protobuf.ManualAuthAccountRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.ManualAuthAccountRequest 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(wechat.protobuf.ManualAuthAccountRequest 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 wechat_proto.ManualAuthAccountRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:wechat_proto.ManualAuthAccountRequest)
      wechat.protobuf.ManualAuthAccountRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_ManualAuthAccountRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_ManualAuthAccountRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              wechat.protobuf.ManualAuthAccountRequest.class, wechat.protobuf.ManualAuthAccountRequest.Builder.class);
    }

    // Construct using wechat.protobuf.ManualAuthAccountRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getAesFieldBuilder();
        getEcdhKeyFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (aesBuilder_ == null) {
        aes_ = null;
      } else {
        aesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (ecdhKeyBuilder_ == null) {
        ecdhKey_ = null;
      } else {
        ecdhKeyBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      userName_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      password1_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      password2_ = "";
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_ManualAuthAccountRequest_descriptor;
    }

    @java.lang.Override
    public wechat.protobuf.ManualAuthAccountRequest getDefaultInstanceForType() {
      return wechat.protobuf.ManualAuthAccountRequest.getDefaultInstance();
    }

    @java.lang.Override
    public wechat.protobuf.ManualAuthAccountRequest build() {
      wechat.protobuf.ManualAuthAccountRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public wechat.protobuf.ManualAuthAccountRequest buildPartial() {
      wechat.protobuf.ManualAuthAccountRequest result = new wechat.protobuf.ManualAuthAccountRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (aesBuilder_ == null) {
          result.aes_ = aes_;
        } else {
          result.aes_ = aesBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        if (ecdhKeyBuilder_ == null) {
          result.ecdhKey_ = ecdhKey_;
        } else {
          result.ecdhKey_ = ecdhKeyBuilder_.build();
        }
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        to_bitField0_ |= 0x00000004;
      }
      result.userName_ = userName_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.password1_ = password1_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.password2_ = password2_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof wechat.protobuf.ManualAuthAccountRequest) {
        return mergeFrom((wechat.protobuf.ManualAuthAccountRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.ManualAuthAccountRequest other) {
      if (other == wechat.protobuf.ManualAuthAccountRequest.getDefaultInstance()) return this;
      if (other.hasAes()) {
        mergeAes(other.getAes());
      }
      if (other.hasEcdhKey()) {
        mergeEcdhKey(other.getEcdhKey());
      }
      if (other.hasUserName()) {
        bitField0_ |= 0x00000004;
        userName_ = other.userName_;
        onChanged();
      }
      if (other.hasPassword1()) {
        bitField0_ |= 0x00000008;
        password1_ = other.password1_;
        onChanged();
      }
      if (other.hasPassword2()) {
        bitField0_ |= 0x00000010;
        password2_ = other.password2_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      wechat.protobuf.ManualAuthAccountRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.ManualAuthAccountRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private wechat.protobuf.AESKey aes_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.AESKey, wechat.protobuf.AESKey.Builder, wechat.protobuf.AESKeyOrBuilder> aesBuilder_;
    /**
     * optional .wechat_proto.AESKey aes = 1;
     * @return Whether the aes field is set.
     */
    public boolean hasAes() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     * @return The aes.
     */
    public wechat.protobuf.AESKey getAes() {
      if (aesBuilder_ == null) {
        return aes_ == null ? wechat.protobuf.AESKey.getDefaultInstance() : aes_;
      } else {
        return aesBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    public Builder setAes(wechat.protobuf.AESKey value) {
      if (aesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        aes_ = value;
        onChanged();
      } else {
        aesBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    public Builder setAes(
        wechat.protobuf.AESKey.Builder builderForValue) {
      if (aesBuilder_ == null) {
        aes_ = builderForValue.build();
        onChanged();
      } else {
        aesBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    public Builder mergeAes(wechat.protobuf.AESKey value) {
      if (aesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            aes_ != null &&
            aes_ != wechat.protobuf.AESKey.getDefaultInstance()) {
          aes_ =
            wechat.protobuf.AESKey.newBuilder(aes_).mergeFrom(value).buildPartial();
        } else {
          aes_ = value;
        }
        onChanged();
      } else {
        aesBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    public Builder clearAes() {
      if (aesBuilder_ == null) {
        aes_ = null;
        onChanged();
      } else {
        aesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    public wechat.protobuf.AESKey.Builder getAesBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getAesFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    public wechat.protobuf.AESKeyOrBuilder getAesOrBuilder() {
      if (aesBuilder_ != null) {
        return aesBuilder_.getMessageOrBuilder();
      } else {
        return aes_ == null ?
            wechat.protobuf.AESKey.getDefaultInstance() : aes_;
      }
    }
    /**
     * optional .wechat_proto.AESKey aes = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.AESKey, wechat.protobuf.AESKey.Builder, wechat.protobuf.AESKeyOrBuilder> 
        getAesFieldBuilder() {
      if (aesBuilder_ == null) {
        aesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.AESKey, wechat.protobuf.AESKey.Builder, wechat.protobuf.AESKeyOrBuilder>(
                getAes(),
                getParentForChildren(),
                isClean());
        aes_ = null;
      }
      return aesBuilder_;
    }

    private wechat.protobuf.ECDHKey ecdhKey_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.ECDHKey, wechat.protobuf.ECDHKey.Builder, wechat.protobuf.ECDHKeyOrBuilder> ecdhKeyBuilder_;
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     * @return Whether the ecdhKey field is set.
     */
    public boolean hasEcdhKey() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     * @return The ecdhKey.
     */
    public wechat.protobuf.ECDHKey getEcdhKey() {
      if (ecdhKeyBuilder_ == null) {
        return ecdhKey_ == null ? wechat.protobuf.ECDHKey.getDefaultInstance() : ecdhKey_;
      } else {
        return ecdhKeyBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    public Builder setEcdhKey(wechat.protobuf.ECDHKey value) {
      if (ecdhKeyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ecdhKey_ = value;
        onChanged();
      } else {
        ecdhKeyBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    public Builder setEcdhKey(
        wechat.protobuf.ECDHKey.Builder builderForValue) {
      if (ecdhKeyBuilder_ == null) {
        ecdhKey_ = builderForValue.build();
        onChanged();
      } else {
        ecdhKeyBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    public Builder mergeEcdhKey(wechat.protobuf.ECDHKey value) {
      if (ecdhKeyBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
            ecdhKey_ != null &&
            ecdhKey_ != wechat.protobuf.ECDHKey.getDefaultInstance()) {
          ecdhKey_ =
            wechat.protobuf.ECDHKey.newBuilder(ecdhKey_).mergeFrom(value).buildPartial();
        } else {
          ecdhKey_ = value;
        }
        onChanged();
      } else {
        ecdhKeyBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    public Builder clearEcdhKey() {
      if (ecdhKeyBuilder_ == null) {
        ecdhKey_ = null;
        onChanged();
      } else {
        ecdhKeyBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    public wechat.protobuf.ECDHKey.Builder getEcdhKeyBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getEcdhKeyFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    public wechat.protobuf.ECDHKeyOrBuilder getEcdhKeyOrBuilder() {
      if (ecdhKeyBuilder_ != null) {
        return ecdhKeyBuilder_.getMessageOrBuilder();
      } else {
        return ecdhKey_ == null ?
            wechat.protobuf.ECDHKey.getDefaultInstance() : ecdhKey_;
      }
    }
    /**
     * optional .wechat_proto.ECDHKey ecdhKey = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.ECDHKey, wechat.protobuf.ECDHKey.Builder, wechat.protobuf.ECDHKeyOrBuilder> 
        getEcdhKeyFieldBuilder() {
      if (ecdhKeyBuilder_ == null) {
        ecdhKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.ECDHKey, wechat.protobuf.ECDHKey.Builder, wechat.protobuf.ECDHKeyOrBuilder>(
                getEcdhKey(),
                getParentForChildren(),
                isClean());
        ecdhKey_ = null;
      }
      return ecdhKeyBuilder_;
    }

    private java.lang.Object userName_ = "";
    /**
     * optional string userName = 3;
     * @return Whether the userName field is set.
     */
    public boolean hasUserName() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional string userName = 3;
     * @return The userName.
     */
    public java.lang.String getUserName() {
      java.lang.Object ref = userName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          userName_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string userName = 3;
     * @return The bytes for userName.
     */
    public com.google.protobuf.ByteString
        getUserNameBytes() {
      java.lang.Object ref = userName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        userName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string userName = 3;
     * @param value The userName to set.
     * @return This builder for chaining.
     */
    public Builder setUserName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      userName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string userName = 3;
     * @return This builder for chaining.
     */
    public Builder clearUserName() {
      bitField0_ = (bitField0_ & ~0x00000004);
      userName_ = getDefaultInstance().getUserName();
      onChanged();
      return this;
    }
    /**
     * optional string userName = 3;
     * @param value The bytes for userName to set.
     * @return This builder for chaining.
     */
    public Builder setUserNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      userName_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object password1_ = "";
    /**
     * optional string password_1 = 4;
     * @return Whether the password1 field is set.
     */
    public boolean hasPassword1() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional string password_1 = 4;
     * @return The password1.
     */
    public java.lang.String getPassword1() {
      java.lang.Object ref = password1_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          password1_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string password_1 = 4;
     * @return The bytes for password1.
     */
    public com.google.protobuf.ByteString
        getPassword1Bytes() {
      java.lang.Object ref = password1_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        password1_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string password_1 = 4;
     * @param value The password1 to set.
     * @return This builder for chaining.
     */
    public Builder setPassword1(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      password1_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string password_1 = 4;
     * @return This builder for chaining.
     */
    public Builder clearPassword1() {
      bitField0_ = (bitField0_ & ~0x00000008);
      password1_ = getDefaultInstance().getPassword1();
      onChanged();
      return this;
    }
    /**
     * optional string password_1 = 4;
     * @param value The bytes for password1 to set.
     * @return This builder for chaining.
     */
    public Builder setPassword1Bytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      password1_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object password2_ = "";
    /**
     * optional string password_2 = 5;
     * @return Whether the password2 field is set.
     */
    public boolean hasPassword2() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional string password_2 = 5;
     * @return The password2.
     */
    public java.lang.String getPassword2() {
      java.lang.Object ref = password2_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          password2_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string password_2 = 5;
     * @return The bytes for password2.
     */
    public com.google.protobuf.ByteString
        getPassword2Bytes() {
      java.lang.Object ref = password2_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        password2_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string password_2 = 5;
     * @param value The password2 to set.
     * @return This builder for chaining.
     */
    public Builder setPassword2(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      password2_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string password_2 = 5;
     * @return This builder for chaining.
     */
    public Builder clearPassword2() {
      bitField0_ = (bitField0_ & ~0x00000010);
      password2_ = getDefaultInstance().getPassword2();
      onChanged();
      return this;
    }
    /**
     * optional string password_2 = 5;
     * @param value The bytes for password2 to set.
     * @return This builder for chaining.
     */
    public Builder setPassword2Bytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      password2_ = value;
      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:wechat_proto.ManualAuthAccountRequest)
  }

  // @@protoc_insertion_point(class_scope:wechat_proto.ManualAuthAccountRequest)
  private static final wechat.protobuf.ManualAuthAccountRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new wechat.protobuf.ManualAuthAccountRequest();
  }

  public static wechat.protobuf.ManualAuthAccountRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ManualAuthAccountRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ManualAuthAccountRequest(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public wechat.protobuf.ManualAuthAccountRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy