Class NextAuthFlowResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<NextAuthFlowResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<NextAuthFlowResponse.Builder>
com.soulfiremc.grpc.generated.NextAuthFlowResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NextAuthFlowResponseOrBuilder, Cloneable
Enclosing class:
NextAuthFlowResponse

public static final class NextAuthFlowResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<NextAuthFlowResponse.Builder> implements NextAuthFlowResponseOrBuilder
Response message representing the next step in the authentication flow.
This is a polymorphic response that indicates what action should be taken next.
Protobuf type soulfire.v1.NextAuthFlowResponse
  • 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<NextAuthFlowResponse.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<NextAuthFlowResponse.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<NextAuthFlowResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public NextAuthFlowResponse.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<NextAuthFlowResponse.Builder>
      Throws:
      IOException
    • getNextCase

      public NextAuthFlowResponse.NextCase getNextCase()
      Specified by:
      getNextCase in interface NextAuthFlowResponseOrBuilder
    • clearNext

      public NextAuthFlowResponse.Builder clearNext()
    • getAuthFlowToken

      public String getAuthFlowToken()
      A unique token identifying this authentication flow session.
      This token must be included in subsequent requests (e.g., EmailCodeRequest) to continue the flow.
      The token is a UUID string and expires after 15 minutes of inactivity.
      
      string auth_flow_token = 1;
      Specified by:
      getAuthFlowToken in interface NextAuthFlowResponseOrBuilder
      Returns:
      The authFlowToken.
    • getAuthFlowTokenBytes

      public com.google.protobuf.ByteString getAuthFlowTokenBytes()
      A unique token identifying this authentication flow session.
      This token must be included in subsequent requests (e.g., EmailCodeRequest) to continue the flow.
      The token is a UUID string and expires after 15 minutes of inactivity.
      
      string auth_flow_token = 1;
      Specified by:
      getAuthFlowTokenBytes in interface NextAuthFlowResponseOrBuilder
      Returns:
      The bytes for authFlowToken.
    • setAuthFlowToken

      public NextAuthFlowResponse.Builder setAuthFlowToken(String value)
      A unique token identifying this authentication flow session.
      This token must be included in subsequent requests (e.g., EmailCodeRequest) to continue the flow.
      The token is a UUID string and expires after 15 minutes of inactivity.
      
      string auth_flow_token = 1;
      Parameters:
      value - The authFlowToken to set.
      Returns:
      This builder for chaining.
    • clearAuthFlowToken

      public NextAuthFlowResponse.Builder clearAuthFlowToken()
      A unique token identifying this authentication flow session.
      This token must be included in subsequent requests (e.g., EmailCodeRequest) to continue the flow.
      The token is a UUID string and expires after 15 minutes of inactivity.
      
      string auth_flow_token = 1;
      Returns:
      This builder for chaining.
    • setAuthFlowTokenBytes

      public NextAuthFlowResponse.Builder setAuthFlowTokenBytes(com.google.protobuf.ByteString value)
      A unique token identifying this authentication flow session.
      This token must be included in subsequent requests (e.g., EmailCodeRequest) to continue the flow.
      The token is a UUID string and expires after 15 minutes of inactivity.
      
      string auth_flow_token = 1;
      Parameters:
      value - The bytes for authFlowToken to set.
      Returns:
      This builder for chaining.
    • hasEmailCode

      public boolean hasEmailCode()
      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
      Specified by:
      hasEmailCode in interface NextAuthFlowResponseOrBuilder
      Returns:
      Whether the emailCode field is set.
    • getEmailCode

      public NextAuthFlowResponse.EmailCode getEmailCode()
      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
      Specified by:
      getEmailCode in interface NextAuthFlowResponseOrBuilder
      Returns:
      The emailCode.
    • setEmailCode

      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
    • setEmailCode

      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
    • mergeEmailCode

      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
    • clearEmailCode

      public NextAuthFlowResponse.Builder clearEmailCode()
      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
    • getEmailCodeBuilder

      public NextAuthFlowResponse.EmailCode.Builder getEmailCodeBuilder()
      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
    • getEmailCodeOrBuilder

      public NextAuthFlowResponse.EmailCodeOrBuilder getEmailCodeOrBuilder()
      Set when the client should prompt the user to enter the email verification code.
      This is the response after a successful Login RPC call.
      
      .soulfire.v1.NextAuthFlowResponse.EmailCode email_code = 2;
      Specified by:
      getEmailCodeOrBuilder in interface NextAuthFlowResponseOrBuilder
    • hasSuccess

      public boolean hasSuccess()
      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
      Specified by:
      hasSuccess in interface NextAuthFlowResponseOrBuilder
      Returns:
      Whether the success field is set.
    • getSuccess

      public NextAuthFlowResponse.Success getSuccess()
      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
      Specified by:
      getSuccess in interface NextAuthFlowResponseOrBuilder
      Returns:
      The success.
    • setSuccess

      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
    • setSuccess

      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
    • mergeSuccess

      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
    • clearSuccess

      public NextAuthFlowResponse.Builder clearSuccess()
      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
    • getSuccessBuilder

      public NextAuthFlowResponse.Success.Builder getSuccessBuilder()
      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
    • getSuccessOrBuilder

      public NextAuthFlowResponse.SuccessOrBuilder getSuccessOrBuilder()
      Set when authentication is complete and successful.
      Contains the JWT token for authenticated API access.
      
      .soulfire.v1.NextAuthFlowResponse.Success success = 3;
      Specified by:
      getSuccessOrBuilder in interface NextAuthFlowResponseOrBuilder
    • hasFailure

      public boolean hasFailure()
      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
      Specified by:
      hasFailure in interface NextAuthFlowResponseOrBuilder
      Returns:
      Whether the failure field is set.
    • getFailure

      public NextAuthFlowResponse.Failure getFailure()
      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
      Specified by:
      getFailure in interface NextAuthFlowResponseOrBuilder
      Returns:
      The failure.
    • setFailure

      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
    • setFailure

      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
    • mergeFailure

      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
    • clearFailure

      public NextAuthFlowResponse.Builder clearFailure()
      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
    • getFailureBuilder

      public NextAuthFlowResponse.Failure.Builder getFailureBuilder()
      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
    • getFailureOrBuilder

      public NextAuthFlowResponse.FailureOrBuilder getFailureOrBuilder()
      Set when authentication has failed.
      Contains the reason for the failure.
      
      .soulfire.v1.NextAuthFlowResponse.Failure failure = 4;
      Specified by:
      getFailureOrBuilder in interface NextAuthFlowResponseOrBuilder