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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private MicroMsgRequestNew(
      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.SKBuiltinString.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = toUserName_.toBuilder();
            }
            toUserName_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(toUserName_);
              toUserName_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            content_ = bs;
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            type_ = input.readUInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            createTime_ = input.readUInt32();
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            clientMsgId_ = input.readUInt64();
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            msgSource_ = bs;
            break;
          }
          case 56: {
            bitField0_ |= 0x00000040;
            ctrlBit_ = input.readUInt32();
            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_MicroMsgRequestNew_descriptor;
  }

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

  private int bitField0_;
  public static final int TOUSERNAME_FIELD_NUMBER = 1;
  private wechat.protobuf.SKBuiltinString toUserName_;
  /**
   * optional .wechat_proto.SKBuiltinString toUserName = 1;
   * @return Whether the toUserName field is set.
   */
  @java.lang.Override
  public boolean hasToUserName() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .wechat_proto.SKBuiltinString toUserName = 1;
   * @return The toUserName.
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinString getToUserName() {
    return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
  }
  /**
   * optional .wechat_proto.SKBuiltinString toUserName = 1;
   */
  @java.lang.Override
  public wechat.protobuf.SKBuiltinStringOrBuilder getToUserNameOrBuilder() {
    return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
  }

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

  public static final int TYPE_FIELD_NUMBER = 3;
  private int type_;
  /**
   * optional uint32 type = 3;
   * @return Whether the type field is set.
   */
  @java.lang.Override
  public boolean hasType() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint32 type = 3;
   * @return The type.
   */
  @java.lang.Override
  public int getType() {
    return type_;
  }

  public static final int CREATETIME_FIELD_NUMBER = 4;
  private int createTime_;
  /**
   * optional uint32 createTime = 4;
   * @return Whether the createTime field is set.
   */
  @java.lang.Override
  public boolean hasCreateTime() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional uint32 createTime = 4;
   * @return The createTime.
   */
  @java.lang.Override
  public int getCreateTime() {
    return createTime_;
  }

  public static final int CLIENTMSGID_FIELD_NUMBER = 5;
  private long clientMsgId_;
  /**
   * optional uint64 clientMsgId = 5;
   * @return Whether the clientMsgId field is set.
   */
  @java.lang.Override
  public boolean hasClientMsgId() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional uint64 clientMsgId = 5;
   * @return The clientMsgId.
   */
  @java.lang.Override
  public long getClientMsgId() {
    return clientMsgId_;
  }

  public static final int MSGSOURCE_FIELD_NUMBER = 6;
  private volatile java.lang.Object msgSource_;
  /**
   * optional string msgSource = 6;
   * @return Whether the msgSource field is set.
   */
  @java.lang.Override
  public boolean hasMsgSource() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional string msgSource = 6;
   * @return The msgSource.
   */
  @java.lang.Override
  public java.lang.String getMsgSource() {
    java.lang.Object ref = msgSource_;
    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()) {
        msgSource_ = s;
      }
      return s;
    }
  }
  /**
   * optional string msgSource = 6;
   * @return The bytes for msgSource.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMsgSourceBytes() {
    java.lang.Object ref = msgSource_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      msgSource_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CTRLBIT_FIELD_NUMBER = 7;
  private int ctrlBit_;
  /**
   * optional uint32 ctrlBit = 7;
   * @return Whether the ctrlBit field is set.
   */
  @java.lang.Override
  public boolean hasCtrlBit() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional uint32 ctrlBit = 7;
   * @return The ctrlBit.
   */
  @java.lang.Override
  public int getCtrlBit() {
    return ctrlBit_;
  }

  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, getToUserName());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, type_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeUInt32(4, createTime_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeUInt64(5, clientMsgId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, msgSource_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeUInt32(7, ctrlBit_);
    }
    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, getToUserName());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, type_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(4, createTime_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(5, clientMsgId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, msgSource_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, ctrlBit_);
    }
    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.MicroMsgRequestNew)) {
      return super.equals(obj);
    }
    wechat.protobuf.MicroMsgRequestNew other = (wechat.protobuf.MicroMsgRequestNew) obj;

    if (hasToUserName() != other.hasToUserName()) return false;
    if (hasToUserName()) {
      if (!getToUserName()
          .equals(other.getToUserName())) return false;
    }
    if (hasContent() != other.hasContent()) return false;
    if (hasContent()) {
      if (!getContent()
          .equals(other.getContent())) return false;
    }
    if (hasType() != other.hasType()) return false;
    if (hasType()) {
      if (getType()
          != other.getType()) return false;
    }
    if (hasCreateTime() != other.hasCreateTime()) return false;
    if (hasCreateTime()) {
      if (getCreateTime()
          != other.getCreateTime()) return false;
    }
    if (hasClientMsgId() != other.hasClientMsgId()) return false;
    if (hasClientMsgId()) {
      if (getClientMsgId()
          != other.getClientMsgId()) return false;
    }
    if (hasMsgSource() != other.hasMsgSource()) return false;
    if (hasMsgSource()) {
      if (!getMsgSource()
          .equals(other.getMsgSource())) return false;
    }
    if (hasCtrlBit() != other.hasCtrlBit()) return false;
    if (hasCtrlBit()) {
      if (getCtrlBit()
          != other.getCtrlBit()) 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 (hasToUserName()) {
      hash = (37 * hash) + TOUSERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getToUserName().hashCode();
    }
    if (hasContent()) {
      hash = (37 * hash) + CONTENT_FIELD_NUMBER;
      hash = (53 * hash) + getContent().hashCode();
    }
    if (hasType()) {
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType();
    }
    if (hasCreateTime()) {
      hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
      hash = (53 * hash) + getCreateTime();
    }
    if (hasClientMsgId()) {
      hash = (37 * hash) + CLIENTMSGID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getClientMsgId());
    }
    if (hasMsgSource()) {
      hash = (37 * hash) + MSGSOURCE_FIELD_NUMBER;
      hash = (53 * hash) + getMsgSource().hashCode();
    }
    if (hasCtrlBit()) {
      hash = (37 * hash) + CTRLBIT_FIELD_NUMBER;
      hash = (53 * hash) + getCtrlBit();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getToUserNameFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (toUserNameBuilder_ == null) {
        toUserName_ = null;
      } else {
        toUserNameBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      content_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      type_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      createTime_ = 0;
      bitField0_ = (bitField0_ & ~0x00000008);
      clientMsgId_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000010);
      msgSource_ = "";
      bitField0_ = (bitField0_ & ~0x00000020);
      ctrlBit_ = 0;
      bitField0_ = (bitField0_ & ~0x00000040);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.MicroMsgRequestNew buildPartial() {
      wechat.protobuf.MicroMsgRequestNew result = new wechat.protobuf.MicroMsgRequestNew(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (toUserNameBuilder_ == null) {
          result.toUserName_ = toUserName_;
        } else {
          result.toUserName_ = toUserNameBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.content_ = content_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.type_ = type_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.createTime_ = createTime_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.clientMsgId_ = clientMsgId_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.msgSource_ = msgSource_;
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.ctrlBit_ = ctrlBit_;
        to_bitField0_ |= 0x00000040;
      }
      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.MicroMsgRequestNew) {
        return mergeFrom((wechat.protobuf.MicroMsgRequestNew)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.MicroMsgRequestNew other) {
      if (other == wechat.protobuf.MicroMsgRequestNew.getDefaultInstance()) return this;
      if (other.hasToUserName()) {
        mergeToUserName(other.getToUserName());
      }
      if (other.hasContent()) {
        bitField0_ |= 0x00000002;
        content_ = other.content_;
        onChanged();
      }
      if (other.hasType()) {
        setType(other.getType());
      }
      if (other.hasCreateTime()) {
        setCreateTime(other.getCreateTime());
      }
      if (other.hasClientMsgId()) {
        setClientMsgId(other.getClientMsgId());
      }
      if (other.hasMsgSource()) {
        bitField0_ |= 0x00000020;
        msgSource_ = other.msgSource_;
        onChanged();
      }
      if (other.hasCtrlBit()) {
        setCtrlBit(other.getCtrlBit());
      }
      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.MicroMsgRequestNew parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.MicroMsgRequestNew) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private wechat.protobuf.SKBuiltinString toUserName_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> toUserNameBuilder_;
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     * @return Whether the toUserName field is set.
     */
    public boolean hasToUserName() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     * @return The toUserName.
     */
    public wechat.protobuf.SKBuiltinString getToUserName() {
      if (toUserNameBuilder_ == null) {
        return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
      } else {
        return toUserNameBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    public Builder setToUserName(wechat.protobuf.SKBuiltinString value) {
      if (toUserNameBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        toUserName_ = value;
        onChanged();
      } else {
        toUserNameBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    public Builder setToUserName(
        wechat.protobuf.SKBuiltinString.Builder builderForValue) {
      if (toUserNameBuilder_ == null) {
        toUserName_ = builderForValue.build();
        onChanged();
      } else {
        toUserNameBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    public Builder mergeToUserName(wechat.protobuf.SKBuiltinString value) {
      if (toUserNameBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            toUserName_ != null &&
            toUserName_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
          toUserName_ =
            wechat.protobuf.SKBuiltinString.newBuilder(toUserName_).mergeFrom(value).buildPartial();
        } else {
          toUserName_ = value;
        }
        onChanged();
      } else {
        toUserNameBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    public Builder clearToUserName() {
      if (toUserNameBuilder_ == null) {
        toUserName_ = null;
        onChanged();
      } else {
        toUserNameBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    public wechat.protobuf.SKBuiltinString.Builder getToUserNameBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getToUserNameFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    public wechat.protobuf.SKBuiltinStringOrBuilder getToUserNameOrBuilder() {
      if (toUserNameBuilder_ != null) {
        return toUserNameBuilder_.getMessageOrBuilder();
      } else {
        return toUserName_ == null ?
            wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
      }
    }
    /**
     * optional .wechat_proto.SKBuiltinString toUserName = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> 
        getToUserNameFieldBuilder() {
      if (toUserNameBuilder_ == null) {
        toUserNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
                getToUserName(),
                getParentForChildren(),
                isClean());
        toUserName_ = null;
      }
      return toUserNameBuilder_;
    }

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

    private int type_ ;
    /**
     * optional uint32 type = 3;
     * @return Whether the type field is set.
     */
    @java.lang.Override
    public boolean hasType() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 type = 3;
     * @return The type.
     */
    @java.lang.Override
    public int getType() {
      return type_;
    }
    /**
     * optional uint32 type = 3;
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(int value) {
      bitField0_ |= 0x00000004;
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 type = 3;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      bitField0_ = (bitField0_ & ~0x00000004);
      type_ = 0;
      onChanged();
      return this;
    }

    private int createTime_ ;
    /**
     * optional uint32 createTime = 4;
     * @return Whether the createTime field is set.
     */
    @java.lang.Override
    public boolean hasCreateTime() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional uint32 createTime = 4;
     * @return The createTime.
     */
    @java.lang.Override
    public int getCreateTime() {
      return createTime_;
    }
    /**
     * optional uint32 createTime = 4;
     * @param value The createTime to set.
     * @return This builder for chaining.
     */
    public Builder setCreateTime(int value) {
      bitField0_ |= 0x00000008;
      createTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 createTime = 4;
     * @return This builder for chaining.
     */
    public Builder clearCreateTime() {
      bitField0_ = (bitField0_ & ~0x00000008);
      createTime_ = 0;
      onChanged();
      return this;
    }

    private long clientMsgId_ ;
    /**
     * optional uint64 clientMsgId = 5;
     * @return Whether the clientMsgId field is set.
     */
    @java.lang.Override
    public boolean hasClientMsgId() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional uint64 clientMsgId = 5;
     * @return The clientMsgId.
     */
    @java.lang.Override
    public long getClientMsgId() {
      return clientMsgId_;
    }
    /**
     * optional uint64 clientMsgId = 5;
     * @param value The clientMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setClientMsgId(long value) {
      bitField0_ |= 0x00000010;
      clientMsgId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint64 clientMsgId = 5;
     * @return This builder for chaining.
     */
    public Builder clearClientMsgId() {
      bitField0_ = (bitField0_ & ~0x00000010);
      clientMsgId_ = 0L;
      onChanged();
      return this;
    }

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

    private int ctrlBit_ ;
    /**
     * optional uint32 ctrlBit = 7;
     * @return Whether the ctrlBit field is set.
     */
    @java.lang.Override
    public boolean hasCtrlBit() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional uint32 ctrlBit = 7;
     * @return The ctrlBit.
     */
    @java.lang.Override
    public int getCtrlBit() {
      return ctrlBit_;
    }
    /**
     * optional uint32 ctrlBit = 7;
     * @param value The ctrlBit to set.
     * @return This builder for chaining.
     */
    public Builder setCtrlBit(int value) {
      bitField0_ |= 0x00000040;
      ctrlBit_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 ctrlBit = 7;
     * @return This builder for chaining.
     */
    public Builder clearCtrlBit() {
      bitField0_ = (bitField0_ & ~0x00000040);
      ctrlBit_ = 0;
      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.MicroMsgRequestNew)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy