Package s2.v1alpha

Class 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 type s2.v1alpha.AccessTokenInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
      • clear

        public AccessTokenInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AccessTokenInfo.Builder>
      • getDefaultInstanceForType

        public AccessTokenInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AccessTokenInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AccessTokenInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public AccessTokenInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AccessTokenInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface AccessTokenInfoOrBuilder
        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 interface AccessTokenInfoOrBuilder
        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 interface AccessTokenInfoOrBuilder
        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 interface AccessTokenInfoOrBuilder
        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 interface AccessTokenInfoOrBuilder
        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 interface AccessTokenInfoOrBuilder
        Returns:
        Whether the scope field is set.
      • 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;