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

apsara.odps.cupid.protocol.StsTokenInfoProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ststokeninfoparam.proto

package apsara.odps.cupid.protocol;

public final class StsTokenInfoProtos {
  private StsTokenInfoProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface GenerateStsTokenReqOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string instanceId = 1;
    /**
     * optional string instanceId = 1;
     */
    boolean hasInstanceId();
    /**
     * optional string instanceId = 1;
     */
    java.lang.String getInstanceId();
    /**
     * optional string instanceId = 1;
     */
    com.google.protobuf.ByteString
        getInstanceIdBytes();

    // optional string roleArn = 2;
    /**
     * optional string roleArn = 2;
     */
    boolean hasRoleArn();
    /**
     * optional string roleArn = 2;
     */
    java.lang.String getRoleArn();
    /**
     * optional string roleArn = 2;
     */
    com.google.protobuf.ByteString
        getRoleArnBytes();

    // optional string stsTokenType = 3;
    /**
     * optional string stsTokenType = 3;
     */
    boolean hasStsTokenType();
    /**
     * optional string stsTokenType = 3;
     */
    java.lang.String getStsTokenType();
    /**
     * optional string stsTokenType = 3;
     */
    com.google.protobuf.ByteString
        getStsTokenTypeBytes();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.GenerateStsTokenReq}
   */
  public static final class GenerateStsTokenReq extends
      com.google.protobuf.GeneratedMessage
      implements GenerateStsTokenReqOrBuilder {
    // Use GenerateStsTokenReq.newBuilder() to construct.
    private GenerateStsTokenReq(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GenerateStsTokenReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GenerateStsTokenReq defaultInstance;
    public static GenerateStsTokenReq getDefaultInstance() {
      return defaultInstance;
    }

    public GenerateStsTokenReq getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GenerateStsTokenReq(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              instanceId_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              roleArn_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              stsTokenType_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.class, apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.Builder.class);
    }

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

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // optional string instanceId = 1;
    public static final int INSTANCEID_FIELD_NUMBER = 1;
    private java.lang.Object instanceId_;
    /**
     * optional string instanceId = 1;
     */
    public boolean hasInstanceId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string instanceId = 1;
     */
    public java.lang.String getInstanceId() {
      java.lang.Object ref = instanceId_;
      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()) {
          instanceId_ = s;
        }
        return s;
      }
    }
    /**
     * optional string instanceId = 1;
     */
    public com.google.protobuf.ByteString
        getInstanceIdBytes() {
      java.lang.Object ref = instanceId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        instanceId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string roleArn = 2;
    public static final int ROLEARN_FIELD_NUMBER = 2;
    private java.lang.Object roleArn_;
    /**
     * optional string roleArn = 2;
     */
    public boolean hasRoleArn() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string roleArn = 2;
     */
    public java.lang.String getRoleArn() {
      java.lang.Object ref = roleArn_;
      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()) {
          roleArn_ = s;
        }
        return s;
      }
    }
    /**
     * optional string roleArn = 2;
     */
    public com.google.protobuf.ByteString
        getRoleArnBytes() {
      java.lang.Object ref = roleArn_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        roleArn_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string stsTokenType = 3;
    public static final int STSTOKENTYPE_FIELD_NUMBER = 3;
    private java.lang.Object stsTokenType_;
    /**
     * optional string stsTokenType = 3;
     */
    public boolean hasStsTokenType() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string stsTokenType = 3;
     */
    public java.lang.String getStsTokenType() {
      java.lang.Object ref = stsTokenType_;
      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()) {
          stsTokenType_ = s;
        }
        return s;
      }
    }
    /**
     * optional string stsTokenType = 3;
     */
    public com.google.protobuf.ByteString
        getStsTokenTypeBytes() {
      java.lang.Object ref = stsTokenType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        stsTokenType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      instanceId_ = "";
      roleArn_ = "";
      stsTokenType_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getInstanceIdBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getRoleArnBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getStsTokenTypeBytes());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getInstanceIdBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getRoleArnBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getStsTokenTypeBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code apsara.odps.cupid.protocol.GenerateStsTokenReq}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReqOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.class, apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        instanceId_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        roleArn_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        stsTokenType_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_descriptor;
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq build() {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq buildPartial() {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq result = new apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.instanceId_ = instanceId_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.roleArn_ = roleArn_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.stsTokenType_ = stsTokenType_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq) {
          return mergeFrom((apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq other) {
        if (other == apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq.getDefaultInstance()) return this;
        if (other.hasInstanceId()) {
          bitField0_ |= 0x00000001;
          instanceId_ = other.instanceId_;
          onChanged();
        }
        if (other.hasRoleArn()) {
          bitField0_ |= 0x00000002;
          roleArn_ = other.roleArn_;
          onChanged();
        }
        if (other.hasStsTokenType()) {
          bitField0_ |= 0x00000004;
          stsTokenType_ = other.stsTokenType_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.StsTokenInfoProtos.GenerateStsTokenReq) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string instanceId = 1;
      private java.lang.Object instanceId_ = "";
      /**
       * optional string instanceId = 1;
       */
      public boolean hasInstanceId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string instanceId = 1;
       */
      public java.lang.String getInstanceId() {
        java.lang.Object ref = instanceId_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          instanceId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string instanceId = 1;
       */
      public com.google.protobuf.ByteString
          getInstanceIdBytes() {
        java.lang.Object ref = instanceId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          instanceId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string instanceId = 1;
       */
      public Builder setInstanceId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        instanceId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string instanceId = 1;
       */
      public Builder clearInstanceId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        instanceId_ = getDefaultInstance().getInstanceId();
        onChanged();
        return this;
      }
      /**
       * optional string instanceId = 1;
       */
      public Builder setInstanceIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        instanceId_ = value;
        onChanged();
        return this;
      }

      // optional string roleArn = 2;
      private java.lang.Object roleArn_ = "";
      /**
       * optional string roleArn = 2;
       */
      public boolean hasRoleArn() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string roleArn = 2;
       */
      public java.lang.String getRoleArn() {
        java.lang.Object ref = roleArn_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          roleArn_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string roleArn = 2;
       */
      public com.google.protobuf.ByteString
          getRoleArnBytes() {
        java.lang.Object ref = roleArn_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          roleArn_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string roleArn = 2;
       */
      public Builder setRoleArn(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        roleArn_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string roleArn = 2;
       */
      public Builder clearRoleArn() {
        bitField0_ = (bitField0_ & ~0x00000002);
        roleArn_ = getDefaultInstance().getRoleArn();
        onChanged();
        return this;
      }
      /**
       * optional string roleArn = 2;
       */
      public Builder setRoleArnBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        roleArn_ = value;
        onChanged();
        return this;
      }

      // optional string stsTokenType = 3;
      private java.lang.Object stsTokenType_ = "";
      /**
       * optional string stsTokenType = 3;
       */
      public boolean hasStsTokenType() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string stsTokenType = 3;
       */
      public java.lang.String getStsTokenType() {
        java.lang.Object ref = stsTokenType_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          stsTokenType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string stsTokenType = 3;
       */
      public com.google.protobuf.ByteString
          getStsTokenTypeBytes() {
        java.lang.Object ref = stsTokenType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          stsTokenType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string stsTokenType = 3;
       */
      public Builder setStsTokenType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        stsTokenType_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string stsTokenType = 3;
       */
      public Builder clearStsTokenType() {
        bitField0_ = (bitField0_ & ~0x00000004);
        stsTokenType_ = getDefaultInstance().getStsTokenType();
        onChanged();
        return this;
      }
      /**
       * optional string stsTokenType = 3;
       */
      public Builder setStsTokenTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        stsTokenType_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.GenerateStsTokenReq)
    }

    static {
      defaultInstance = new GenerateStsTokenReq(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.GenerateStsTokenReq)
  }

  public interface GetStsTokenReqOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string roleArn = 1;
    /**
     * optional string roleArn = 1;
     */
    boolean hasRoleArn();
    /**
     * optional string roleArn = 1;
     */
    java.lang.String getRoleArn();
    /**
     * optional string roleArn = 1;
     */
    com.google.protobuf.ByteString
        getRoleArnBytes();

    // optional string stsTokenType = 2;
    /**
     * optional string stsTokenType = 2;
     */
    boolean hasStsTokenType();
    /**
     * optional string stsTokenType = 2;
     */
    java.lang.String getStsTokenType();
    /**
     * optional string stsTokenType = 2;
     */
    com.google.protobuf.ByteString
        getStsTokenTypeBytes();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.GetStsTokenReq}
   */
  public static final class GetStsTokenReq extends
      com.google.protobuf.GeneratedMessage
      implements GetStsTokenReqOrBuilder {
    // Use GetStsTokenReq.newBuilder() to construct.
    private GetStsTokenReq(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GetStsTokenReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GetStsTokenReq defaultInstance;
    public static GetStsTokenReq getDefaultInstance() {
      return defaultInstance;
    }

    public GetStsTokenReq getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GetStsTokenReq(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              roleArn_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              stsTokenType_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.class, apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.Builder.class);
    }

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

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // optional string roleArn = 1;
    public static final int ROLEARN_FIELD_NUMBER = 1;
    private java.lang.Object roleArn_;
    /**
     * optional string roleArn = 1;
     */
    public boolean hasRoleArn() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string roleArn = 1;
     */
    public java.lang.String getRoleArn() {
      java.lang.Object ref = roleArn_;
      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()) {
          roleArn_ = s;
        }
        return s;
      }
    }
    /**
     * optional string roleArn = 1;
     */
    public com.google.protobuf.ByteString
        getRoleArnBytes() {
      java.lang.Object ref = roleArn_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        roleArn_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string stsTokenType = 2;
    public static final int STSTOKENTYPE_FIELD_NUMBER = 2;
    private java.lang.Object stsTokenType_;
    /**
     * optional string stsTokenType = 2;
     */
    public boolean hasStsTokenType() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string stsTokenType = 2;
     */
    public java.lang.String getStsTokenType() {
      java.lang.Object ref = stsTokenType_;
      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()) {
          stsTokenType_ = s;
        }
        return s;
      }
    }
    /**
     * optional string stsTokenType = 2;
     */
    public com.google.protobuf.ByteString
        getStsTokenTypeBytes() {
      java.lang.Object ref = stsTokenType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        stsTokenType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      roleArn_ = "";
      stsTokenType_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getRoleArnBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getStsTokenTypeBytes());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getRoleArnBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getStsTokenTypeBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code apsara.odps.cupid.protocol.GetStsTokenReq}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReqOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.class, apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        roleArn_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        stsTokenType_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_descriptor;
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq build() {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq buildPartial() {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq result = new apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.roleArn_ = roleArn_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.stsTokenType_ = stsTokenType_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq) {
          return mergeFrom((apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq other) {
        if (other == apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq.getDefaultInstance()) return this;
        if (other.hasRoleArn()) {
          bitField0_ |= 0x00000001;
          roleArn_ = other.roleArn_;
          onChanged();
        }
        if (other.hasStsTokenType()) {
          bitField0_ |= 0x00000002;
          stsTokenType_ = other.stsTokenType_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenReq) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string roleArn = 1;
      private java.lang.Object roleArn_ = "";
      /**
       * optional string roleArn = 1;
       */
      public boolean hasRoleArn() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string roleArn = 1;
       */
      public java.lang.String getRoleArn() {
        java.lang.Object ref = roleArn_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          roleArn_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string roleArn = 1;
       */
      public com.google.protobuf.ByteString
          getRoleArnBytes() {
        java.lang.Object ref = roleArn_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          roleArn_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string roleArn = 1;
       */
      public Builder setRoleArn(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        roleArn_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string roleArn = 1;
       */
      public Builder clearRoleArn() {
        bitField0_ = (bitField0_ & ~0x00000001);
        roleArn_ = getDefaultInstance().getRoleArn();
        onChanged();
        return this;
      }
      /**
       * optional string roleArn = 1;
       */
      public Builder setRoleArnBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        roleArn_ = value;
        onChanged();
        return this;
      }

      // optional string stsTokenType = 2;
      private java.lang.Object stsTokenType_ = "";
      /**
       * optional string stsTokenType = 2;
       */
      public boolean hasStsTokenType() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string stsTokenType = 2;
       */
      public java.lang.String getStsTokenType() {
        java.lang.Object ref = stsTokenType_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          stsTokenType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string stsTokenType = 2;
       */
      public com.google.protobuf.ByteString
          getStsTokenTypeBytes() {
        java.lang.Object ref = stsTokenType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          stsTokenType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string stsTokenType = 2;
       */
      public Builder setStsTokenType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        stsTokenType_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string stsTokenType = 2;
       */
      public Builder clearStsTokenType() {
        bitField0_ = (bitField0_ & ~0x00000002);
        stsTokenType_ = getDefaultInstance().getStsTokenType();
        onChanged();
        return this;
      }
      /**
       * optional string stsTokenType = 2;
       */
      public Builder setStsTokenTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        stsTokenType_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.GetStsTokenReq)
    }

    static {
      defaultInstance = new GetStsTokenReq(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.GetStsTokenReq)
  }

  public interface GetStsTokenResOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string akId = 1;
    /**
     * optional string akId = 1;
     */
    boolean hasAkId();
    /**
     * optional string akId = 1;
     */
    java.lang.String getAkId();
    /**
     * optional string akId = 1;
     */
    com.google.protobuf.ByteString
        getAkIdBytes();

    // optional string akSecret = 2;
    /**
     * optional string akSecret = 2;
     */
    boolean hasAkSecret();
    /**
     * optional string akSecret = 2;
     */
    java.lang.String getAkSecret();
    /**
     * optional string akSecret = 2;
     */
    com.google.protobuf.ByteString
        getAkSecretBytes();

    // optional string expirationTime = 3;
    /**
     * optional string expirationTime = 3;
     */
    boolean hasExpirationTime();
    /**
     * optional string expirationTime = 3;
     */
    java.lang.String getExpirationTime();
    /**
     * optional string expirationTime = 3;
     */
    com.google.protobuf.ByteString
        getExpirationTimeBytes();

    // optional string token = 4;
    /**
     * optional string token = 4;
     */
    boolean hasToken();
    /**
     * optional string token = 4;
     */
    java.lang.String getToken();
    /**
     * optional string token = 4;
     */
    com.google.protobuf.ByteString
        getTokenBytes();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.GetStsTokenRes}
   */
  public static final class GetStsTokenRes extends
      com.google.protobuf.GeneratedMessage
      implements GetStsTokenResOrBuilder {
    // Use GetStsTokenRes.newBuilder() to construct.
    private GetStsTokenRes(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GetStsTokenRes(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GetStsTokenRes defaultInstance;
    public static GetStsTokenRes getDefaultInstance() {
      return defaultInstance;
    }

    public GetStsTokenRes getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GetStsTokenRes(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              akId_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              akSecret_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              expirationTime_ = input.readBytes();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              token_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.class, apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.Builder.class);
    }

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

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // optional string akId = 1;
    public static final int AKID_FIELD_NUMBER = 1;
    private java.lang.Object akId_;
    /**
     * optional string akId = 1;
     */
    public boolean hasAkId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string akId = 1;
     */
    public java.lang.String getAkId() {
      java.lang.Object ref = akId_;
      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()) {
          akId_ = s;
        }
        return s;
      }
    }
    /**
     * optional string akId = 1;
     */
    public com.google.protobuf.ByteString
        getAkIdBytes() {
      java.lang.Object ref = akId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        akId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string akSecret = 2;
    public static final int AKSECRET_FIELD_NUMBER = 2;
    private java.lang.Object akSecret_;
    /**
     * optional string akSecret = 2;
     */
    public boolean hasAkSecret() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string akSecret = 2;
     */
    public java.lang.String getAkSecret() {
      java.lang.Object ref = akSecret_;
      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()) {
          akSecret_ = s;
        }
        return s;
      }
    }
    /**
     * optional string akSecret = 2;
     */
    public com.google.protobuf.ByteString
        getAkSecretBytes() {
      java.lang.Object ref = akSecret_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        akSecret_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string expirationTime = 3;
    public static final int EXPIRATIONTIME_FIELD_NUMBER = 3;
    private java.lang.Object expirationTime_;
    /**
     * optional string expirationTime = 3;
     */
    public boolean hasExpirationTime() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string expirationTime = 3;
     */
    public java.lang.String getExpirationTime() {
      java.lang.Object ref = expirationTime_;
      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()) {
          expirationTime_ = s;
        }
        return s;
      }
    }
    /**
     * optional string expirationTime = 3;
     */
    public com.google.protobuf.ByteString
        getExpirationTimeBytes() {
      java.lang.Object ref = expirationTime_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        expirationTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string token = 4;
    public static final int TOKEN_FIELD_NUMBER = 4;
    private java.lang.Object token_;
    /**
     * optional string token = 4;
     */
    public boolean hasToken() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional string token = 4;
     */
    public java.lang.String getToken() {
      java.lang.Object ref = token_;
      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()) {
          token_ = s;
        }
        return s;
      }
    }
    /**
     * optional string token = 4;
     */
    public com.google.protobuf.ByteString
        getTokenBytes() {
      java.lang.Object ref = token_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        token_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      akId_ = "";
      akSecret_ = "";
      expirationTime_ = "";
      token_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getAkIdBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getAkSecretBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getExpirationTimeBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, getTokenBytes());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getAkIdBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getAkSecretBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getExpirationTimeBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getTokenBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code apsara.odps.cupid.protocol.GetStsTokenRes}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenResOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.class, apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        akId_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        akSecret_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        expirationTime_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        token_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_descriptor;
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes build() {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes buildPartial() {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes result = new apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.akId_ = akId_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.akSecret_ = akSecret_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.expirationTime_ = expirationTime_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.token_ = token_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes) {
          return mergeFrom((apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes other) {
        if (other == apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes.getDefaultInstance()) return this;
        if (other.hasAkId()) {
          bitField0_ |= 0x00000001;
          akId_ = other.akId_;
          onChanged();
        }
        if (other.hasAkSecret()) {
          bitField0_ |= 0x00000002;
          akSecret_ = other.akSecret_;
          onChanged();
        }
        if (other.hasExpirationTime()) {
          bitField0_ |= 0x00000004;
          expirationTime_ = other.expirationTime_;
          onChanged();
        }
        if (other.hasToken()) {
          bitField0_ |= 0x00000008;
          token_ = other.token_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.StsTokenInfoProtos.GetStsTokenRes) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string akId = 1;
      private java.lang.Object akId_ = "";
      /**
       * optional string akId = 1;
       */
      public boolean hasAkId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string akId = 1;
       */
      public java.lang.String getAkId() {
        java.lang.Object ref = akId_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          akId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string akId = 1;
       */
      public com.google.protobuf.ByteString
          getAkIdBytes() {
        java.lang.Object ref = akId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          akId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string akId = 1;
       */
      public Builder setAkId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        akId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string akId = 1;
       */
      public Builder clearAkId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        akId_ = getDefaultInstance().getAkId();
        onChanged();
        return this;
      }
      /**
       * optional string akId = 1;
       */
      public Builder setAkIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        akId_ = value;
        onChanged();
        return this;
      }

      // optional string akSecret = 2;
      private java.lang.Object akSecret_ = "";
      /**
       * optional string akSecret = 2;
       */
      public boolean hasAkSecret() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string akSecret = 2;
       */
      public java.lang.String getAkSecret() {
        java.lang.Object ref = akSecret_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          akSecret_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string akSecret = 2;
       */
      public com.google.protobuf.ByteString
          getAkSecretBytes() {
        java.lang.Object ref = akSecret_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          akSecret_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string akSecret = 2;
       */
      public Builder setAkSecret(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        akSecret_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string akSecret = 2;
       */
      public Builder clearAkSecret() {
        bitField0_ = (bitField0_ & ~0x00000002);
        akSecret_ = getDefaultInstance().getAkSecret();
        onChanged();
        return this;
      }
      /**
       * optional string akSecret = 2;
       */
      public Builder setAkSecretBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        akSecret_ = value;
        onChanged();
        return this;
      }

      // optional string expirationTime = 3;
      private java.lang.Object expirationTime_ = "";
      /**
       * optional string expirationTime = 3;
       */
      public boolean hasExpirationTime() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string expirationTime = 3;
       */
      public java.lang.String getExpirationTime() {
        java.lang.Object ref = expirationTime_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          expirationTime_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string expirationTime = 3;
       */
      public com.google.protobuf.ByteString
          getExpirationTimeBytes() {
        java.lang.Object ref = expirationTime_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          expirationTime_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string expirationTime = 3;
       */
      public Builder setExpirationTime(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        expirationTime_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string expirationTime = 3;
       */
      public Builder clearExpirationTime() {
        bitField0_ = (bitField0_ & ~0x00000004);
        expirationTime_ = getDefaultInstance().getExpirationTime();
        onChanged();
        return this;
      }
      /**
       * optional string expirationTime = 3;
       */
      public Builder setExpirationTimeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        expirationTime_ = value;
        onChanged();
        return this;
      }

      // optional string token = 4;
      private java.lang.Object token_ = "";
      /**
       * optional string token = 4;
       */
      public boolean hasToken() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional string token = 4;
       */
      public java.lang.String getToken() {
        java.lang.Object ref = token_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          token_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string token = 4;
       */
      public com.google.protobuf.ByteString
          getTokenBytes() {
        java.lang.Object ref = token_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          token_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string token = 4;
       */
      public Builder setToken(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        token_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string token = 4;
       */
      public Builder clearToken() {
        bitField0_ = (bitField0_ & ~0x00000008);
        token_ = getDefaultInstance().getToken();
        onChanged();
        return this;
      }
      /**
       * optional string token = 4;
       */
      public Builder setTokenBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        token_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.GetStsTokenRes)
    }

    static {
      defaultInstance = new GetStsTokenRes(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.GetStsTokenRes)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\027ststokeninfoparam.proto\022\032apsara.odps.c" +
      "upid.protocol\"P\n\023GenerateStsTokenReq\022\022\n\n" +
      "instanceId\030\001 \001(\t\022\017\n\007roleArn\030\002 \001(\t\022\024\n\014sts" +
      "TokenType\030\003 \001(\t\"7\n\016GetStsTokenReq\022\017\n\007rol" +
      "eArn\030\001 \001(\t\022\024\n\014stsTokenType\030\002 \001(\t\"W\n\016GetS" +
      "tsTokenRes\022\014\n\004akId\030\001 \001(\t\022\020\n\010akSecret\030\002 \001" +
      "(\t\022\026\n\016expirationTime\030\003 \001(\t\022\r\n\005token\030\004 \001(" +
      "\tB\024B\022StsTokenInfoProtos"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_apsara_odps_cupid_protocol_GenerateStsTokenReq_descriptor,
              new java.lang.String[] { "InstanceId", "RoleArn", "StsTokenType", });
          internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_apsara_odps_cupid_protocol_GetStsTokenReq_descriptor,
              new java.lang.String[] { "RoleArn", "StsTokenType", });
          internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_apsara_odps_cupid_protocol_GetStsTokenRes_descriptor,
              new java.lang.String[] { "AkId", "AkSecret", "ExpirationTime", "Token", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy