Class AuthenticationResult.Builder

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

public static final class AuthenticationResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthenticationResult.Builder> implements AuthenticationResultOrBuilder
 Servers respond to Authenticate* requests with an opaque cookie for the (client_id, user, effectiveUser) combination
 granted in the request.  clients remember and use the same cookie in subsequent RPCs to the server that intend to use
 those credentials. This cookie should be refreshed prior to the deadline, which is represented as milliseconds since
 epoch.  Clients are encouraged to refresh considerably in advance of the deadline, as to be able to continue
 operating under network delays.  The expected pattern is for clients to refresh half-way throught their
 available period from the last refresh to the deadline.
 
Protobuf type io.deephaven.proto.auth.AuthenticationResult
  • 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<AuthenticationResult.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<AuthenticationResult.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<AuthenticationResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public AuthenticationResult.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<AuthenticationResult.Builder>
      Throws:
      IOException
    • getAuthenticated

      public boolean getAuthenticated()
       true if authentication was successful.
       
      bool authenticated = 1;
      Specified by:
      getAuthenticated in interface AuthenticationResultOrBuilder
      Returns:
      The authenticated.
    • setAuthenticated

      public AuthenticationResult.Builder setAuthenticated(boolean value)
       true if authentication was successful.
       
      bool authenticated = 1;
      Parameters:
      value - The authenticated to set.
      Returns:
      This builder for chaining.
    • clearAuthenticated

      public AuthenticationResult.Builder clearAuthenticated()
       true if authentication was successful.
       
      bool authenticated = 1;
      Returns:
      This builder for chaining.
    • getCookie

      public com.google.protobuf.ByteString getCookie()
       the cookie that the client should remember and refresh before its deadline to remain authenticated.
       
      bytes cookie = 2;
      Specified by:
      getCookie in interface AuthenticationResultOrBuilder
      Returns:
      The cookie.
    • setCookie

      public AuthenticationResult.Builder setCookie(com.google.protobuf.ByteString value)
       the cookie that the client should remember and refresh before its deadline to remain authenticated.
       
      bytes cookie = 2;
      Parameters:
      value - The cookie to set.
      Returns:
      This builder for chaining.
    • clearCookie

      public AuthenticationResult.Builder clearCookie()
       the cookie that the client should remember and refresh before its deadline to remain authenticated.
       
      bytes cookie = 2;
      Returns:
      This builder for chaining.
    • getCookieDeadlineTimeMillis

      public long getCookieDeadlineTimeMillis()
       the absolute time in milliseconds from the epoch when the cookie will expire.
       
      sfixed64 cookie_deadline_time_millis = 3;
      Specified by:
      getCookieDeadlineTimeMillis in interface AuthenticationResultOrBuilder
      Returns:
      The cookieDeadlineTimeMillis.
    • setCookieDeadlineTimeMillis

      public AuthenticationResult.Builder setCookieDeadlineTimeMillis(long value)
       the absolute time in milliseconds from the epoch when the cookie will expire.
       
      sfixed64 cookie_deadline_time_millis = 3;
      Parameters:
      value - The cookieDeadlineTimeMillis to set.
      Returns:
      This builder for chaining.
    • clearCookieDeadlineTimeMillis

      public AuthenticationResult.Builder clearCookieDeadlineTimeMillis()
       the absolute time in milliseconds from the epoch when the cookie will expire.
       
      sfixed64 cookie_deadline_time_millis = 3;
      Returns:
      This builder for chaining.
    • hasUserContext

      public boolean hasUserContext()
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
      Specified by:
      hasUserContext in interface AuthenticationResultOrBuilder
      Returns:
      Whether the userContext field is set.
    • getUserContext

      public UserContext getUserContext()
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
      Specified by:
      getUserContext in interface AuthenticationResultOrBuilder
      Returns:
      The userContext.
    • setUserContext

      public AuthenticationResult.Builder setUserContext(UserContext value)
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
    • setUserContext

      public AuthenticationResult.Builder setUserContext(UserContext.Builder builderForValue)
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
    • mergeUserContext

      public AuthenticationResult.Builder mergeUserContext(UserContext value)
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
    • clearUserContext

      public AuthenticationResult.Builder clearUserContext()
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
    • getUserContextBuilder

      public UserContext.Builder getUserContextBuilder()
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
    • getUserContextOrBuilder

      public UserContextOrBuilder getUserContextOrBuilder()
       the user context actually authenticated; if there was one in the request should match it.
       
      .io.deephaven.proto.auth.UserContext userContext = 4;
      Specified by:
      getUserContextOrBuilder in interface AuthenticationResultOrBuilder