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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The successfully authenticated Minecraft account.The device code information for user authorization.The successfully authenticated Minecraft account.The successfully authenticated Minecraft account.The successfully authenticated Minecraft account.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe device code information for user authorization.The device code information for user authorization.The device code information for user authorization.booleanThe successfully authenticated Minecraft account.booleanThe device code information for user authorization.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe successfully authenticated Minecraft account.mergeDeviceCode(DeviceCode value) The device code information for user authorization.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DeviceCodeAuthResponse other) setAccount(MinecraftAccountProto value) The successfully authenticated Minecraft account.setAccount(MinecraftAccountProto.Builder builderForValue) The successfully authenticated Minecraft account.setDeviceCode(DeviceCode value) The device code information for user authorization.setDeviceCode(DeviceCode.Builder builderForValue) The device code information for user authorization.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DeviceCodeAuthResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DeviceCodeAuthResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DeviceCodeAuthResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeviceCodeAuthResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeviceCodeAuthResponse.Builder>- Throws:
IOException
-
getDataCase
- Specified by:
getDataCasein interfaceDeviceCodeAuthResponseOrBuilder
-
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:
hasAccountin interfaceDeviceCodeAuthResponseOrBuilder- Returns:
- Whether the account field is set.
-
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:
getAccountin interfaceDeviceCodeAuthResponseOrBuilder- 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
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
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
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:
getAccountOrBuilderin interfaceDeviceCodeAuthResponseOrBuilder
-
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:
hasDeviceCodein interfaceDeviceCodeAuthResponseOrBuilder- Returns:
- Whether the deviceCode field is set.
-
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:
getDeviceCodein interfaceDeviceCodeAuthResponseOrBuilder- Returns:
- The deviceCode.
-
setDeviceCode
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
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
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
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
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
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:
getDeviceCodeOrBuilderin interfaceDeviceCodeAuthResponseOrBuilder
-