// Generated by the protocol buffer compiler. DO NOT EDIT! // source: Item.proto package emu.grasscutter.net.proto; public final class ItemOuterClass { private ItemOuterClass() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ItemOrBuilder extends // @@protoc_insertion_point(interface_extends:Item) com.google.protobuf.MessageOrBuilder { /** * uint32 item_id = 1; * @return The itemId. */ int getItemId(); /** * uint64 guid = 2; * @return The guid. */ long getGuid(); /** * .Material material = 5; * @return Whether the material field is set. */ boolean hasMaterial(); /** * .Material material = 5; * @return The material. */ emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial(); /** * .Material material = 5; */ emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder(); /** * .Equip equip = 6; * @return Whether the equip field is set. */ boolean hasEquip(); /** * .Equip equip = 6; * @return The equip. */ emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip(); /** * .Equip equip = 6; */ emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder(); /** * .Furniture furniture = 7; * @return Whether the furniture field is set. */ boolean hasFurniture(); /** * .Furniture furniture = 7; * @return The furniture. */ emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture(); /** * .Furniture furniture = 7; */ emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder getFurnitureOrBuilder(); public emu.grasscutter.net.proto.ItemOuterClass.Item.DetailCase getDetailCase(); } /** * Protobuf type {@code Item} */ public static final class Item extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Item) ItemOrBuilder { private static final long serialVersionUID = 0L; // Use Item.newBuilder() to construct. private Item(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Item() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Item(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Item( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { itemId_ = input.readUInt32(); break; } case 16: { guid_ = input.readUInt64(); break; } case 42: { emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder subBuilder = null; if (detailCase_ == 5) { subBuilder = ((emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_).toBuilder(); } detail_ = input.readMessage(emu.grasscutter.net.proto.MaterialOuterClass.Material.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_); detail_ = subBuilder.buildPartial(); } detailCase_ = 5; break; } case 50: { emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder subBuilder = null; if (detailCase_ == 6) { subBuilder = ((emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_).toBuilder(); } detail_ = input.readMessage(emu.grasscutter.net.proto.EquipOuterClass.Equip.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_); detail_ = subBuilder.buildPartial(); } detailCase_ = 6; break; } case 58: { emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder subBuilder = null; if (detailCase_ == 7) { subBuilder = ((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_).toBuilder(); } detail_ = input.readMessage(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_); detail_ = subBuilder.buildPartial(); } detailCase_ = 7; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.ItemOuterClass.Item.class, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder.class); } private int detailCase_ = 0; private java.lang.Object detail_; public enum DetailCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MATERIAL(5), EQUIP(6), FURNITURE(7), DETAIL_NOT_SET(0); private final int value; private DetailCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DetailCase valueOf(int value) { return forNumber(value); } public static DetailCase forNumber(int value) { switch (value) { case 5: return MATERIAL; case 6: return EQUIP; case 7: return FURNITURE; case 0: return DETAIL_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DetailCase getDetailCase() { return DetailCase.forNumber( detailCase_); } public static final int ITEM_ID_FIELD_NUMBER = 1; private int itemId_; /** * uint32 item_id = 1; * @return The itemId. */ @java.lang.Override public int getItemId() { return itemId_; } public static final int GUID_FIELD_NUMBER = 2; private long guid_; /** * uint64 guid = 2; * @return The guid. */ @java.lang.Override public long getGuid() { return guid_; } public static final int MATERIAL_FIELD_NUMBER = 5; /** * .Material material = 5; * @return Whether the material field is set. */ @java.lang.Override public boolean hasMaterial() { return detailCase_ == 5; } /** * .Material material = 5; * @return The material. */ @java.lang.Override public emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial() { if (detailCase_ == 5) { return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; } return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); } /** * .Material material = 5; */ @java.lang.Override public emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder() { if (detailCase_ == 5) { return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; } return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); } public static final int EQUIP_FIELD_NUMBER = 6; /** * .Equip equip = 6; * @return Whether the equip field is set. */ @java.lang.Override public boolean hasEquip() { return detailCase_ == 6; } /** * .Equip equip = 6; * @return The equip. */ @java.lang.Override public emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip() { if (detailCase_ == 6) { return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; } return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); } /** * .Equip equip = 6; */ @java.lang.Override public emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder() { if (detailCase_ == 6) { return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; } return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); } public static final int FURNITURE_FIELD_NUMBER = 7; /** * .Furniture furniture = 7; * @return Whether the furniture field is set. */ @java.lang.Override public boolean hasFurniture() { return detailCase_ == 7; } /** * .Furniture furniture = 7; * @return The furniture. */ @java.lang.Override public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture() { if (detailCase_ == 7) { return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; } return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); } /** * .Furniture furniture = 7; */ @java.lang.Override public emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder getFurnitureOrBuilder() { if (detailCase_ == 7) { return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; } return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (itemId_ != 0) { output.writeUInt32(1, itemId_); } if (guid_ != 0L) { output.writeUInt64(2, guid_); } if (detailCase_ == 5) { output.writeMessage(5, (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_); } if (detailCase_ == 6) { output.writeMessage(6, (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_); } if (detailCase_ == 7) { output.writeMessage(7, (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (itemId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, itemId_); } if (guid_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, guid_); } if (detailCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_); } if (detailCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_); } if (detailCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof emu.grasscutter.net.proto.ItemOuterClass.Item)) { return super.equals(obj); } emu.grasscutter.net.proto.ItemOuterClass.Item other = (emu.grasscutter.net.proto.ItemOuterClass.Item) obj; if (getItemId() != other.getItemId()) return false; if (getGuid() != other.getGuid()) return false; if (!getDetailCase().equals(other.getDetailCase())) return false; switch (detailCase_) { case 5: if (!getMaterial() .equals(other.getMaterial())) return false; break; case 6: if (!getEquip() .equals(other.getEquip())) return false; break; case 7: if (!getFurniture() .equals(other.getFurniture())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ITEM_ID_FIELD_NUMBER; hash = (53 * hash) + getItemId(); hash = (37 * hash) + GUID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGuid()); switch (detailCase_) { case 5: hash = (37 * hash) + MATERIAL_FIELD_NUMBER; hash = (53 * hash) + getMaterial().hashCode(); break; case 6: hash = (37 * hash) + EQUIP_FIELD_NUMBER; hash = (53 * hash) + getEquip().hashCode(); break; case 7: hash = (37 * hash) + FURNITURE_FIELD_NUMBER; hash = (53 * hash) + getFurniture().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.ItemOuterClass.Item parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(emu.grasscutter.net.proto.ItemOuterClass.Item prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Item} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Item) emu.grasscutter.net.proto.ItemOuterClass.ItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.ItemOuterClass.Item.class, emu.grasscutter.net.proto.ItemOuterClass.Item.Builder.class); } // Construct using emu.grasscutter.net.proto.ItemOuterClass.Item.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); itemId_ = 0; guid_ = 0L; detailCase_ = 0; detail_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.ItemOuterClass.internal_static_Item_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.ItemOuterClass.Item getDefaultInstanceForType() { return emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.ItemOuterClass.Item build() { emu.grasscutter.net.proto.ItemOuterClass.Item result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.ItemOuterClass.Item buildPartial() { emu.grasscutter.net.proto.ItemOuterClass.Item result = new emu.grasscutter.net.proto.ItemOuterClass.Item(this); result.itemId_ = itemId_; result.guid_ = guid_; if (detailCase_ == 5) { if (materialBuilder_ == null) { result.detail_ = detail_; } else { result.detail_ = materialBuilder_.build(); } } if (detailCase_ == 6) { if (equipBuilder_ == null) { result.detail_ = detail_; } else { result.detail_ = equipBuilder_.build(); } } if (detailCase_ == 7) { if (furnitureBuilder_ == null) { result.detail_ = detail_; } else { result.detail_ = furnitureBuilder_.build(); } } result.detailCase_ = detailCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof emu.grasscutter.net.proto.ItemOuterClass.Item) { return mergeFrom((emu.grasscutter.net.proto.ItemOuterClass.Item)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.ItemOuterClass.Item other) { if (other == emu.grasscutter.net.proto.ItemOuterClass.Item.getDefaultInstance()) return this; if (other.getItemId() != 0) { setItemId(other.getItemId()); } if (other.getGuid() != 0L) { setGuid(other.getGuid()); } switch (other.getDetailCase()) { case MATERIAL: { mergeMaterial(other.getMaterial()); break; } case EQUIP: { mergeEquip(other.getEquip()); break; } case FURNITURE: { mergeFurniture(other.getFurniture()); break; } case DETAIL_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { emu.grasscutter.net.proto.ItemOuterClass.Item parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.ItemOuterClass.Item) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int detailCase_ = 0; private java.lang.Object detail_; public DetailCase getDetailCase() { return DetailCase.forNumber( detailCase_); } public Builder clearDetail() { detailCase_ = 0; detail_ = null; onChanged(); return this; } private int itemId_ ; /** * uint32 item_id = 1; * @return The itemId. */ @java.lang.Override public int getItemId() { return itemId_; } /** * uint32 item_id = 1; * @param value The itemId to set. * @return This builder for chaining. */ public Builder setItemId(int value) { itemId_ = value; onChanged(); return this; } /** * uint32 item_id = 1; * @return This builder for chaining. */ public Builder clearItemId() { itemId_ = 0; onChanged(); return this; } private long guid_ ; /** * uint64 guid = 2; * @return The guid. */ @java.lang.Override public long getGuid() { return guid_; } /** * uint64 guid = 2; * @param value The guid to set. * @return This builder for chaining. */ public Builder setGuid(long value) { guid_ = value; onChanged(); return this; } /** * uint64 guid = 2; * @return This builder for chaining. */ public Builder clearGuid() { guid_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.MaterialOuterClass.Material, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder, emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder> materialBuilder_; /** * .Material material = 5; * @return Whether the material field is set. */ @java.lang.Override public boolean hasMaterial() { return detailCase_ == 5; } /** * .Material material = 5; * @return The material. */ @java.lang.Override public emu.grasscutter.net.proto.MaterialOuterClass.Material getMaterial() { if (materialBuilder_ == null) { if (detailCase_ == 5) { return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; } return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); } else { if (detailCase_ == 5) { return materialBuilder_.getMessage(); } return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); } } /** * .Material material = 5; */ public Builder setMaterial(emu.grasscutter.net.proto.MaterialOuterClass.Material value) { if (materialBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { materialBuilder_.setMessage(value); } detailCase_ = 5; return this; } /** * .Material material = 5; */ public Builder setMaterial( emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder builderForValue) { if (materialBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { materialBuilder_.setMessage(builderForValue.build()); } detailCase_ = 5; return this; } /** * .Material material = 5; */ public Builder mergeMaterial(emu.grasscutter.net.proto.MaterialOuterClass.Material value) { if (materialBuilder_ == null) { if (detailCase_ == 5 && detail_ != emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance()) { detail_ = emu.grasscutter.net.proto.MaterialOuterClass.Material.newBuilder((emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_) .mergeFrom(value).buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 5) { materialBuilder_.mergeFrom(value); } materialBuilder_.setMessage(value); } detailCase_ = 5; return this; } /** * .Material material = 5; */ public Builder clearMaterial() { if (materialBuilder_ == null) { if (detailCase_ == 5) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 5) { detailCase_ = 0; detail_ = null; } materialBuilder_.clear(); } return this; } /** * .Material material = 5; */ public emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder getMaterialBuilder() { return getMaterialFieldBuilder().getBuilder(); } /** * .Material material = 5; */ @java.lang.Override public emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder getMaterialOrBuilder() { if ((detailCase_ == 5) && (materialBuilder_ != null)) { return materialBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 5) { return (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_; } return emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); } } /** * .Material material = 5; */ private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.MaterialOuterClass.Material, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder, emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder> getMaterialFieldBuilder() { if (materialBuilder_ == null) { if (!(detailCase_ == 5)) { detail_ = emu.grasscutter.net.proto.MaterialOuterClass.Material.getDefaultInstance(); } materialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.MaterialOuterClass.Material, emu.grasscutter.net.proto.MaterialOuterClass.Material.Builder, emu.grasscutter.net.proto.MaterialOuterClass.MaterialOrBuilder>( (emu.grasscutter.net.proto.MaterialOuterClass.Material) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 5; onChanged();; return materialBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.EquipOuterClass.Equip, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder, emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder> equipBuilder_; /** * .Equip equip = 6; * @return Whether the equip field is set. */ @java.lang.Override public boolean hasEquip() { return detailCase_ == 6; } /** * .Equip equip = 6; * @return The equip. */ @java.lang.Override public emu.grasscutter.net.proto.EquipOuterClass.Equip getEquip() { if (equipBuilder_ == null) { if (detailCase_ == 6) { return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; } return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); } else { if (detailCase_ == 6) { return equipBuilder_.getMessage(); } return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); } } /** * .Equip equip = 6; */ public Builder setEquip(emu.grasscutter.net.proto.EquipOuterClass.Equip value) { if (equipBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { equipBuilder_.setMessage(value); } detailCase_ = 6; return this; } /** * .Equip equip = 6; */ public Builder setEquip( emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder builderForValue) { if (equipBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { equipBuilder_.setMessage(builderForValue.build()); } detailCase_ = 6; return this; } /** * .Equip equip = 6; */ public Builder mergeEquip(emu.grasscutter.net.proto.EquipOuterClass.Equip value) { if (equipBuilder_ == null) { if (detailCase_ == 6 && detail_ != emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance()) { detail_ = emu.grasscutter.net.proto.EquipOuterClass.Equip.newBuilder((emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_) .mergeFrom(value).buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 6) { equipBuilder_.mergeFrom(value); } equipBuilder_.setMessage(value); } detailCase_ = 6; return this; } /** * .Equip equip = 6; */ public Builder clearEquip() { if (equipBuilder_ == null) { if (detailCase_ == 6) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 6) { detailCase_ = 0; detail_ = null; } equipBuilder_.clear(); } return this; } /** * .Equip equip = 6; */ public emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder getEquipBuilder() { return getEquipFieldBuilder().getBuilder(); } /** * .Equip equip = 6; */ @java.lang.Override public emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder getEquipOrBuilder() { if ((detailCase_ == 6) && (equipBuilder_ != null)) { return equipBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 6) { return (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_; } return emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); } } /** * .Equip equip = 6; */ private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.EquipOuterClass.Equip, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder, emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder> getEquipFieldBuilder() { if (equipBuilder_ == null) { if (!(detailCase_ == 6)) { detail_ = emu.grasscutter.net.proto.EquipOuterClass.Equip.getDefaultInstance(); } equipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.EquipOuterClass.Equip, emu.grasscutter.net.proto.EquipOuterClass.Equip.Builder, emu.grasscutter.net.proto.EquipOuterClass.EquipOrBuilder>( (emu.grasscutter.net.proto.EquipOuterClass.Equip) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 6; onChanged();; return equipBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.FurnitureOuterClass.Furniture, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder, emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder> furnitureBuilder_; /** * .Furniture furniture = 7; * @return Whether the furniture field is set. */ @java.lang.Override public boolean hasFurniture() { return detailCase_ == 7; } /** * .Furniture furniture = 7; * @return The furniture. */ @java.lang.Override public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture getFurniture() { if (furnitureBuilder_ == null) { if (detailCase_ == 7) { return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; } return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); } else { if (detailCase_ == 7) { return furnitureBuilder_.getMessage(); } return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); } } /** * .Furniture furniture = 7; */ public Builder setFurniture(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture value) { if (furnitureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } detail_ = value; onChanged(); } else { furnitureBuilder_.setMessage(value); } detailCase_ = 7; return this; } /** * .Furniture furniture = 7; */ public Builder setFurniture( emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder builderForValue) { if (furnitureBuilder_ == null) { detail_ = builderForValue.build(); onChanged(); } else { furnitureBuilder_.setMessage(builderForValue.build()); } detailCase_ = 7; return this; } /** * .Furniture furniture = 7; */ public Builder mergeFurniture(emu.grasscutter.net.proto.FurnitureOuterClass.Furniture value) { if (furnitureBuilder_ == null) { if (detailCase_ == 7 && detail_ != emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance()) { detail_ = emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.newBuilder((emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_) .mergeFrom(value).buildPartial(); } else { detail_ = value; } onChanged(); } else { if (detailCase_ == 7) { furnitureBuilder_.mergeFrom(value); } furnitureBuilder_.setMessage(value); } detailCase_ = 7; return this; } /** * .Furniture furniture = 7; */ public Builder clearFurniture() { if (furnitureBuilder_ == null) { if (detailCase_ == 7) { detailCase_ = 0; detail_ = null; onChanged(); } } else { if (detailCase_ == 7) { detailCase_ = 0; detail_ = null; } furnitureBuilder_.clear(); } return this; } /** * .Furniture furniture = 7; */ public emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder getFurnitureBuilder() { return getFurnitureFieldBuilder().getBuilder(); } /** * .Furniture furniture = 7; */ @java.lang.Override public emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder getFurnitureOrBuilder() { if ((detailCase_ == 7) && (furnitureBuilder_ != null)) { return furnitureBuilder_.getMessageOrBuilder(); } else { if (detailCase_ == 7) { return (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_; } return emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); } } /** * .Furniture furniture = 7; */ private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.FurnitureOuterClass.Furniture, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder, emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder> getFurnitureFieldBuilder() { if (furnitureBuilder_ == null) { if (!(detailCase_ == 7)) { detail_ = emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.getDefaultInstance(); } furnitureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.FurnitureOuterClass.Furniture, emu.grasscutter.net.proto.FurnitureOuterClass.Furniture.Builder, emu.grasscutter.net.proto.FurnitureOuterClass.FurnitureOrBuilder>( (emu.grasscutter.net.proto.FurnitureOuterClass.Furniture) detail_, getParentForChildren(), isClean()); detail_ = null; } detailCase_ = 7; onChanged();; return furnitureBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Item) } // @@protoc_insertion_point(class_scope:Item) private static final emu.grasscutter.net.proto.ItemOuterClass.Item DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ItemOuterClass.Item(); } public static emu.grasscutter.net.proto.ItemOuterClass.Item getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Item parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Item(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public emu.grasscutter.net.proto.ItemOuterClass.Item getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Item_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Item_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\nItem.proto\032\013Equip.proto\032\017Furniture.pro" + "to\032\016Material.proto\"\210\001\n\004Item\022\017\n\007item_id\030\001" + " \001(\r\022\014\n\004guid\030\002 \001(\004\022\035\n\010material\030\005 \001(\0132\t.M" + "aterialH\000\022\027\n\005equip\030\006 \001(\0132\006.EquipH\000\022\037\n\tfu" + "rniture\030\007 \001(\0132\n.FurnitureH\000B\010\n\006detailB\033\n" + "\031emu.grasscutter.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { emu.grasscutter.net.proto.EquipOuterClass.getDescriptor(), emu.grasscutter.net.proto.FurnitureOuterClass.getDescriptor(), emu.grasscutter.net.proto.MaterialOuterClass.getDescriptor(), }); internal_static_Item_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Item_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Item_descriptor, new java.lang.String[] { "ItemId", "Guid", "Material", "Equip", "Furniture", "Detail", }); emu.grasscutter.net.proto.EquipOuterClass.getDescriptor(); emu.grasscutter.net.proto.FurnitureOuterClass.getDescriptor(); emu.grasscutter.net.proto.MaterialOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }