Class DeviceCode.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DeviceCode.Builder>
com.google.protobuf.GeneratedMessage.Builder<DeviceCode.Builder>
com.soulfiremc.grpc.generated.DeviceCode.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DeviceCodeOrBuilder, Cloneable
- Enclosing class:
DeviceCode
public static final class DeviceCode.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DeviceCode.Builder>
implements DeviceCodeOrBuilder
Microsoft OAuth device code information for user authentication. The user must visit the verification URI and enter the user code to authorize the application.Protobuf type
soulfire.v1.DeviceCode-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The device code used internally for polling authentication status.A URL that includes the user_code as a parameter for one-click verification.The short alphanumeric code the user must enter at the verification URI.The URL where the user must go to enter the user_code.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe device code used internally for polling authentication status.com.google.protobuf.ByteStringThe device code used internally for polling authentication status.A URL that includes the user_code as a parameter for one-click verification.com.google.protobuf.ByteStringA URL that includes the user_code as a parameter for one-click verification.The short alphanumeric code the user must enter at the verification URI.com.google.protobuf.ByteStringThe short alphanumeric code the user must enter at the verification URI.The URL where the user must go to enter the user_code.com.google.protobuf.ByteStringThe URL where the user must go to enter the user_code.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DeviceCode other) setDeviceCode(String value) The device code used internally for polling authentication status.setDeviceCodeBytes(com.google.protobuf.ByteString value) The device code used internally for polling authentication status.setDirectVerificationUri(String value) A URL that includes the user_code as a parameter for one-click verification.setDirectVerificationUriBytes(com.google.protobuf.ByteString value) A URL that includes the user_code as a parameter for one-click verification.setUserCode(String value) The short alphanumeric code the user must enter at the verification URI.setUserCodeBytes(com.google.protobuf.ByteString value) The short alphanumeric code the user must enter at the verification URI.setVerificationUri(String value) The URL where the user must go to enter the user_code.setVerificationUriBytes(com.google.protobuf.ByteString value) The URL where the user must go to enter the user_code.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<DeviceCode.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<DeviceCode.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<DeviceCode.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<DeviceCode.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DeviceCode.Builder>
-
mergeFrom
public DeviceCode.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<DeviceCode.Builder>- Throws:
IOException
-
getDeviceCode
The device code used internally for polling authentication status. This is not shown to the user.
string device_code = 1;- Specified by:
getDeviceCodein interfaceDeviceCodeOrBuilder- Returns:
- The deviceCode.
-
getDeviceCodeBytes
public com.google.protobuf.ByteString getDeviceCodeBytes()The device code used internally for polling authentication status. This is not shown to the user.
string device_code = 1;- Specified by:
getDeviceCodeBytesin interfaceDeviceCodeOrBuilder- Returns:
- The bytes for deviceCode.
-
setDeviceCode
The device code used internally for polling authentication status. This is not shown to the user.
string device_code = 1;- Parameters:
value- The deviceCode to set.- Returns:
- This builder for chaining.
-
clearDeviceCode
The device code used internally for polling authentication status. This is not shown to the user.
string device_code = 1;- Returns:
- This builder for chaining.
-
setDeviceCodeBytes
The device code used internally for polling authentication status. This is not shown to the user.
string device_code = 1;- Parameters:
value- The bytes for deviceCode to set.- Returns:
- This builder for chaining.
-
getUserCode
The short alphanumeric code the user must enter at the verification URI. Typically displayed to the user for manual entry.
string user_code = 2;- Specified by:
getUserCodein interfaceDeviceCodeOrBuilder- Returns:
- The userCode.
-
getUserCodeBytes
public com.google.protobuf.ByteString getUserCodeBytes()The short alphanumeric code the user must enter at the verification URI. Typically displayed to the user for manual entry.
string user_code = 2;- Specified by:
getUserCodeBytesin interfaceDeviceCodeOrBuilder- Returns:
- The bytes for userCode.
-
setUserCode
The short alphanumeric code the user must enter at the verification URI. Typically displayed to the user for manual entry.
string user_code = 2;- Parameters:
value- The userCode to set.- Returns:
- This builder for chaining.
-
clearUserCode
The short alphanumeric code the user must enter at the verification URI. Typically displayed to the user for manual entry.
string user_code = 2;- Returns:
- This builder for chaining.
-
setUserCodeBytes
The short alphanumeric code the user must enter at the verification URI. Typically displayed to the user for manual entry.
string user_code = 2;- Parameters:
value- The bytes for userCode to set.- Returns:
- This builder for chaining.
-
getVerificationUri
The URL where the user must go to enter the user_code. Example: "https://microsoft.com/devicelogin"
string verification_uri = 3;- Specified by:
getVerificationUriin interfaceDeviceCodeOrBuilder- Returns:
- The verificationUri.
-
getVerificationUriBytes
public com.google.protobuf.ByteString getVerificationUriBytes()The URL where the user must go to enter the user_code. Example: "https://microsoft.com/devicelogin"
string verification_uri = 3;- Specified by:
getVerificationUriBytesin interfaceDeviceCodeOrBuilder- Returns:
- The bytes for verificationUri.
-
setVerificationUri
The URL where the user must go to enter the user_code. Example: "https://microsoft.com/devicelogin"
string verification_uri = 3;- Parameters:
value- The verificationUri to set.- Returns:
- This builder for chaining.
-
clearVerificationUri
The URL where the user must go to enter the user_code. Example: "https://microsoft.com/devicelogin"
string verification_uri = 3;- Returns:
- This builder for chaining.
-
setVerificationUriBytes
The URL where the user must go to enter the user_code. Example: "https://microsoft.com/devicelogin"
string verification_uri = 3;- Parameters:
value- The bytes for verificationUri to set.- Returns:
- This builder for chaining.
-
getDirectVerificationUri
A URL that includes the user_code as a parameter for one-click verification. Users can visit this URL directly without manually entering the code. Example: "https://microsoft.com/devicelogin?otc=ABCD1234"
string direct_verification_uri = 4;- Specified by:
getDirectVerificationUriin interfaceDeviceCodeOrBuilder- Returns:
- The directVerificationUri.
-
getDirectVerificationUriBytes
public com.google.protobuf.ByteString getDirectVerificationUriBytes()A URL that includes the user_code as a parameter for one-click verification. Users can visit this URL directly without manually entering the code. Example: "https://microsoft.com/devicelogin?otc=ABCD1234"
string direct_verification_uri = 4;- Specified by:
getDirectVerificationUriBytesin interfaceDeviceCodeOrBuilder- Returns:
- The bytes for directVerificationUri.
-
setDirectVerificationUri
A URL that includes the user_code as a parameter for one-click verification. Users can visit this URL directly without manually entering the code. Example: "https://microsoft.com/devicelogin?otc=ABCD1234"
string direct_verification_uri = 4;- Parameters:
value- The directVerificationUri to set.- Returns:
- This builder for chaining.
-
clearDirectVerificationUri
A URL that includes the user_code as a parameter for one-click verification. Users can visit this URL directly without manually entering the code. Example: "https://microsoft.com/devicelogin?otc=ABCD1234"
string direct_verification_uri = 4;- Returns:
- This builder for chaining.
-
setDirectVerificationUriBytes
A URL that includes the user_code as a parameter for one-click verification. Users can visit this URL directly without manually entering the code. Example: "https://microsoft.com/devicelogin?otc=ABCD1234"
string direct_verification_uri = 4;- Parameters:
value- The bytes for directVerificationUri to set.- Returns:
- This builder for chaining.
-