Class ContainerTextInput.Builder

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

public static final class ContainerTextInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContainerTextInput.Builder> implements ContainerTextInputOrBuilder
Text input field in a container menu.
Currently only used by the anvil for item renaming.
Protobuf type soulfire.v1.ContainerTextInput
  • 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<ContainerTextInput.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<ContainerTextInput.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<ContainerTextInput.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ContainerTextInput.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<ContainerTextInput.Builder>
      Throws:
      IOException
    • getId

      public String getId()
      Field identifier for the SetContainerText RPC.
      Currently supported: "item_name" (anvil rename)
      
      string id = 1;
      Specified by:
      getId in interface ContainerTextInputOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      Field identifier for the SetContainerText RPC.
      Currently supported: "item_name" (anvil rename)
      
      string id = 1;
      Specified by:
      getIdBytes in interface ContainerTextInputOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ContainerTextInput.Builder setId(String value)
      Field identifier for the SetContainerText RPC.
      Currently supported: "item_name" (anvil rename)
      
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ContainerTextInput.Builder clearId()
      Field identifier for the SetContainerText RPC.
      Currently supported: "item_name" (anvil rename)
      
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public ContainerTextInput.Builder setIdBytes(com.google.protobuf.ByteString value)
      Field identifier for the SetContainerText RPC.
      Currently supported: "item_name" (anvil rename)
      
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getLabel

      public String getLabel()
      Display label for the input field.
      
      string label = 2;
      Specified by:
      getLabel in interface ContainerTextInputOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
      Display label for the input field.
      
      string label = 2;
      Specified by:
      getLabelBytes in interface ContainerTextInputOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public ContainerTextInput.Builder setLabel(String value)
      Display label for the input field.
      
      string label = 2;
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public ContainerTextInput.Builder clearLabel()
      Display label for the input field.
      
      string label = 2;
      Returns:
      This builder for chaining.
    • setLabelBytes

      public ContainerTextInput.Builder setLabelBytes(com.google.protobuf.ByteString value)
      Display label for the input field.
      
      string label = 2;
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • getCurrentValue

      public String getCurrentValue()
      Current text value in the field.
      For anvil: the item's current custom name, or empty if none.
      
      string current_value = 3;
      Specified by:
      getCurrentValue in interface ContainerTextInputOrBuilder
      Returns:
      The currentValue.
    • getCurrentValueBytes

      public com.google.protobuf.ByteString getCurrentValueBytes()
      Current text value in the field.
      For anvil: the item's current custom name, or empty if none.
      
      string current_value = 3;
      Specified by:
      getCurrentValueBytes in interface ContainerTextInputOrBuilder
      Returns:
      The bytes for currentValue.
    • setCurrentValue

      public ContainerTextInput.Builder setCurrentValue(String value)
      Current text value in the field.
      For anvil: the item's current custom name, or empty if none.
      
      string current_value = 3;
      Parameters:
      value - The currentValue to set.
      Returns:
      This builder for chaining.
    • clearCurrentValue

      public ContainerTextInput.Builder clearCurrentValue()
      Current text value in the field.
      For anvil: the item's current custom name, or empty if none.
      
      string current_value = 3;
      Returns:
      This builder for chaining.
    • setCurrentValueBytes

      public ContainerTextInput.Builder setCurrentValueBytes(com.google.protobuf.ByteString value)
      Current text value in the field.
      For anvil: the item's current custom name, or empty if none.
      
      string current_value = 3;
      Parameters:
      value - The bytes for currentValue to set.
      Returns:
      This builder for chaining.
    • getMaxLength

      public int getMaxLength()
      Maximum allowed character length.
      For anvil: 50 characters.
      Value of 0 means no limit.
      
      int32 max_length = 4;
      Specified by:
      getMaxLength in interface ContainerTextInputOrBuilder
      Returns:
      The maxLength.
    • setMaxLength

      public ContainerTextInput.Builder setMaxLength(int value)
      Maximum allowed character length.
      For anvil: 50 characters.
      Value of 0 means no limit.
      
      int32 max_length = 4;
      Parameters:
      value - The maxLength to set.
      Returns:
      This builder for chaining.
    • clearMaxLength

      public ContainerTextInput.Builder clearMaxLength()
      Maximum allowed character length.
      For anvil: 50 characters.
      Value of 0 means no limit.
      
      int32 max_length = 4;
      Returns:
      This builder for chaining.
    • getPlaceholder

      public String getPlaceholder()
      Placeholder text shown when field is empty.
      
      string placeholder = 5;
      Specified by:
      getPlaceholder in interface ContainerTextInputOrBuilder
      Returns:
      The placeholder.
    • getPlaceholderBytes

      public com.google.protobuf.ByteString getPlaceholderBytes()
      Placeholder text shown when field is empty.
      
      string placeholder = 5;
      Specified by:
      getPlaceholderBytes in interface ContainerTextInputOrBuilder
      Returns:
      The bytes for placeholder.
    • setPlaceholder

      public ContainerTextInput.Builder setPlaceholder(String value)
      Placeholder text shown when field is empty.
      
      string placeholder = 5;
      Parameters:
      value - The placeholder to set.
      Returns:
      This builder for chaining.
    • clearPlaceholder

      public ContainerTextInput.Builder clearPlaceholder()
      Placeholder text shown when field is empty.
      
      string placeholder = 5;
      Returns:
      This builder for chaining.
    • setPlaceholderBytes

      public ContainerTextInput.Builder setPlaceholderBytes(com.google.protobuf.ByteString value)
      Placeholder text shown when field is empty.
      
      string placeholder = 5;
      Parameters:
      value - The bytes for placeholder to set.
      Returns:
      This builder for chaining.