Class RefreshRequest.Builder

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

public static final class RefreshRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RefreshRequest.Builder> implements RefreshRequestOrBuilder
Request message for refreshing an existing Minecraft account's authentication tokens.
Used to renew expired tokens without requiring the user to re-authenticate.
Protobuf type soulfire.v1.RefreshRequest
  • 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<RefreshRequest.Builder>
    • clear

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

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

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

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

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

      public RefreshRequest.Builder mergeFrom(RefreshRequest other)
    • isInitialized

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

      public RefreshRequest.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<RefreshRequest.Builder>
      Throws:
      IOException
    • getInstanceId

      public String getInstanceId()
      The UUID of the SoulFire instance context for the refresh operation.
      Must be a valid UUID string. The instance must exist and the caller
      must have AUTHENTICATE_MC_ACCOUNT permission for this instance.
      
      string instance_id = 1;
      Specified by:
      getInstanceId in interface RefreshRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
      The UUID of the SoulFire instance context for the refresh operation.
      Must be a valid UUID string. The instance must exist and the caller
      must have AUTHENTICATE_MC_ACCOUNT permission for this instance.
      
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface RefreshRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public RefreshRequest.Builder setInstanceId(String value)
      The UUID of the SoulFire instance context for the refresh operation.
      Must be a valid UUID string. The instance must exist and the caller
      must have AUTHENTICATE_MC_ACCOUNT permission for this instance.
      
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public RefreshRequest.Builder clearInstanceId()
      The UUID of the SoulFire instance context for the refresh operation.
      Must be a valid UUID string. The instance must exist and the caller
      must have AUTHENTICATE_MC_ACCOUNT permission for this instance.
      
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public RefreshRequest.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
      The UUID of the SoulFire instance context for the refresh operation.
      Must be a valid UUID string. The instance must exist and the caller
      must have AUTHENTICATE_MC_ACCOUNT permission for this instance.
      
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • hasAccount

      public boolean hasAccount()
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
      Specified by:
      hasAccount in interface RefreshRequestOrBuilder
      Returns:
      Whether the account field is set.
    • getAccount

      public MinecraftAccountProto getAccount()
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
      Specified by:
      getAccount in interface RefreshRequestOrBuilder
      Returns:
      The account.
    • setAccount

      public RefreshRequest.Builder setAccount(MinecraftAccountProto value)
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
    • setAccount

      public RefreshRequest.Builder setAccount(MinecraftAccountProto.Builder builderForValue)
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
    • mergeAccount

      public RefreshRequest.Builder mergeAccount(MinecraftAccountProto value)
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
    • clearAccount

      public RefreshRequest.Builder clearAccount()
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
    • getAccountBuilder

      public MinecraftAccountProto.Builder getAccountBuilder()
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
    • getAccountOrBuilder

      public MinecraftAccountProtoOrBuilder getAccountOrBuilder()
      The existing Minecraft account to refresh.
      Must include valid account data with refresh tokens.
      The account type determines which refresh mechanism is used.
      Offline accounts are returned unchanged (they never expire).
      
      .soulfire.v1.MinecraftAccountProto account = 2;
      Specified by:
      getAccountOrBuilder in interface RefreshRequestOrBuilder