Class DeviceCodeAuthRequest.Builder

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

public static final class DeviceCodeAuthRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeviceCodeAuthRequest.Builder> implements DeviceCodeAuthRequestOrBuilder
Request message for Microsoft OAuth device code authentication flow.
This flow is interactive and requires user action in a web browser.
Protobuf type soulfire.v1.DeviceCodeAuthRequest
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The UUID of the SoulFire instance to authenticate the account for.
    The device code authentication service type to use: - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The UUID of the SoulFire instance to authenticate the account for.
    com.google.protobuf.ByteString
    The UUID of the SoulFire instance to authenticate the account for.
    The device code authentication service type to use: - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
    int
    The device code authentication service type to use: - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    The UUID of the SoulFire instance to authenticate the account for.
    setInstanceIdBytes(com.google.protobuf.ByteString value)
    The UUID of the SoulFire instance to authenticate the account for.
    The device code authentication service type to use: - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
    setServiceValue(int value)
    The device code authentication service type to use: - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account

    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DeviceCodeAuthRequest.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<DeviceCodeAuthRequest.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<DeviceCodeAuthRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getInstanceId()
      The UUID of the SoulFire instance to authenticate the account for.
      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 DeviceCodeAuthRequestOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
      The UUID of the SoulFire instance to authenticate the account for.
      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 DeviceCodeAuthRequestOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public DeviceCodeAuthRequest.Builder setInstanceId(String value)
      The UUID of the SoulFire instance to authenticate the account for.
      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 DeviceCodeAuthRequest.Builder clearInstanceId()
      The UUID of the SoulFire instance to authenticate the account for.
      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 DeviceCodeAuthRequest.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
      The UUID of the SoulFire instance to authenticate the account for.
      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.
    • getServiceValue

      public int getServiceValue()
      The device code authentication service type to use:
      - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account
      - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
      
      .soulfire.v1.AccountTypeDeviceCode service = 2;
      Specified by:
      getServiceValue in interface DeviceCodeAuthRequestOrBuilder
      Returns:
      The enum numeric value on the wire for service.
    • setServiceValue

      public DeviceCodeAuthRequest.Builder setServiceValue(int value)
      The device code authentication service type to use:
      - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account
      - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
      
      .soulfire.v1.AccountTypeDeviceCode service = 2;
      Parameters:
      value - The enum numeric value on the wire for service to set.
      Returns:
      This builder for chaining.
    • getService

      public AccountTypeDeviceCode getService()
      The device code authentication service type to use:
      - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account
      - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
      
      .soulfire.v1.AccountTypeDeviceCode service = 2;
      Specified by:
      getService in interface DeviceCodeAuthRequestOrBuilder
      Returns:
      The service.
    • setService

      The device code authentication service type to use:
      - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account
      - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
      
      .soulfire.v1.AccountTypeDeviceCode service = 2;
      Parameters:
      value - The service to set.
      Returns:
      This builder for chaining.
    • clearService

      public DeviceCodeAuthRequest.Builder clearService()
      The device code authentication service type to use:
      - MICROSOFT_JAVA_DEVICE_CODE: Microsoft Java Edition account
      - MICROSOFT_BEDROCK_DEVICE_CODE: Microsoft Bedrock Edition account
      
      .soulfire.v1.AccountTypeDeviceCode service = 2;
      Returns:
      This builder for chaining.