Class Token.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Token.Builder>
io.deephaven.proto.auth.Token.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TokenOrBuilder, Cloneable
Enclosing class:
Token

public static final class Token.Builder extends com.google.protobuf.GeneratedMessage.Builder<Token.Builder> implements TokenOrBuilder
 A token is a server-generated identifier for a client that allows the client to present themselves to other
 services using the token as a means of verifying identity and credentials; the other service can validate
 a token provided by a client with an authentication server to confirm the claimed identity and credentials.
 
Protobuf type io.deephaven.proto.auth.Token
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The ip address of the authentication server that produced the token.
    The service for which the token is intended.
    The actual token payload.
    The credentials for the token.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    The ip address of the authentication server that produced the token.
    The service for which the token is intended.
    com.google.protobuf.ByteString
    The service for which the token is intended.
    long
    The actual token payload.
    The credentials for the token.
    The credentials for the token.
    The credentials for the token.
    boolean
    The credentials for the token.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    The credentials for the token.
    setIpAddress(com.google.protobuf.ByteString value)
    The ip address of the authentication server that produced the token.
    The service for which the token is intended.
    setServiceBytes(com.google.protobuf.ByteString value)
    The service for which the token is intended.
    setTokenId(long value)
    The actual token payload.
    The credentials for the token.
    The credentials for the token.

    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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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<Token.Builder>
    • clear

      public Token.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<Token.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<Token.Builder>
    • getDefaultInstanceForType

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

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

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

      public Token.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<Token.Builder>
    • mergeFrom

      public Token.Builder mergeFrom(Token other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Token.Builder>
    • mergeFrom

      public Token.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<Token.Builder>
      Throws:
      IOException
    • getTokenId

      public long getTokenId()
       The actual token payload.
       
      fixed64 token_id = 1;
      Specified by:
      getTokenId in interface TokenOrBuilder
      Returns:
      The tokenId.
    • setTokenId

      public Token.Builder setTokenId(long value)
       The actual token payload.
       
      fixed64 token_id = 1;
      Parameters:
      value - The tokenId to set.
      Returns:
      This builder for chaining.
    • clearTokenId

      public Token.Builder clearTokenId()
       The actual token payload.
       
      fixed64 token_id = 1;
      Returns:
      This builder for chaining.
    • getService

      public String getService()
       The service for which the token is intended.
       
      string service = 2;
      Specified by:
      getService in interface TokenOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
       The service for which the token is intended.
       
      string service = 2;
      Specified by:
      getServiceBytes in interface TokenOrBuilder
      Returns:
      The bytes for service.
    • setService

      public Token.Builder setService(String value)
       The service for which the token is intended.
       
      string service = 2;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public Token.Builder clearService()
       The service for which the token is intended.
       
      string service = 2;
      Returns:
      This builder for chaining.
    • setServiceBytes

      public Token.Builder setServiceBytes(com.google.protobuf.ByteString value)
       The service for which the token is intended.
       
      string service = 2;
      Parameters:
      value - The bytes for service to set.
      Returns:
      This builder for chaining.
    • hasUserContext

      public boolean hasUserContext()
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
      Specified by:
      hasUserContext in interface TokenOrBuilder
      Returns:
      Whether the userContext field is set.
    • getUserContext

      public UserContext getUserContext()
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
      Specified by:
      getUserContext in interface TokenOrBuilder
      Returns:
      The userContext.
    • setUserContext

      public Token.Builder setUserContext(UserContext value)
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
    • setUserContext

      public Token.Builder setUserContext(UserContext.Builder builderForValue)
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
    • mergeUserContext

      public Token.Builder mergeUserContext(UserContext value)
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
    • clearUserContext

      public Token.Builder clearUserContext()
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
    • getUserContextBuilder

      public UserContext.Builder getUserContextBuilder()
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
    • getUserContextOrBuilder

      public UserContextOrBuilder getUserContextOrBuilder()
       The credentials for the token.
       
      .io.deephaven.proto.auth.UserContext user_context = 3;
      Specified by:
      getUserContextOrBuilder in interface TokenOrBuilder
    • getIpAddress

      public com.google.protobuf.ByteString getIpAddress()
       The ip address of the authentication server that produced the token.
       
      bytes ip_address = 4;
      Specified by:
      getIpAddress in interface TokenOrBuilder
      Returns:
      The ipAddress.
    • setIpAddress

      public Token.Builder setIpAddress(com.google.protobuf.ByteString value)
       The ip address of the authentication server that produced the token.
       
      bytes ip_address = 4;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public Token.Builder clearIpAddress()
       The ip address of the authentication server that produced the token.
       
      bytes ip_address = 4;
      Returns:
      This builder for chaining.