// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: gateway.proto

package com.ywt.gapi.gateway;

/**
 * Protobuf type {@code com.ywt.gapi.gateway.IssueJWTRequest}
 */
public  final class IssueJWTRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.gateway.IssueJWTRequest)
    IssueJWTRequestOrBuilder {
  // Use IssueJWTRequest.newBuilder() to construct.
  private IssueJWTRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private IssueJWTRequest() {
    appid_ = "";
    authData_ = "";
    expire_ = 0;
  }

  @Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private IssueJWTRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            String s = input.readStringRequireUtf8();

            appid_ = s;
            break;
          }
          case 18: {
            String s = input.readStringRequireUtf8();

            authData_ = s;
            break;
          }
          case 24: {

            expire_ = input.readInt32();
            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 {
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Gateway.internal_static_com_ywt_gapi_gateway_IssueJWTRequest_descriptor;
  }

  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Gateway.internal_static_com_ywt_gapi_gateway_IssueJWTRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            IssueJWTRequest.class, Builder.class);
  }

  public static final int APPID_FIELD_NUMBER = 1;
  private volatile Object appid_;
  /**
   * <code>string appid = 1;</code>
   */
  public String getAppid() {
    Object ref = appid_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      appid_ = s;
      return s;
    }
  }
  /**
   * <code>string appid = 1;</code>
   */
  public com.google.protobuf.ByteString
      getAppidBytes() {
    Object ref = appid_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      appid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AUTHDATA_FIELD_NUMBER = 2;
  private volatile Object authData_;
  /**
   * <code>string authData = 2;</code>
   */
  public String getAuthData() {
    Object ref = authData_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      authData_ = s;
      return s;
    }
  }
  /**
   * <code>string authData = 2;</code>
   */
  public com.google.protobuf.ByteString
      getAuthDataBytes() {
    Object ref = authData_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      authData_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int EXPIRE_FIELD_NUMBER = 3;
  private int expire_;
  /**
   * <pre>
   *多少秒后过期，0 则永不过期
   * </pre>
   *
   * <code>int32 expire = 3;</code>
   */
  public int getExpire() {
    return expire_;
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getAppidBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appid_);
    }
    if (!getAuthDataBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authData_);
    }
    if (expire_ != 0) {
      output.writeInt32(3, expire_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getAppidBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appid_);
    }
    if (!getAuthDataBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authData_);
    }
    if (expire_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, expire_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof IssueJWTRequest)) {
      return super.equals(obj);
    }
    IssueJWTRequest other = (IssueJWTRequest) obj;

    boolean result = true;
    result = result && getAppid()
        .equals(other.getAppid());
    result = result && getAuthData()
        .equals(other.getAuthData());
    result = result && (getExpire()
        == other.getExpire());
    return result;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + APPID_FIELD_NUMBER;
    hash = (53 * hash) + getAppid().hashCode();
    hash = (37 * hash) + AUTHDATA_FIELD_NUMBER;
    hash = (53 * hash) + getAuthData().hashCode();
    hash = (37 * hash) + EXPIRE_FIELD_NUMBER;
    hash = (53 * hash) + getExpire();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static IssueJWTRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static IssueJWTRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static IssueJWTRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static IssueJWTRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static IssueJWTRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static IssueJWTRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static IssueJWTRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static IssueJWTRequest 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 IssueJWTRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static IssueJWTRequest 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 IssueJWTRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static IssueJWTRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(IssueJWTRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code com.ywt.gapi.gateway.IssueJWTRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.gateway.IssueJWTRequest)
      IssueJWTRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Gateway.internal_static_com_ywt_gapi_gateway_IssueJWTRequest_descriptor;
    }

    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Gateway.internal_static_com_ywt_gapi_gateway_IssueJWTRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              IssueJWTRequest.class, Builder.class);
    }

    // Construct using com.ywt.gapi.gateway.IssueJWTRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      appid_ = "";

      authData_ = "";

      expire_ = 0;

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Gateway.internal_static_com_ywt_gapi_gateway_IssueJWTRequest_descriptor;
    }

    public IssueJWTRequest getDefaultInstanceForType() {
      return IssueJWTRequest.getDefaultInstance();
    }

    public IssueJWTRequest build() {
      IssueJWTRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public IssueJWTRequest buildPartial() {
      IssueJWTRequest result = new IssueJWTRequest(this);
      result.appid_ = appid_;
      result.authData_ = authData_;
      result.expire_ = expire_;
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(IssueJWTRequest other) {
      if (other == IssueJWTRequest.getDefaultInstance()) return this;
      if (!other.getAppid().isEmpty()) {
        appid_ = other.appid_;
        onChanged();
      }
      if (!other.getAuthData().isEmpty()) {
        authData_ = other.authData_;
        onChanged();
      }
      if (other.getExpire() != 0) {
        setExpire(other.getExpire());
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

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

    private Object appid_ = "";
    /**
     * <code>string appid = 1;</code>
     */
    public String getAppid() {
      Object ref = appid_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        appid_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string appid = 1;</code>
     */
    public com.google.protobuf.ByteString
        getAppidBytes() {
      Object ref = appid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        appid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string appid = 1;</code>
     */
    public Builder setAppid(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      appid_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string appid = 1;</code>
     */
    public Builder clearAppid() {
      
      appid_ = getDefaultInstance().getAppid();
      onChanged();
      return this;
    }
    /**
     * <code>string appid = 1;</code>
     */
    public Builder setAppidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      appid_ = value;
      onChanged();
      return this;
    }

    private Object authData_ = "";
    /**
     * <code>string authData = 2;</code>
     */
    public String getAuthData() {
      Object ref = authData_;
      if (!(ref instanceof String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        String s = bs.toStringUtf8();
        authData_ = s;
        return s;
      } else {
        return (String) ref;
      }
    }
    /**
     * <code>string authData = 2;</code>
     */
    public com.google.protobuf.ByteString
        getAuthDataBytes() {
      Object ref = authData_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (String) ref);
        authData_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string authData = 2;</code>
     */
    public Builder setAuthData(
        String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      authData_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string authData = 2;</code>
     */
    public Builder clearAuthData() {
      
      authData_ = getDefaultInstance().getAuthData();
      onChanged();
      return this;
    }
    /**
     * <code>string authData = 2;</code>
     */
    public Builder setAuthDataBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      authData_ = value;
      onChanged();
      return this;
    }

    private int expire_ ;
    /**
     * <pre>
     *多少秒后过期，0 则永不过期
     * </pre>
     *
     * <code>int32 expire = 3;</code>
     */
    public int getExpire() {
      return expire_;
    }
    /**
     * <pre>
     *多少秒后过期，0 则永不过期
     * </pre>
     *
     * <code>int32 expire = 3;</code>
     */
    public Builder setExpire(int value) {
      
      expire_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *多少秒后过期，0 则永不过期
     * </pre>
     *
     * <code>int32 expire = 3;</code>
     */
    public Builder clearExpire() {
      
      expire_ = 0;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.gateway.IssueJWTRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.gateway.IssueJWTRequest)
  private static final IssueJWTRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new IssueJWTRequest();
  }

  public static IssueJWTRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<IssueJWTRequest>
      PARSER = new com.google.protobuf.AbstractParser<IssueJWTRequest>() {
    public IssueJWTRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return new IssueJWTRequest(input, extensionRegistry);
    }
  };

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

  @Override
  public com.google.protobuf.Parser<IssueJWTRequest> getParserForType() {
    return PARSER;
  }

  public IssueJWTRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

