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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private NetworkControl(
      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: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            portList_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            timeoutList_ = bs;
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            minNoopInterval_ = input.readUInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            maxNoopInterval_ = input.readUInt32();
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            typingInterval_ = input.readInt32();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000020;
            noopIntervalTime_ = input.readInt32();
            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_NetworkControl_descriptor;
  }

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

  private int bitField0_;
  public static final int PORTLIST_FIELD_NUMBER = 1;
  private volatile java.lang.Object portList_;
  /**
   * optional string portList = 1;
   * @return Whether the portList field is set.
   */
  @java.lang.Override
  public boolean hasPortList() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional string portList = 1;
   * @return The portList.
   */
  @java.lang.Override
  public java.lang.String getPortList() {
    java.lang.Object ref = portList_;
    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()) {
        portList_ = s;
      }
      return s;
    }
  }
  /**
   * optional string portList = 1;
   * @return The bytes for portList.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPortListBytes() {
    java.lang.Object ref = portList_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      portList_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

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

  public static final int MINNOOPINTERVAL_FIELD_NUMBER = 3;
  private int minNoopInterval_;
  /**
   * optional uint32 minNoopInterval = 3;
   * @return Whether the minNoopInterval field is set.
   */
  @java.lang.Override
  public boolean hasMinNoopInterval() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint32 minNoopInterval = 3;
   * @return The minNoopInterval.
   */
  @java.lang.Override
  public int getMinNoopInterval() {
    return minNoopInterval_;
  }

  public static final int MAXNOOPINTERVAL_FIELD_NUMBER = 4;
  private int maxNoopInterval_;
  /**
   * optional uint32 maxNoopInterval = 4;
   * @return Whether the maxNoopInterval field is set.
   */
  @java.lang.Override
  public boolean hasMaxNoopInterval() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional uint32 maxNoopInterval = 4;
   * @return The maxNoopInterval.
   */
  @java.lang.Override
  public int getMaxNoopInterval() {
    return maxNoopInterval_;
  }

  public static final int TYPINGINTERVAL_FIELD_NUMBER = 5;
  private int typingInterval_;
  /**
   * optional int32 typingInterval = 5;
   * @return Whether the typingInterval field is set.
   */
  @java.lang.Override
  public boolean hasTypingInterval() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional int32 typingInterval = 5;
   * @return The typingInterval.
   */
  @java.lang.Override
  public int getTypingInterval() {
    return typingInterval_;
  }

  public static final int NOOPINTERVALTIME_FIELD_NUMBER = 7;
  private int noopIntervalTime_;
  /**
   * optional int32 noopIntervalTime = 7;
   * @return Whether the noopIntervalTime field is set.
   */
  @java.lang.Override
  public boolean hasNoopIntervalTime() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional int32 noopIntervalTime = 7;
   * @return The noopIntervalTime.
   */
  @java.lang.Override
  public int getNoopIntervalTime() {
    return noopIntervalTime_;
  }

  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)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, portList_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timeoutList_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, minNoopInterval_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeUInt32(4, maxNoopInterval_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeInt32(5, typingInterval_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeInt32(7, noopIntervalTime_);
    }
    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.GeneratedMessageV3.computeStringSize(1, portList_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeoutList_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, minNoopInterval_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(4, maxNoopInterval_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, typingInterval_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(7, noopIntervalTime_);
    }
    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.NetworkControl)) {
      return super.equals(obj);
    }
    wechat.protobuf.NetworkControl other = (wechat.protobuf.NetworkControl) obj;

    if (hasPortList() != other.hasPortList()) return false;
    if (hasPortList()) {
      if (!getPortList()
          .equals(other.getPortList())) return false;
    }
    if (hasTimeoutList() != other.hasTimeoutList()) return false;
    if (hasTimeoutList()) {
      if (!getTimeoutList()
          .equals(other.getTimeoutList())) return false;
    }
    if (hasMinNoopInterval() != other.hasMinNoopInterval()) return false;
    if (hasMinNoopInterval()) {
      if (getMinNoopInterval()
          != other.getMinNoopInterval()) return false;
    }
    if (hasMaxNoopInterval() != other.hasMaxNoopInterval()) return false;
    if (hasMaxNoopInterval()) {
      if (getMaxNoopInterval()
          != other.getMaxNoopInterval()) return false;
    }
    if (hasTypingInterval() != other.hasTypingInterval()) return false;
    if (hasTypingInterval()) {
      if (getTypingInterval()
          != other.getTypingInterval()) return false;
    }
    if (hasNoopIntervalTime() != other.hasNoopIntervalTime()) return false;
    if (hasNoopIntervalTime()) {
      if (getNoopIntervalTime()
          != other.getNoopIntervalTime()) 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 (hasPortList()) {
      hash = (37 * hash) + PORTLIST_FIELD_NUMBER;
      hash = (53 * hash) + getPortList().hashCode();
    }
    if (hasTimeoutList()) {
      hash = (37 * hash) + TIMEOUTLIST_FIELD_NUMBER;
      hash = (53 * hash) + getTimeoutList().hashCode();
    }
    if (hasMinNoopInterval()) {
      hash = (37 * hash) + MINNOOPINTERVAL_FIELD_NUMBER;
      hash = (53 * hash) + getMinNoopInterval();
    }
    if (hasMaxNoopInterval()) {
      hash = (37 * hash) + MAXNOOPINTERVAL_FIELD_NUMBER;
      hash = (53 * hash) + getMaxNoopInterval();
    }
    if (hasTypingInterval()) {
      hash = (37 * hash) + TYPINGINTERVAL_FIELD_NUMBER;
      hash = (53 * hash) + getTypingInterval();
    }
    if (hasNoopIntervalTime()) {
      hash = (37 * hash) + NOOPINTERVALTIME_FIELD_NUMBER;
      hash = (53 * hash) + getNoopIntervalTime();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using wechat.protobuf.NetworkControl.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();
      portList_ = "";
      bitField0_ = (bitField0_ & ~0x00000001);
      timeoutList_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      minNoopInterval_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      maxNoopInterval_ = 0;
      bitField0_ = (bitField0_ & ~0x00000008);
      typingInterval_ = 0;
      bitField0_ = (bitField0_ & ~0x00000010);
      noopIntervalTime_ = 0;
      bitField0_ = (bitField0_ & ~0x00000020);
      return this;
    }

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

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

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

    @java.lang.Override
    public wechat.protobuf.NetworkControl buildPartial() {
      wechat.protobuf.NetworkControl result = new wechat.protobuf.NetworkControl(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.portList_ = portList_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.timeoutList_ = timeoutList_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.minNoopInterval_ = minNoopInterval_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.maxNoopInterval_ = maxNoopInterval_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.typingInterval_ = typingInterval_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.noopIntervalTime_ = noopIntervalTime_;
        to_bitField0_ |= 0x00000020;
      }
      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.NetworkControl) {
        return mergeFrom((wechat.protobuf.NetworkControl)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.NetworkControl other) {
      if (other == wechat.protobuf.NetworkControl.getDefaultInstance()) return this;
      if (other.hasPortList()) {
        bitField0_ |= 0x00000001;
        portList_ = other.portList_;
        onChanged();
      }
      if (other.hasTimeoutList()) {
        bitField0_ |= 0x00000002;
        timeoutList_ = other.timeoutList_;
        onChanged();
      }
      if (other.hasMinNoopInterval()) {
        setMinNoopInterval(other.getMinNoopInterval());
      }
      if (other.hasMaxNoopInterval()) {
        setMaxNoopInterval(other.getMaxNoopInterval());
      }
      if (other.hasTypingInterval()) {
        setTypingInterval(other.getTypingInterval());
      }
      if (other.hasNoopIntervalTime()) {
        setNoopIntervalTime(other.getNoopIntervalTime());
      }
      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.NetworkControl parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.NetworkControl) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object portList_ = "";
    /**
     * optional string portList = 1;
     * @return Whether the portList field is set.
     */
    public boolean hasPortList() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional string portList = 1;
     * @return The portList.
     */
    public java.lang.String getPortList() {
      java.lang.Object ref = portList_;
      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()) {
          portList_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string portList = 1;
     * @return The bytes for portList.
     */
    public com.google.protobuf.ByteString
        getPortListBytes() {
      java.lang.Object ref = portList_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        portList_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string portList = 1;
     * @param value The portList to set.
     * @return This builder for chaining.
     */
    public Builder setPortList(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      portList_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string portList = 1;
     * @return This builder for chaining.
     */
    public Builder clearPortList() {
      bitField0_ = (bitField0_ & ~0x00000001);
      portList_ = getDefaultInstance().getPortList();
      onChanged();
      return this;
    }
    /**
     * optional string portList = 1;
     * @param value The bytes for portList to set.
     * @return This builder for chaining.
     */
    public Builder setPortListBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      portList_ = value;
      onChanged();
      return this;
    }

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

    private int minNoopInterval_ ;
    /**
     * optional uint32 minNoopInterval = 3;
     * @return Whether the minNoopInterval field is set.
     */
    @java.lang.Override
    public boolean hasMinNoopInterval() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 minNoopInterval = 3;
     * @return The minNoopInterval.
     */
    @java.lang.Override
    public int getMinNoopInterval() {
      return minNoopInterval_;
    }
    /**
     * optional uint32 minNoopInterval = 3;
     * @param value The minNoopInterval to set.
     * @return This builder for chaining.
     */
    public Builder setMinNoopInterval(int value) {
      bitField0_ |= 0x00000004;
      minNoopInterval_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 minNoopInterval = 3;
     * @return This builder for chaining.
     */
    public Builder clearMinNoopInterval() {
      bitField0_ = (bitField0_ & ~0x00000004);
      minNoopInterval_ = 0;
      onChanged();
      return this;
    }

    private int maxNoopInterval_ ;
    /**
     * optional uint32 maxNoopInterval = 4;
     * @return Whether the maxNoopInterval field is set.
     */
    @java.lang.Override
    public boolean hasMaxNoopInterval() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional uint32 maxNoopInterval = 4;
     * @return The maxNoopInterval.
     */
    @java.lang.Override
    public int getMaxNoopInterval() {
      return maxNoopInterval_;
    }
    /**
     * optional uint32 maxNoopInterval = 4;
     * @param value The maxNoopInterval to set.
     * @return This builder for chaining.
     */
    public Builder setMaxNoopInterval(int value) {
      bitField0_ |= 0x00000008;
      maxNoopInterval_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 maxNoopInterval = 4;
     * @return This builder for chaining.
     */
    public Builder clearMaxNoopInterval() {
      bitField0_ = (bitField0_ & ~0x00000008);
      maxNoopInterval_ = 0;
      onChanged();
      return this;
    }

    private int typingInterval_ ;
    /**
     * optional int32 typingInterval = 5;
     * @return Whether the typingInterval field is set.
     */
    @java.lang.Override
    public boolean hasTypingInterval() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional int32 typingInterval = 5;
     * @return The typingInterval.
     */
    @java.lang.Override
    public int getTypingInterval() {
      return typingInterval_;
    }
    /**
     * optional int32 typingInterval = 5;
     * @param value The typingInterval to set.
     * @return This builder for chaining.
     */
    public Builder setTypingInterval(int value) {
      bitField0_ |= 0x00000010;
      typingInterval_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 typingInterval = 5;
     * @return This builder for chaining.
     */
    public Builder clearTypingInterval() {
      bitField0_ = (bitField0_ & ~0x00000010);
      typingInterval_ = 0;
      onChanged();
      return this;
    }

    private int noopIntervalTime_ ;
    /**
     * optional int32 noopIntervalTime = 7;
     * @return Whether the noopIntervalTime field is set.
     */
    @java.lang.Override
    public boolean hasNoopIntervalTime() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional int32 noopIntervalTime = 7;
     * @return The noopIntervalTime.
     */
    @java.lang.Override
    public int getNoopIntervalTime() {
      return noopIntervalTime_;
    }
    /**
     * optional int32 noopIntervalTime = 7;
     * @param value The noopIntervalTime to set.
     * @return This builder for chaining.
     */
    public Builder setNoopIntervalTime(int value) {
      bitField0_ |= 0x00000020;
      noopIntervalTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 noopIntervalTime = 7;
     * @return This builder for chaining.
     */
    public Builder clearNoopIntervalTime() {
      bitField0_ = (bitField0_ & ~0x00000020);
      noopIntervalTime_ = 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.NetworkControl)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy