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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CustomizedInfo(
      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 8: {
            bitField0_ |= 0x00000001;
            brandFlag_ = input.readUInt32();
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            externalInfo_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            brandInfo_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            brandIconUrl_ = 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_CustomizedInfo_descriptor;
  }

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

  private int bitField0_;
  public static final int BRAND_FLAG_FIELD_NUMBER = 1;
  private int brandFlag_;
  /**
   * optional uint32 brand_flag = 1;
   * @return Whether the brandFlag field is set.
   */
  @java.lang.Override
  public boolean hasBrandFlag() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional uint32 brand_flag = 1;
   * @return The brandFlag.
   */
  @java.lang.Override
  public int getBrandFlag() {
    return brandFlag_;
  }

  public static final int EXTERNAL_INFO_FIELD_NUMBER = 2;
  private volatile java.lang.Object externalInfo_;
  /**
   * optional string external_info = 2;
   * @return Whether the externalInfo field is set.
   */
  @java.lang.Override
  public boolean hasExternalInfo() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string external_info = 2;
   * @return The externalInfo.
   */
  @java.lang.Override
  public java.lang.String getExternalInfo() {
    java.lang.Object ref = externalInfo_;
    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()) {
        externalInfo_ = s;
      }
      return s;
    }
  }
  /**
   * optional string external_info = 2;
   * @return The bytes for externalInfo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getExternalInfoBytes() {
    java.lang.Object ref = externalInfo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      externalInfo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BRAND_INFO_FIELD_NUMBER = 3;
  private volatile java.lang.Object brandInfo_;
  /**
   * optional string brand_info = 3;
   * @return Whether the brandInfo field is set.
   */
  @java.lang.Override
  public boolean hasBrandInfo() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional string brand_info = 3;
   * @return The brandInfo.
   */
  @java.lang.Override
  public java.lang.String getBrandInfo() {
    java.lang.Object ref = brandInfo_;
    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()) {
        brandInfo_ = s;
      }
      return s;
    }
  }
  /**
   * optional string brand_info = 3;
   * @return The bytes for brandInfo.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBrandInfoBytes() {
    java.lang.Object ref = brandInfo_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      brandInfo_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BRAND_ICON_URL_FIELD_NUMBER = 4;
  private volatile java.lang.Object brandIconUrl_;
  /**
   * optional string brand_icon_url = 4;
   * @return Whether the brandIconUrl field is set.
   */
  @java.lang.Override
  public boolean hasBrandIconUrl() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string brand_icon_url = 4;
   * @return The brandIconUrl.
   */
  @java.lang.Override
  public java.lang.String getBrandIconUrl() {
    java.lang.Object ref = brandIconUrl_;
    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()) {
        brandIconUrl_ = s;
      }
      return s;
    }
  }
  /**
   * optional string brand_icon_url = 4;
   * @return The bytes for brandIconUrl.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getBrandIconUrlBytes() {
    java.lang.Object ref = brandIconUrl_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      brandIconUrl_ = 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.writeUInt32(1, brandFlag_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalInfo_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, brandInfo_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, brandIconUrl_);
    }
    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
        .computeUInt32Size(1, brandFlag_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalInfo_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, brandInfo_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, brandIconUrl_);
    }
    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.CustomizedInfo)) {
      return super.equals(obj);
    }
    wechat.protobuf.CustomizedInfo other = (wechat.protobuf.CustomizedInfo) obj;

    if (hasBrandFlag() != other.hasBrandFlag()) return false;
    if (hasBrandFlag()) {
      if (getBrandFlag()
          != other.getBrandFlag()) return false;
    }
    if (hasExternalInfo() != other.hasExternalInfo()) return false;
    if (hasExternalInfo()) {
      if (!getExternalInfo()
          .equals(other.getExternalInfo())) return false;
    }
    if (hasBrandInfo() != other.hasBrandInfo()) return false;
    if (hasBrandInfo()) {
      if (!getBrandInfo()
          .equals(other.getBrandInfo())) return false;
    }
    if (hasBrandIconUrl() != other.hasBrandIconUrl()) return false;
    if (hasBrandIconUrl()) {
      if (!getBrandIconUrl()
          .equals(other.getBrandIconUrl())) 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 (hasBrandFlag()) {
      hash = (37 * hash) + BRAND_FLAG_FIELD_NUMBER;
      hash = (53 * hash) + getBrandFlag();
    }
    if (hasExternalInfo()) {
      hash = (37 * hash) + EXTERNAL_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getExternalInfo().hashCode();
    }
    if (hasBrandInfo()) {
      hash = (37 * hash) + BRAND_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getBrandInfo().hashCode();
    }
    if (hasBrandIconUrl()) {
      hash = (37 * hash) + BRAND_ICON_URL_FIELD_NUMBER;
      hash = (53 * hash) + getBrandIconUrl().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      brandFlag_ = 0;
      bitField0_ = (bitField0_ & ~0x00000001);
      externalInfo_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      brandInfo_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      brandIconUrl_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.CustomizedInfo buildPartial() {
      wechat.protobuf.CustomizedInfo result = new wechat.protobuf.CustomizedInfo(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.brandFlag_ = brandFlag_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.externalInfo_ = externalInfo_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        to_bitField0_ |= 0x00000004;
      }
      result.brandInfo_ = brandInfo_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.brandIconUrl_ = brandIconUrl_;
      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.CustomizedInfo) {
        return mergeFrom((wechat.protobuf.CustomizedInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.CustomizedInfo other) {
      if (other == wechat.protobuf.CustomizedInfo.getDefaultInstance()) return this;
      if (other.hasBrandFlag()) {
        setBrandFlag(other.getBrandFlag());
      }
      if (other.hasExternalInfo()) {
        bitField0_ |= 0x00000002;
        externalInfo_ = other.externalInfo_;
        onChanged();
      }
      if (other.hasBrandInfo()) {
        bitField0_ |= 0x00000004;
        brandInfo_ = other.brandInfo_;
        onChanged();
      }
      if (other.hasBrandIconUrl()) {
        bitField0_ |= 0x00000008;
        brandIconUrl_ = other.brandIconUrl_;
        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.CustomizedInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.CustomizedInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int brandFlag_ ;
    /**
     * optional uint32 brand_flag = 1;
     * @return Whether the brandFlag field is set.
     */
    @java.lang.Override
    public boolean hasBrandFlag() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional uint32 brand_flag = 1;
     * @return The brandFlag.
     */
    @java.lang.Override
    public int getBrandFlag() {
      return brandFlag_;
    }
    /**
     * optional uint32 brand_flag = 1;
     * @param value The brandFlag to set.
     * @return This builder for chaining.
     */
    public Builder setBrandFlag(int value) {
      bitField0_ |= 0x00000001;
      brandFlag_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 brand_flag = 1;
     * @return This builder for chaining.
     */
    public Builder clearBrandFlag() {
      bitField0_ = (bitField0_ & ~0x00000001);
      brandFlag_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object externalInfo_ = "";
    /**
     * optional string external_info = 2;
     * @return Whether the externalInfo field is set.
     */
    public boolean hasExternalInfo() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string external_info = 2;
     * @return The externalInfo.
     */
    public java.lang.String getExternalInfo() {
      java.lang.Object ref = externalInfo_;
      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()) {
          externalInfo_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string external_info = 2;
     * @return The bytes for externalInfo.
     */
    public com.google.protobuf.ByteString
        getExternalInfoBytes() {
      java.lang.Object ref = externalInfo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        externalInfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string external_info = 2;
     * @param value The externalInfo to set.
     * @return This builder for chaining.
     */
    public Builder setExternalInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      externalInfo_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string external_info = 2;
     * @return This builder for chaining.
     */
    public Builder clearExternalInfo() {
      bitField0_ = (bitField0_ & ~0x00000002);
      externalInfo_ = getDefaultInstance().getExternalInfo();
      onChanged();
      return this;
    }
    /**
     * optional string external_info = 2;
     * @param value The bytes for externalInfo to set.
     * @return This builder for chaining.
     */
    public Builder setExternalInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      externalInfo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object brandInfo_ = "";
    /**
     * optional string brand_info = 3;
     * @return Whether the brandInfo field is set.
     */
    public boolean hasBrandInfo() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional string brand_info = 3;
     * @return The brandInfo.
     */
    public java.lang.String getBrandInfo() {
      java.lang.Object ref = brandInfo_;
      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()) {
          brandInfo_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string brand_info = 3;
     * @return The bytes for brandInfo.
     */
    public com.google.protobuf.ByteString
        getBrandInfoBytes() {
      java.lang.Object ref = brandInfo_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        brandInfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string brand_info = 3;
     * @param value The brandInfo to set.
     * @return This builder for chaining.
     */
    public Builder setBrandInfo(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      brandInfo_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string brand_info = 3;
     * @return This builder for chaining.
     */
    public Builder clearBrandInfo() {
      bitField0_ = (bitField0_ & ~0x00000004);
      brandInfo_ = getDefaultInstance().getBrandInfo();
      onChanged();
      return this;
    }
    /**
     * optional string brand_info = 3;
     * @param value The bytes for brandInfo to set.
     * @return This builder for chaining.
     */
    public Builder setBrandInfoBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      brandInfo_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object brandIconUrl_ = "";
    /**
     * optional string brand_icon_url = 4;
     * @return Whether the brandIconUrl field is set.
     */
    public boolean hasBrandIconUrl() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional string brand_icon_url = 4;
     * @return The brandIconUrl.
     */
    public java.lang.String getBrandIconUrl() {
      java.lang.Object ref = brandIconUrl_;
      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()) {
          brandIconUrl_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string brand_icon_url = 4;
     * @return The bytes for brandIconUrl.
     */
    public com.google.protobuf.ByteString
        getBrandIconUrlBytes() {
      java.lang.Object ref = brandIconUrl_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        brandIconUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string brand_icon_url = 4;
     * @param value The brandIconUrl to set.
     * @return This builder for chaining.
     */
    public Builder setBrandIconUrl(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      brandIconUrl_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string brand_icon_url = 4;
     * @return This builder for chaining.
     */
    public Builder clearBrandIconUrl() {
      bitField0_ = (bitField0_ & ~0x00000008);
      brandIconUrl_ = getDefaultInstance().getBrandIconUrl();
      onChanged();
      return this;
    }
    /**
     * optional string brand_icon_url = 4;
     * @param value The bytes for brandIconUrl to set.
     * @return This builder for chaining.
     */
    public Builder setBrandIconUrlBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      brandIconUrl_ = 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.CustomizedInfo)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy