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

wechat.protobuf.GetQRCodeResponse 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.GetQRCodeResponse}
 */
public final class GetQRCodeResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.GetQRCodeResponse)
    GetQRCodeResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use GetQRCodeResponse.newBuilder() to construct.
  private GetQRCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private GetQRCodeResponse() {
    footerWording_ = "";
    revokeQrcodeId_ = "";
    revokeQrcodeWording_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private GetQRCodeResponse(
      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.BaseResponse.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = baseResponse_.toBuilder();
            }
            baseResponse_ = input.readMessage(wechat.protobuf.BaseResponse.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(baseResponse_);
              baseResponse_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 18: {
            wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = qrcode_.toBuilder();
            }
            qrcode_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(qrcode_);
              qrcode_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            style_ = input.readUInt32();
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            footerWording_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            revokeQrcodeId_ = bs;
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            revokeQrcodeWording_ = 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_GetQRCodeResponse_descriptor;
  }

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

  private int bitField0_;
  public static final int BASERESPONSE_FIELD_NUMBER = 1;
  private wechat.protobuf.BaseResponse baseResponse_;
  /**
   * optional .wechat_proto.BaseResponse baseResponse = 1;
   * @return Whether the baseResponse field is set.
   */
  @java.lang.Override
  public boolean hasBaseResponse() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .wechat_proto.BaseResponse baseResponse = 1;
   * @return The baseResponse.
   */
  @java.lang.Override
  public wechat.protobuf.BaseResponse getBaseResponse() {
    return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
  }
  /**
   * optional .wechat_proto.BaseResponse baseResponse = 1;
   */
  @java.lang.Override
  public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
    return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
  }

  public static final int QRCODE_FIELD_NUMBER = 2;
  private wechat.protobuf.SKBuiltinString_ qrcode_;
  /**
   * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
   * @return Whether the qrcode field is set.
   */
  @java.lang.Override
  public boolean hasQrcode() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
   * @return The qrcode.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString_ getQrcode() {
    return qrcode_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : qrcode_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString_OrBuilder getQrcodeOrBuilder() {
    return qrcode_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : qrcode_;
  }

  public static final int STYLE_FIELD_NUMBER = 3;
  private int style_;
  /**
   * optional uint32 style = 3;
   * @return Whether the style field is set.
   */
  @java.lang.Override
  public boolean hasStyle() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint32 style = 3;
   * @return The style.
   */
  @java.lang.Override
  public int getStyle() {
    return style_;
  }

  public static final int FOOTERWORDING_FIELD_NUMBER = 4;
  private volatile java.lang.Object footerWording_;
  /**
   * optional string footerWording = 4;
   * @return Whether the footerWording field is set.
   */
  @java.lang.Override
  public boolean hasFooterWording() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string footerWording = 4;
   * @return The footerWording.
   */
  @java.lang.Override
  public java.lang.String getFooterWording() {
    java.lang.Object ref = footerWording_;
    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()) {
        footerWording_ = s;
      }
      return s;
    }
  }
  /**
   * optional string footerWording = 4;
   * @return The bytes for footerWording.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFooterWordingBytes() {
    java.lang.Object ref = footerWording_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      footerWording_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REVOKEQRCODEID_FIELD_NUMBER = 5;
  private volatile java.lang.Object revokeQrcodeId_;
  /**
   * optional string revokeQrcodeId = 5;
   * @return Whether the revokeQrcodeId field is set.
   */
  @java.lang.Override
  public boolean hasRevokeQrcodeId() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional string revokeQrcodeId = 5;
   * @return The revokeQrcodeId.
   */
  @java.lang.Override
  public java.lang.String getRevokeQrcodeId() {
    java.lang.Object ref = revokeQrcodeId_;
    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()) {
        revokeQrcodeId_ = s;
      }
      return s;
    }
  }
  /**
   * optional string revokeQrcodeId = 5;
   * @return The bytes for revokeQrcodeId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRevokeQrcodeIdBytes() {
    java.lang.Object ref = revokeQrcodeId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      revokeQrcodeId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REVOKEQRCODEWORDING_FIELD_NUMBER = 6;
  private volatile java.lang.Object revokeQrcodeWording_;
  /**
   * optional string revokeQrcodeWording = 6;
   * @return Whether the revokeQrcodeWording field is set.
   */
  @java.lang.Override
  public boolean hasRevokeQrcodeWording() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional string revokeQrcodeWording = 6;
   * @return The revokeQrcodeWording.
   */
  @java.lang.Override
  public java.lang.String getRevokeQrcodeWording() {
    java.lang.Object ref = revokeQrcodeWording_;
    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()) {
        revokeQrcodeWording_ = s;
      }
      return s;
    }
  }
  /**
   * optional string revokeQrcodeWording = 6;
   * @return The bytes for revokeQrcodeWording.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRevokeQrcodeWordingBytes() {
    java.lang.Object ref = revokeQrcodeWording_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      revokeQrcodeWording_ = 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, getBaseResponse());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getQrcode());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, style_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, footerWording_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, revokeQrcodeId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, revokeQrcodeWording_);
    }
    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, getBaseResponse());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getQrcode());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, style_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, footerWording_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, revokeQrcodeId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, revokeQrcodeWording_);
    }
    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.GetQRCodeResponse)) {
      return super.equals(obj);
    }
    wechat.protobuf.GetQRCodeResponse other = (wechat.protobuf.GetQRCodeResponse) obj;

    if (hasBaseResponse() != other.hasBaseResponse()) return false;
    if (hasBaseResponse()) {
      if (!getBaseResponse()
          .equals(other.getBaseResponse())) return false;
    }
    if (hasQrcode() != other.hasQrcode()) return false;
    if (hasQrcode()) {
      if (!getQrcode()
          .equals(other.getQrcode())) return false;
    }
    if (hasStyle() != other.hasStyle()) return false;
    if (hasStyle()) {
      if (getStyle()
          != other.getStyle()) return false;
    }
    if (hasFooterWording() != other.hasFooterWording()) return false;
    if (hasFooterWording()) {
      if (!getFooterWording()
          .equals(other.getFooterWording())) return false;
    }
    if (hasRevokeQrcodeId() != other.hasRevokeQrcodeId()) return false;
    if (hasRevokeQrcodeId()) {
      if (!getRevokeQrcodeId()
          .equals(other.getRevokeQrcodeId())) return false;
    }
    if (hasRevokeQrcodeWording() != other.hasRevokeQrcodeWording()) return false;
    if (hasRevokeQrcodeWording()) {
      if (!getRevokeQrcodeWording()
          .equals(other.getRevokeQrcodeWording())) 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 (hasBaseResponse()) {
      hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
      hash = (53 * hash) + getBaseResponse().hashCode();
    }
    if (hasQrcode()) {
      hash = (37 * hash) + QRCODE_FIELD_NUMBER;
      hash = (53 * hash) + getQrcode().hashCode();
    }
    if (hasStyle()) {
      hash = (37 * hash) + STYLE_FIELD_NUMBER;
      hash = (53 * hash) + getStyle();
    }
    if (hasFooterWording()) {
      hash = (37 * hash) + FOOTERWORDING_FIELD_NUMBER;
      hash = (53 * hash) + getFooterWording().hashCode();
    }
    if (hasRevokeQrcodeId()) {
      hash = (37 * hash) + REVOKEQRCODEID_FIELD_NUMBER;
      hash = (53 * hash) + getRevokeQrcodeId().hashCode();
    }
    if (hasRevokeQrcodeWording()) {
      hash = (37 * hash) + REVOKEQRCODEWORDING_FIELD_NUMBER;
      hash = (53 * hash) + getRevokeQrcodeWording().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getBaseResponseFieldBuilder();
        getQrcodeFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (baseResponseBuilder_ == null) {
        baseResponse_ = null;
      } else {
        baseResponseBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (qrcodeBuilder_ == null) {
        qrcode_ = null;
      } else {
        qrcodeBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      style_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      footerWording_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      revokeQrcodeId_ = "";
      bitField0_ = (bitField0_ & ~0x00000010);
      revokeQrcodeWording_ = "";
      bitField0_ = (bitField0_ & ~0x00000020);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.GetQRCodeResponse buildPartial() {
      wechat.protobuf.GetQRCodeResponse result = new wechat.protobuf.GetQRCodeResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (baseResponseBuilder_ == null) {
          result.baseResponse_ = baseResponse_;
        } else {
          result.baseResponse_ = baseResponseBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        if (qrcodeBuilder_ == null) {
          result.qrcode_ = qrcode_;
        } else {
          result.qrcode_ = qrcodeBuilder_.build();
        }
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.style_ = style_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.footerWording_ = footerWording_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.revokeQrcodeId_ = revokeQrcodeId_;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.revokeQrcodeWording_ = revokeQrcodeWording_;
      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.GetQRCodeResponse) {
        return mergeFrom((wechat.protobuf.GetQRCodeResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.GetQRCodeResponse other) {
      if (other == wechat.protobuf.GetQRCodeResponse.getDefaultInstance()) return this;
      if (other.hasBaseResponse()) {
        mergeBaseResponse(other.getBaseResponse());
      }
      if (other.hasQrcode()) {
        mergeQrcode(other.getQrcode());
      }
      if (other.hasStyle()) {
        setStyle(other.getStyle());
      }
      if (other.hasFooterWording()) {
        bitField0_ |= 0x00000008;
        footerWording_ = other.footerWording_;
        onChanged();
      }
      if (other.hasRevokeQrcodeId()) {
        bitField0_ |= 0x00000010;
        revokeQrcodeId_ = other.revokeQrcodeId_;
        onChanged();
      }
      if (other.hasRevokeQrcodeWording()) {
        bitField0_ |= 0x00000020;
        revokeQrcodeWording_ = other.revokeQrcodeWording_;
        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.GetQRCodeResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.GetQRCodeResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private wechat.protobuf.BaseResponse baseResponse_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> baseResponseBuilder_;
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     * @return Whether the baseResponse field is set.
     */
    public boolean hasBaseResponse() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     * @return The baseResponse.
     */
    public wechat.protobuf.BaseResponse getBaseResponse() {
      if (baseResponseBuilder_ == null) {
        return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
      } else {
        return baseResponseBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    public Builder setBaseResponse(wechat.protobuf.BaseResponse value) {
      if (baseResponseBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        baseResponse_ = value;
        onChanged();
      } else {
        baseResponseBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    public Builder setBaseResponse(
        wechat.protobuf.BaseResponse.Builder builderForValue) {
      if (baseResponseBuilder_ == null) {
        baseResponse_ = builderForValue.build();
        onChanged();
      } else {
        baseResponseBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    public Builder mergeBaseResponse(wechat.protobuf.BaseResponse value) {
      if (baseResponseBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            baseResponse_ != null &&
            baseResponse_ != wechat.protobuf.BaseResponse.getDefaultInstance()) {
          baseResponse_ =
            wechat.protobuf.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
        } else {
          baseResponse_ = value;
        }
        onChanged();
      } else {
        baseResponseBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    public Builder clearBaseResponse() {
      if (baseResponseBuilder_ == null) {
        baseResponse_ = null;
        onChanged();
      } else {
        baseResponseBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    public wechat.protobuf.BaseResponse.Builder getBaseResponseBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getBaseResponseFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
      if (baseResponseBuilder_ != null) {
        return baseResponseBuilder_.getMessageOrBuilder();
      } else {
        return baseResponse_ == null ?
            wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
      }
    }
    /**
     * optional .wechat_proto.BaseResponse baseResponse = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> 
        getBaseResponseFieldBuilder() {
      if (baseResponseBuilder_ == null) {
        baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>(
                getBaseResponse(),
                getParentForChildren(),
                isClean());
        baseResponse_ = null;
      }
      return baseResponseBuilder_;
    }

    private wechat.protobuf.SKBuiltinString_ qrcode_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> qrcodeBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     * @return Whether the qrcode field is set.
     */
    public boolean hasQrcode() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     * @return The qrcode.
     */
    public wechat.protobuf.SKBuiltinString_ getQrcode() {
      if (qrcodeBuilder_ == null) {
        return qrcode_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : qrcode_;
      } else {
        return qrcodeBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    public Builder setQrcode(wechat.protobuf.SKBuiltinString_ value) {
      if (qrcodeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        qrcode_ = value;
        onChanged();
      } else {
        qrcodeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    public Builder setQrcode(
        wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
      if (qrcodeBuilder_ == null) {
        qrcode_ = builderForValue.build();
        onChanged();
      } else {
        qrcodeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    public Builder mergeQrcode(wechat.protobuf.SKBuiltinString_ value) {
      if (qrcodeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
            qrcode_ != null &&
            qrcode_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
          qrcode_ =
            wechat.protobuf.SKBuiltinString_.newBuilder(qrcode_).mergeFrom(value).buildPartial();
        } else {
          qrcode_ = value;
        }
        onChanged();
      } else {
        qrcodeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    public Builder clearQrcode() {
      if (qrcodeBuilder_ == null) {
        qrcode_ = null;
        onChanged();
      } else {
        qrcodeBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    public wechat.protobuf.SKBuiltinString_.Builder getQrcodeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getQrcodeFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    public wechat.protobuf.SKBuiltinString_OrBuilder getQrcodeOrBuilder() {
      if (qrcodeBuilder_ != null) {
        return qrcodeBuilder_.getMessageOrBuilder();
      } else {
        return qrcode_ == null ?
            wechat.protobuf.SKBuiltinString_.getDefaultInstance() : qrcode_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString_ qrcode = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> 
        getQrcodeFieldBuilder() {
      if (qrcodeBuilder_ == null) {
        qrcodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
                getQrcode(),
                getParentForChildren(),
                isClean());
        qrcode_ = null;
      }
      return qrcodeBuilder_;
    }

    private int style_ ;
    /**
     * optional uint32 style = 3;
     * @return Whether the style field is set.
     */
    @java.lang.Override
    public boolean hasStyle() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 style = 3;
     * @return The style.
     */
    @java.lang.Override
    public int getStyle() {
      return style_;
    }
    /**
     * optional uint32 style = 3;
     * @param value The style to set.
     * @return This builder for chaining.
     */
    public Builder setStyle(int value) {
      bitField0_ |= 0x00000004;
      style_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 style = 3;
     * @return This builder for chaining.
     */
    public Builder clearStyle() {
      bitField0_ = (bitField0_ & ~0x00000004);
      style_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object footerWording_ = "";
    /**
     * optional string footerWording = 4;
     * @return Whether the footerWording field is set.
     */
    public boolean hasFooterWording() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional string footerWording = 4;
     * @return The footerWording.
     */
    public java.lang.String getFooterWording() {
      java.lang.Object ref = footerWording_;
      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()) {
          footerWording_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string footerWording = 4;
     * @return The bytes for footerWording.
     */
    public com.google.protobuf.ByteString
        getFooterWordingBytes() {
      java.lang.Object ref = footerWording_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        footerWording_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string footerWording = 4;
     * @param value The footerWording to set.
     * @return This builder for chaining.
     */
    public Builder setFooterWording(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      footerWording_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string footerWording = 4;
     * @return This builder for chaining.
     */
    public Builder clearFooterWording() {
      bitField0_ = (bitField0_ & ~0x00000008);
      footerWording_ = getDefaultInstance().getFooterWording();
      onChanged();
      return this;
    }
    /**
     * optional string footerWording = 4;
     * @param value The bytes for footerWording to set.
     * @return This builder for chaining.
     */
    public Builder setFooterWordingBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      footerWording_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object revokeQrcodeId_ = "";
    /**
     * optional string revokeQrcodeId = 5;
     * @return Whether the revokeQrcodeId field is set.
     */
    public boolean hasRevokeQrcodeId() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional string revokeQrcodeId = 5;
     * @return The revokeQrcodeId.
     */
    public java.lang.String getRevokeQrcodeId() {
      java.lang.Object ref = revokeQrcodeId_;
      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()) {
          revokeQrcodeId_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string revokeQrcodeId = 5;
     * @return The bytes for revokeQrcodeId.
     */
    public com.google.protobuf.ByteString
        getRevokeQrcodeIdBytes() {
      java.lang.Object ref = revokeQrcodeId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        revokeQrcodeId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string revokeQrcodeId = 5;
     * @param value The revokeQrcodeId to set.
     * @return This builder for chaining.
     */
    public Builder setRevokeQrcodeId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      revokeQrcodeId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string revokeQrcodeId = 5;
     * @return This builder for chaining.
     */
    public Builder clearRevokeQrcodeId() {
      bitField0_ = (bitField0_ & ~0x00000010);
      revokeQrcodeId_ = getDefaultInstance().getRevokeQrcodeId();
      onChanged();
      return this;
    }
    /**
     * optional string revokeQrcodeId = 5;
     * @param value The bytes for revokeQrcodeId to set.
     * @return This builder for chaining.
     */
    public Builder setRevokeQrcodeIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      revokeQrcodeId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object revokeQrcodeWording_ = "";
    /**
     * optional string revokeQrcodeWording = 6;
     * @return Whether the revokeQrcodeWording field is set.
     */
    public boolean hasRevokeQrcodeWording() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string revokeQrcodeWording = 6;
     * @return The revokeQrcodeWording.
     */
    public java.lang.String getRevokeQrcodeWording() {
      java.lang.Object ref = revokeQrcodeWording_;
      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()) {
          revokeQrcodeWording_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string revokeQrcodeWording = 6;
     * @return The bytes for revokeQrcodeWording.
     */
    public com.google.protobuf.ByteString
        getRevokeQrcodeWordingBytes() {
      java.lang.Object ref = revokeQrcodeWording_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        revokeQrcodeWording_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string revokeQrcodeWording = 6;
     * @param value The revokeQrcodeWording to set.
     * @return This builder for chaining.
     */
    public Builder setRevokeQrcodeWording(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      revokeQrcodeWording_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string revokeQrcodeWording = 6;
     * @return This builder for chaining.
     */
    public Builder clearRevokeQrcodeWording() {
      bitField0_ = (bitField0_ & ~0x00000020);
      revokeQrcodeWording_ = getDefaultInstance().getRevokeQrcodeWording();
      onChanged();
      return this;
    }
    /**
     * optional string revokeQrcodeWording = 6;
     * @param value The bytes for revokeQrcodeWording to set.
     * @return This builder for chaining.
     */
    public Builder setRevokeQrcodeWordingBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      revokeQrcodeWording_ = 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.GetQRCodeResponse)
  }

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

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

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public GetQRCodeResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new GetQRCodeResponse(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.GetQRCodeResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy