Package s2.v1alpha
Class AccessTokenInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
- s2.v1alpha.AccessTokenInfo.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,AccessTokenInfoOrBuilder
- Enclosing class:
- AccessTokenInfo
public static final class AccessTokenInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder> implements AccessTokenInfoOrBuilder
Access token information.
Protobuf types2.v1alpha.AccessTokenInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTokenInfobuild()AccessTokenInfobuildPartial()AccessTokenInfo.Builderclear()AccessTokenInfo.BuilderclearAutoPrefixStreams()Namespace streams based on the configured stream-level scope, which must be a prefix.AccessTokenInfo.BuilderclearExpiresAt()Expiration time in seconds since Unix epoch.AccessTokenInfo.BuilderclearId()Access token ID.AccessTokenInfo.BuilderclearScope()Access token scope.booleangetAutoPrefixStreams()Namespace streams based on the configured stream-level scope, which must be a prefix.AccessTokenInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.AccessTokenScope.BuildergetScopeBuilder()Access token scope.AccessTokenScopeOrBuildergetScopeOrBuilder()Access token scope.booleanhasExpiresAt()Expiration time in seconds since Unix epoch.booleanhasScope()Access token scope.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AccessTokenInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AccessTokenInfo.BuildermergeFrom(com.google.protobuf.Message other)AccessTokenInfo.BuildermergeFrom(AccessTokenInfo other)AccessTokenInfo.BuildermergeScope(AccessTokenScope value)Access token scope.AccessTokenInfo.BuildersetAutoPrefixStreams(boolean value)Namespace streams based on the configured stream-level scope, which must be a prefix.AccessTokenInfo.BuildersetExpiresAt(int value)Expiration time in seconds since Unix epoch.AccessTokenInfo.BuildersetId(java.lang.String value)Access token ID.AccessTokenInfo.BuildersetIdBytes(com.google.protobuf.ByteString value)Access token ID.AccessTokenInfo.BuildersetScope(AccessTokenScope value)Access token scope.AccessTokenInfo.BuildersetScope(AccessTokenScope.Builder builderForValue)Access token scope.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
clear
public AccessTokenInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
getDefaultInstanceForType
public AccessTokenInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AccessTokenInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AccessTokenInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AccessTokenInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AccessTokenInfo.Builder>
-
mergeFrom
public AccessTokenInfo.Builder mergeFrom(AccessTokenInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
mergeFrom
public AccessTokenInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AccessTokenInfo.Builder>- Throws:
java.io.IOException
-
getId
public java.lang.String getId()
Access token ID. It must be unique to the account and between 1 and 96 characters.
string id = 1;- Specified by:
getIdin interfaceAccessTokenInfoOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Access token ID. It must be unique to the account and between 1 and 96 characters.
string id = 1;- Specified by:
getIdBytesin interfaceAccessTokenInfoOrBuilder- Returns:
- The bytes for id.
-
setId
public AccessTokenInfo.Builder setId(java.lang.String value)
Access token ID. It must be unique to the account and between 1 and 96 characters.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public AccessTokenInfo.Builder clearId()
Access token ID. It must be unique to the account and between 1 and 96 characters.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public AccessTokenInfo.Builder setIdBytes(com.google.protobuf.ByteString value)
Access token ID. It must be unique to the account and between 1 and 96 characters.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasExpiresAt
public 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;- Specified by:
hasExpiresAtin interfaceAccessTokenInfoOrBuilder- Returns:
- Whether the expiresAt field is set.
-
getExpiresAt
public 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;- Specified by:
getExpiresAtin interfaceAccessTokenInfoOrBuilder- Returns:
- The expiresAt.
-
setExpiresAt
public AccessTokenInfo.Builder setExpiresAt(int value)
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;- Parameters:
value- The expiresAt to set.- Returns:
- This builder for chaining.
-
clearExpiresAt
public AccessTokenInfo.Builder clearExpiresAt()
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:
- This builder for chaining.
-
getAutoPrefixStreams
public 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;- Specified by:
getAutoPrefixStreamsin interfaceAccessTokenInfoOrBuilder- Returns:
- The autoPrefixStreams.
-
setAutoPrefixStreams
public AccessTokenInfo.Builder setAutoPrefixStreams(boolean value)
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;- Parameters:
value- The autoPrefixStreams to set.- Returns:
- This builder for chaining.
-
clearAutoPrefixStreams
public AccessTokenInfo.Builder clearAutoPrefixStreams()
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:
- This builder for chaining.
-
hasScope
public boolean hasScope()
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;- Specified by:
hasScopein interfaceAccessTokenInfoOrBuilder- Returns:
- Whether the scope field is set.
-
getScope
public AccessTokenScope getScope()
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;- Specified by:
getScopein interfaceAccessTokenInfoOrBuilder- Returns:
- The scope.
-
setScope
public AccessTokenInfo.Builder setScope(AccessTokenScope value)
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;
-
setScope
public AccessTokenInfo.Builder setScope(AccessTokenScope.Builder builderForValue)
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;
-
mergeScope
public AccessTokenInfo.Builder mergeScope(AccessTokenScope value)
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;
-
clearScope
public AccessTokenInfo.Builder clearScope()
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;
-
getScopeBuilder
public AccessTokenScope.Builder getScopeBuilder()
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;
-
getScopeOrBuilder
public AccessTokenScopeOrBuilder getScopeOrBuilder()
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;- Specified by:
getScopeOrBuilderin interfaceAccessTokenInfoOrBuilder
-
-