Class BotSetRotationResponse.Builder

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

public static final class BotSetRotationResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<BotSetRotationResponse.Builder> implements BotSetRotationResponseOrBuilder
Response for rotation update.
Protobuf type soulfire.v1.BotSetRotationResponse
  • 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<BotSetRotationResponse.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<BotSetRotationResponse.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<BotSetRotationResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BotSetRotationResponse.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<BotSetRotationResponse.Builder>
      Throws:
      IOException
    • getSuccess

      public boolean getSuccess()
      Whether the rotation was successfully set.
      
      bool success = 1;
      Specified by:
      getSuccess in interface BotSetRotationResponseOrBuilder
      Returns:
      The success.
    • setSuccess

      public BotSetRotationResponse.Builder setSuccess(boolean value)
      Whether the rotation was successfully set.
      
      bool success = 1;
      Parameters:
      value - The success to set.
      Returns:
      This builder for chaining.
    • clearSuccess

      public BotSetRotationResponse.Builder clearSuccess()
      Whether the rotation was successfully set.
      
      bool success = 1;
      Returns:
      This builder for chaining.
    • hasError

      public boolean hasError()
      Error message if success is false.
      Possible errors: "Player is not available"
      
      optional string error = 2;
      Specified by:
      hasError in interface BotSetRotationResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public String getError()
      Error message if success is false.
      Possible errors: "Player is not available"
      
      optional string error = 2;
      Specified by:
      getError in interface BotSetRotationResponseOrBuilder
      Returns:
      The error.
    • getErrorBytes

      public com.google.protobuf.ByteString getErrorBytes()
      Error message if success is false.
      Possible errors: "Player is not available"
      
      optional string error = 2;
      Specified by:
      getErrorBytes in interface BotSetRotationResponseOrBuilder
      Returns:
      The bytes for error.
    • setError

      public BotSetRotationResponse.Builder setError(String value)
      Error message if success is false.
      Possible errors: "Player is not available"
      
      optional string error = 2;
      Parameters:
      value - The error to set.
      Returns:
      This builder for chaining.
    • clearError

      public BotSetRotationResponse.Builder clearError()
      Error message if success is false.
      Possible errors: "Player is not available"
      
      optional string error = 2;
      Returns:
      This builder for chaining.
    • setErrorBytes

      public BotSetRotationResponse.Builder setErrorBytes(com.google.protobuf.ByteString value)
      Error message if success is false.
      Possible errors: "Player is not available"
      
      optional string error = 2;
      Parameters:
      value - The bytes for error to set.
      Returns:
      This builder for chaining.