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 booleangetAutoPrefixStreams()Namespace streams based on the configured stream-level scope, which must be a prefix.intgetExpiresAt()Expiration time in seconds since Unix epoch.java.lang.StringgetId()Access token ID.com.google.protobuf.ByteStringgetIdBytes()Access token ID.AccessTokenScopegetScope()Access token scope.AccessTokenScopeOrBuildergetScopeOrBuilder()Access token scope.booleanhasExpiresAt()Expiration time in seconds since Unix epoch.booleanhasScope()Access token scope.-
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;
-
-