Class DialogItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DialogItem.Builder>
com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
com.soulfiremc.grpc.generated.DialogItem.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DialogItemOrBuilder, Cloneable
- Enclosing class:
DialogItem
public static final class DialogItem.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
implements DialogItemOrBuilder
Item display element in a dialog body.Protobuf type
soulfire.v1.DialogItem-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Item count/stack size to display.Optional description text below the item.Display height in pixels.Minecraft item identifier.Whether to show the item frame decoration around the item.Whether to show the item tooltip on hover.Display width in pixels.intgetCount()Item count/stack size to display.Optional description text below the item.com.google.protobuf.ByteStringOptional description text below the item.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintDisplay height in pixels.Minecraft item identifier.com.google.protobuf.ByteStringMinecraft item identifier.booleanWhether to show the item frame decoration around the item.booleanWhether to show the item tooltip on hover.intgetWidth()Display width in pixels.booleanOptional description text below the item.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DialogItem other) setCount(int value) Item count/stack size to display.setDescription(String value) Optional description text below the item.setDescriptionBytes(com.google.protobuf.ByteString value) Optional description text below the item.setHeight(int value) Display height in pixels.Minecraft item identifier.setItemIdBytes(com.google.protobuf.ByteString value) Minecraft item identifier.setShowDecoration(boolean value) Whether to show the item frame decoration around the item.setShowTooltip(boolean value) Whether to show the item tooltip on hover.setWidth(int value) Display width in pixels.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DialogItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DialogItem.Builder>
-
mergeFrom
public DialogItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DialogItem.Builder>- Throws:
IOException
-
getItemId
Minecraft item identifier. Example: "minecraft:diamond", "minecraft:netherite_sword"
string item_id = 1;- Specified by:
getItemIdin interfaceDialogItemOrBuilder- Returns:
- The itemId.
-
getItemIdBytes
public com.google.protobuf.ByteString getItemIdBytes()Minecraft item identifier. Example: "minecraft:diamond", "minecraft:netherite_sword"
string item_id = 1;- Specified by:
getItemIdBytesin interfaceDialogItemOrBuilder- Returns:
- The bytes for itemId.
-
setItemId
Minecraft item identifier. Example: "minecraft:diamond", "minecraft:netherite_sword"
string item_id = 1;- Parameters:
value- The itemId to set.- Returns:
- This builder for chaining.
-
clearItemId
Minecraft item identifier. Example: "minecraft:diamond", "minecraft:netherite_sword"
string item_id = 1;- Returns:
- This builder for chaining.
-
setItemIdBytes
Minecraft item identifier. Example: "minecraft:diamond", "minecraft:netherite_sword"
string item_id = 1;- Parameters:
value- The bytes for itemId to set.- Returns:
- This builder for chaining.
-
getCount
public int getCount()Item count/stack size to display.
int32 count = 2;- Specified by:
getCountin interfaceDialogItemOrBuilder- Returns:
- The count.
-
setCount
Item count/stack size to display.
int32 count = 2;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
Item count/stack size to display.
int32 count = 2;- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()Optional description text below the item.
optional string description = 3;- Specified by:
hasDescriptionin interfaceDialogItemOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
Optional description text below the item.
optional string description = 3;- Specified by:
getDescriptionin interfaceDialogItemOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional description text below the item.
optional string description = 3;- Specified by:
getDescriptionBytesin interfaceDialogItemOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional description text below the item.
optional string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional description text below the item.
optional string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional description text below the item.
optional string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getShowDecoration
public boolean getShowDecoration()Whether to show the item frame decoration around the item. Default: true.
bool show_decoration = 4;- Specified by:
getShowDecorationin interfaceDialogItemOrBuilder- Returns:
- The showDecoration.
-
setShowDecoration
Whether to show the item frame decoration around the item. Default: true.
bool show_decoration = 4;- Parameters:
value- The showDecoration to set.- Returns:
- This builder for chaining.
-
clearShowDecoration
Whether to show the item frame decoration around the item. Default: true.
bool show_decoration = 4;- Returns:
- This builder for chaining.
-
getShowTooltip
public boolean getShowTooltip()Whether to show the item tooltip on hover. Default: true.
bool show_tooltip = 5;- Specified by:
getShowTooltipin interfaceDialogItemOrBuilder- Returns:
- The showTooltip.
-
setShowTooltip
Whether to show the item tooltip on hover. Default: true.
bool show_tooltip = 5;- Parameters:
value- The showTooltip to set.- Returns:
- This builder for chaining.
-
clearShowTooltip
Whether to show the item tooltip on hover. Default: true.
bool show_tooltip = 5;- Returns:
- This builder for chaining.
-
getWidth
public int getWidth()Display width in pixels. Range: 1-256, default: 16.
int32 width = 6;- Specified by:
getWidthin interfaceDialogItemOrBuilder- Returns:
- The width.
-
setWidth
Display width in pixels. Range: 1-256, default: 16.
int32 width = 6;- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
Display width in pixels. Range: 1-256, default: 16.
int32 width = 6;- Returns:
- This builder for chaining.
-
getHeight
public int getHeight()Display height in pixels. Range: 1-256, default: 16.
int32 height = 7;- Specified by:
getHeightin interfaceDialogItemOrBuilder- Returns:
- The height.
-
setHeight
Display height in pixels. Range: 1-256, default: 16.
int32 height = 7;- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
Display height in pixels. Range: 1-256, default: 16.
int32 height = 7;- Returns:
- This builder for chaining.
-