Class DeviceCodeAuthResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.soulfiremc.grpc.generated.DeviceCodeAuthResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DeviceCodeAuthResponseOrBuilder, Serializable

@Generated public final class DeviceCodeAuthResponse extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • 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
    • getDataCase

      public DeviceCodeAuthResponse.DataCase getDataCase()
      Specified by:
      getDataCase in interface DeviceCodeAuthResponseOrBuilder
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DeviceCodeAuthResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DeviceCodeAuthResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeviceCodeAuthResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DeviceCodeAuthResponse.Builder newBuilder()
    • newBuilder

      public static DeviceCodeAuthResponse.Builder newBuilder(DeviceCodeAuthResponse prototype)
    • toBuilder

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

      protected DeviceCodeAuthResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DeviceCodeAuthResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DeviceCodeAuthResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<DeviceCodeAuthResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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