Package s2.v1alpha

Interface AccessTokenInfoOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AccessTokenInfo, AccessTokenInfo.Builder

    public interface AccessTokenInfoOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean getAutoPrefixStreams()
      Namespace streams based on the configured stream-level scope, which must be a prefix.
      int getExpiresAt()
      Expiration time in seconds since Unix epoch.
      java.lang.String getId()
      Access token ID.
      com.google.protobuf.ByteString getIdBytes()
      Access token ID.
      AccessTokenScope getScope()
      Access token scope.
      AccessTokenScopeOrBuilder getScopeOrBuilder()
      Access token scope.
      boolean hasExpiresAt()
      Expiration time in seconds since Unix epoch.
      boolean hasScope()
      Access token scope.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getId

        java.lang.String getId()
         Access token ID.
         It must be unique to the account and between 1 and 96 characters.
         
        string id = 1;
        Returns:
        The id.
      • getIdBytes

        com.google.protobuf.ByteString getIdBytes()
         Access token ID.
         It must be unique to the account and between 1 and 96 characters.
         
        string id = 1;
        Returns:
        The bytes for id.
      • hasExpiresAt

        boolean hasExpiresAt()
         Expiration time in seconds since Unix epoch.
         If not set, the expiration will be set to that of the requestor's token.
         
        optional uint32 expires_at = 2;
        Returns:
        Whether the expiresAt field is set.
      • getExpiresAt

        int getExpiresAt()
         Expiration time in seconds since Unix epoch.
         If not set, the expiration will be set to that of the requestor's token.
         
        optional uint32 expires_at = 2;
        Returns:
        The expiresAt.
      • getAutoPrefixStreams

        boolean getAutoPrefixStreams()
         Namespace streams based on the configured stream-level scope, which must be a prefix.
         Stream name arguments will be automatically prefixed, and the prefix will be stripped
         when listing streams.
         
        bool auto_prefix_streams = 3;
        Returns:
        The autoPrefixStreams.
      • hasScope

        boolean hasScope()
         Access token scope.
         
        .s2.v1alpha.AccessTokenScope scope = 4;
        Returns:
        Whether the scope field is set.
      • getScope

        AccessTokenScope getScope()
         Access token scope.
         
        .s2.v1alpha.AccessTokenScope scope = 4;
        Returns:
        The scope.
      • getScopeOrBuilder

        AccessTokenScopeOrBuilder getScopeOrBuilder()
         Access token scope.
         
        .s2.v1alpha.AccessTokenScope scope = 4;