Class BotInventoryStateResponse.Builder

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

public static final class BotInventoryStateResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<BotInventoryStateResponse.Builder> implements BotInventoryStateResponseOrBuilder
Response containing the current inventory/container state.
Protobuf type soulfire.v1.BotInventoryStateResponse
  • 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<BotInventoryStateResponse.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<BotInventoryStateResponse.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<BotInventoryStateResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BotInventoryStateResponse.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<BotInventoryStateResponse.Builder>
      Throws:
      IOException
    • hasLayout

      public boolean hasLayout()
      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
      Specified by:
      hasLayout in interface BotInventoryStateResponseOrBuilder
      Returns:
      Whether the layout field is set.
    • getLayout

      public ContainerLayout getLayout()
      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
      Specified by:
      getLayout in interface BotInventoryStateResponseOrBuilder
      Returns:
      The layout.
    • setLayout

      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
    • setLayout

      public BotInventoryStateResponse.Builder setLayout(ContainerLayout.Builder builderForValue)
      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
    • mergeLayout

      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
    • clearLayout

      public BotInventoryStateResponse.Builder clearLayout()
      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
    • getLayoutBuilder

      public ContainerLayout.Builder getLayoutBuilder()
      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
    • getLayoutOrBuilder

      public ContainerLayoutOrBuilder getLayoutOrBuilder()
      Layout information describing the container structure.
      
      .soulfire.v1.ContainerLayout layout = 1;
      Specified by:
      getLayoutOrBuilder in interface BotInventoryStateResponseOrBuilder
    • getSlotsList

      public List<InventorySlot> getSlotsList()
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
      Specified by:
      getSlotsList in interface BotInventoryStateResponseOrBuilder
    • getSlotsCount

      public int getSlotsCount()
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
      Specified by:
      getSlotsCount in interface BotInventoryStateResponseOrBuilder
    • getSlots

      public InventorySlot getSlots(int index)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
      Specified by:
      getSlots in interface BotInventoryStateResponseOrBuilder
    • setSlots

      public BotInventoryStateResponse.Builder setSlots(int index, InventorySlot value)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • setSlots

      public BotInventoryStateResponse.Builder setSlots(int index, InventorySlot.Builder builderForValue)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • addSlots

      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • addSlots

      public BotInventoryStateResponse.Builder addSlots(int index, InventorySlot value)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • addSlots

      public BotInventoryStateResponse.Builder addSlots(InventorySlot.Builder builderForValue)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • addSlots

      public BotInventoryStateResponse.Builder addSlots(int index, InventorySlot.Builder builderForValue)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • addAllSlots

      public BotInventoryStateResponse.Builder addAllSlots(Iterable<? extends InventorySlot> values)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • clearSlots

      public BotInventoryStateResponse.Builder clearSlots()
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • removeSlots

      public BotInventoryStateResponse.Builder removeSlots(int index)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • getSlotsBuilder

      public InventorySlot.Builder getSlotsBuilder(int index)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • getSlotsOrBuilder

      public InventorySlotOrBuilder getSlotsOrBuilder(int index)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
      Specified by:
      getSlotsOrBuilder in interface BotInventoryStateResponseOrBuilder
    • getSlotsOrBuilderList

      public List<? extends InventorySlotOrBuilder> getSlotsOrBuilderList()
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
      Specified by:
      getSlotsOrBuilderList in interface BotInventoryStateResponseOrBuilder
    • addSlotsBuilder

      public InventorySlot.Builder addSlotsBuilder()
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • addSlotsBuilder

      public InventorySlot.Builder addSlotsBuilder(int index)
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • getSlotsBuilderList

      public List<InventorySlot.Builder> getSlotsBuilderList()
      All slots containing items (empty slots are omitted).
      
      repeated .soulfire.v1.InventorySlot slots = 2;
    • hasCarriedItem

      public boolean hasCarriedItem()
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
      Specified by:
      hasCarriedItem in interface BotInventoryStateResponseOrBuilder
      Returns:
      Whether the carriedItem field is set.
    • getCarriedItem

      public InventorySlot getCarriedItem()
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
      Specified by:
      getCarriedItem in interface BotInventoryStateResponseOrBuilder
      Returns:
      The carriedItem.
    • setCarriedItem

      public BotInventoryStateResponse.Builder setCarriedItem(InventorySlot value)
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
    • setCarriedItem

      public BotInventoryStateResponse.Builder setCarriedItem(InventorySlot.Builder builderForValue)
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
    • mergeCarriedItem

      public BotInventoryStateResponse.Builder mergeCarriedItem(InventorySlot value)
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
    • clearCarriedItem

      public BotInventoryStateResponse.Builder clearCarriedItem()
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
    • getCarriedItemBuilder

      public InventorySlot.Builder getCarriedItemBuilder()
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
    • getCarriedItemOrBuilder

      public InventorySlotOrBuilder getCarriedItemOrBuilder()
      Item currently held on the cursor (being moved).
      Absent if cursor is empty.
      
      optional .soulfire.v1.InventorySlot carried_item = 3;
      Specified by:
      getCarriedItemOrBuilder in interface BotInventoryStateResponseOrBuilder
    • getSelectedHotbarSlot

      public int getSelectedHotbarSlot()
      Currently selected hotbar slot index (0-8).
      
      int32 selected_hotbar_slot = 4;
      Specified by:
      getSelectedHotbarSlot in interface BotInventoryStateResponseOrBuilder
      Returns:
      The selectedHotbarSlot.
    • setSelectedHotbarSlot

      public BotInventoryStateResponse.Builder setSelectedHotbarSlot(int value)
      Currently selected hotbar slot index (0-8).
      
      int32 selected_hotbar_slot = 4;
      Parameters:
      value - The selectedHotbarSlot to set.
      Returns:
      This builder for chaining.
    • clearSelectedHotbarSlot

      public BotInventoryStateResponse.Builder clearSelectedHotbarSlot()
      Currently selected hotbar slot index (0-8).
      
      int32 selected_hotbar_slot = 4;
      Returns:
      This builder for chaining.