Class BotCommandScope.Builder

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

public static final class BotCommandScope.Builder extends com.google.protobuf.GeneratedMessage.Builder<BotCommandScope.Builder> implements BotCommandScopeOrBuilder
Represents a command scope restricted to a specific bot within an instance.
Commands executed in this scope can only affect the specified bot.
Requires the INSTANCE_COMMAND_EXECUTION permission for the parent instance.
Protobuf type soulfire.v1.BotCommandScope
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The unique identifier (UUID) of the bot (profile ID) to scope commands to.
    The unique identifier (UUID) of the instance containing the bot.
    The unique identifier (UUID) of the bot (profile ID) to scope commands to.
    com.google.protobuf.ByteString
    The unique identifier (UUID) of the bot (profile ID) to scope commands to.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The unique identifier (UUID) of the instance containing the bot.
    com.google.protobuf.ByteString
    The unique identifier (UUID) of the instance containing the bot.
    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 unique identifier (UUID) of the bot (profile ID) to scope commands to.
    setBotIdBytes(com.google.protobuf.ByteString value)
    The unique identifier (UUID) of the bot (profile ID) to scope commands to.
    The unique identifier (UUID) of the instance containing the bot.
    setInstanceIdBytes(com.google.protobuf.ByteString value)
    The unique identifier (UUID) of the instance containing the bot.

    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<BotCommandScope.Builder>
    • clear

      public BotCommandScope.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<BotCommandScope.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<BotCommandScope.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BotCommandScope.Builder mergeFrom(BotCommandScope other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BotCommandScope.Builder>
    • mergeFrom

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

      public String getInstanceId()
      The unique identifier (UUID) of the instance containing the bot.
      Must be a valid UUID string.
      
      string instance_id = 1;
      Specified by:
      getInstanceId in interface BotCommandScopeOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
      The unique identifier (UUID) of the instance containing the bot.
      Must be a valid UUID string.
      
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface BotCommandScopeOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public BotCommandScope.Builder setInstanceId(String value)
      The unique identifier (UUID) of the instance containing the bot.
      Must be a valid UUID string.
      
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public BotCommandScope.Builder clearInstanceId()
      The unique identifier (UUID) of the instance containing the bot.
      Must be a valid UUID string.
      
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public BotCommandScope.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
      The unique identifier (UUID) of the instance containing the bot.
      Must be a valid UUID string.
      
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getBotId

      public String getBotId()
      The unique identifier (UUID) of the bot (profile ID) to scope commands to.
      Must be a valid UUID string matching the bot's account profile ID.
      
      string bot_id = 2;
      Specified by:
      getBotId in interface BotCommandScopeOrBuilder
      Returns:
      The botId.
    • getBotIdBytes

      public com.google.protobuf.ByteString getBotIdBytes()
      The unique identifier (UUID) of the bot (profile ID) to scope commands to.
      Must be a valid UUID string matching the bot's account profile ID.
      
      string bot_id = 2;
      Specified by:
      getBotIdBytes in interface BotCommandScopeOrBuilder
      Returns:
      The bytes for botId.
    • setBotId

      public BotCommandScope.Builder setBotId(String value)
      The unique identifier (UUID) of the bot (profile ID) to scope commands to.
      Must be a valid UUID string matching the bot's account profile ID.
      
      string bot_id = 2;
      Parameters:
      value - The botId to set.
      Returns:
      This builder for chaining.
    • clearBotId

      public BotCommandScope.Builder clearBotId()
      The unique identifier (UUID) of the bot (profile ID) to scope commands to.
      Must be a valid UUID string matching the bot's account profile ID.
      
      string bot_id = 2;
      Returns:
      This builder for chaining.
    • setBotIdBytes

      public BotCommandScope.Builder setBotIdBytes(com.google.protobuf.ByteString value)
      The unique identifier (UUID) of the bot (profile ID) to scope commands to.
      Must be a valid UUID string matching the bot's account profile ID.
      
      string bot_id = 2;
      Parameters:
      value - The bytes for botId to set.
      Returns:
      This builder for chaining.