Class DeviceCodeAuthResponse.Builder

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

public static final class DeviceCodeAuthResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeviceCodeAuthResponse.Builder> implements DeviceCodeAuthResponseOrBuilder
Streaming response message for device code authentication.
First sends the device code for user interaction, then sends
the authenticated account once the user completes authorization.
Protobuf type soulfire.v1.DeviceCodeAuthResponse
  • 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<DeviceCodeAuthResponse.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<DeviceCodeAuthResponse.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<DeviceCodeAuthResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DeviceCodeAuthResponse.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<DeviceCodeAuthResponse.Builder>
      Throws:
      IOException
    • getDataCase

      public DeviceCodeAuthResponse.DataCase getDataCase()
      Specified by:
      getDataCase in interface DeviceCodeAuthResponseOrBuilder
    • clearData

      public DeviceCodeAuthResponse.Builder clearData()
    • hasAccount

      public boolean hasAccount()
      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
      Specified by:
      hasAccount in interface DeviceCodeAuthResponseOrBuilder
      Returns:
      Whether the account field is set.
    • getAccount

      public MinecraftAccountProto getAccount()
      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
      Specified by:
      getAccount in interface DeviceCodeAuthResponseOrBuilder
      Returns:
      The account.
    • setAccount

      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
    • setAccount

      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
    • mergeAccount

      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
    • clearAccount

      public DeviceCodeAuthResponse.Builder clearAccount()
      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
    • getAccountBuilder

      public MinecraftAccountProto.Builder getAccountBuilder()
      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
    • getAccountOrBuilder

      public MinecraftAccountProtoOrBuilder getAccountOrBuilder()
      The successfully authenticated Minecraft account.
      Sent after the user completes the device code authorization flow.
      This is the final message in the stream.
      
      .soulfire.v1.MinecraftAccountProto account = 1;
      Specified by:
      getAccountOrBuilder in interface DeviceCodeAuthResponseOrBuilder
    • hasDeviceCode

      public boolean hasDeviceCode()
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
      Specified by:
      hasDeviceCode in interface DeviceCodeAuthResponseOrBuilder
      Returns:
      Whether the deviceCode field is set.
    • getDeviceCode

      public DeviceCode getDeviceCode()
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
      Specified by:
      getDeviceCode in interface DeviceCodeAuthResponseOrBuilder
      Returns:
      The deviceCode.
    • setDeviceCode

      public DeviceCodeAuthResponse.Builder setDeviceCode(DeviceCode value)
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
    • setDeviceCode

      public DeviceCodeAuthResponse.Builder setDeviceCode(DeviceCode.Builder builderForValue)
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
    • mergeDeviceCode

      public DeviceCodeAuthResponse.Builder mergeDeviceCode(DeviceCode value)
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
    • clearDeviceCode

      public DeviceCodeAuthResponse.Builder clearDeviceCode()
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
    • getDeviceCodeBuilder

      public DeviceCode.Builder getDeviceCodeBuilder()
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
    • getDeviceCodeOrBuilder

      public DeviceCodeOrBuilder getDeviceCodeOrBuilder()
      The device code information for user authorization.
      Sent first in the stream. The client should display this to the user
      so they can complete authentication in their browser.
      The stream will wait (up to 15 minutes) for the user to authorize.
      
      .soulfire.v1.DeviceCode device_code = 2;
      Specified by:
      getDeviceCodeOrBuilder in interface DeviceCodeAuthResponseOrBuilder