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 AccessTokenInfo
build()
AccessTokenInfo
buildPartial()
AccessTokenInfo.Builder
clear()
AccessTokenInfo.Builder
clearAutoPrefixStreams()
Namespace streams based on the configured stream-level scope, which must be a prefix.AccessTokenInfo.Builder
clearExpiresAt()
Expiration time in seconds since Unix epoch.AccessTokenInfo.Builder
clearId()
Access token ID.AccessTokenInfo.Builder
clearScope()
Access token scope.boolean
getAutoPrefixStreams()
Namespace streams based on the configured stream-level scope, which must be a prefix.AccessTokenInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.AccessTokenScope.Builder
getScopeBuilder()
Access token scope.AccessTokenScopeOrBuilder
getScopeOrBuilder()
Access token scope.boolean
hasExpiresAt()
Expiration time in seconds since Unix epoch.boolean
hasScope()
Access token scope.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AccessTokenInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AccessTokenInfo.Builder
mergeFrom(com.google.protobuf.Message other)
AccessTokenInfo.Builder
mergeFrom(AccessTokenInfo other)
AccessTokenInfo.Builder
mergeScope(AccessTokenScope value)
Access token scope.AccessTokenInfo.Builder
setAutoPrefixStreams(boolean value)
Namespace streams based on the configured stream-level scope, which must be a prefix.AccessTokenInfo.Builder
setExpiresAt(int value)
Expiration time in seconds since Unix epoch.AccessTokenInfo.Builder
setId(java.lang.String value)
Access token ID.AccessTokenInfo.Builder
setIdBytes(com.google.protobuf.ByteString value)
Access token ID.AccessTokenInfo.Builder
setScope(AccessTokenScope value)
Access token scope.AccessTokenInfo.Builder
setScope(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
clear
public AccessTokenInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
-
getDefaultInstanceForType
public AccessTokenInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AccessTokenInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AccessTokenInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AccessTokenInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AccessTokenInfo.Builder>
-
mergeFrom
public AccessTokenInfo.Builder mergeFrom(AccessTokenInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getId
in 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:
getIdBytes
in 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:
hasExpiresAt
in 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:
getExpiresAt
in 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:
getAutoPrefixStreams
in 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:
hasScope
in interfaceAccessTokenInfoOrBuilder
- Returns:
- Whether the scope field is set.
-
getScope
public AccessTokenScope getScope()
Access token scope.
.s2.v1alpha.AccessTokenScope scope = 4;
- Specified by:
getScope
in 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:
getScopeOrBuilder
in interfaceAccessTokenInfoOrBuilder
-
-