// Generated by the protocol buffer compiler. DO NOT EDIT! // source: MapLayerInfo.proto package emu.grasscutter.net.proto; public final class MapLayerInfoOuterClass { private MapLayerInfoOuterClass() {} 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 MapLayerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:MapLayerInfo) com.google.protobuf.MessageOrBuilder { /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return A list containing the unlockedMapLayerIdList. */ java.util.List getUnlockedMapLayerIdListList(); /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return The count of unlockedMapLayerIdList. */ int getUnlockedMapLayerIdListCount(); /** * repeated uint32 unlocked_map_layer_id_list = 11; * @param index The index of the element to return. * @return The unlockedMapLayerIdList at the given index. */ int getUnlockedMapLayerIdList(int index); /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return A list containing the unlockedMapLayerFloorIdList. */ java.util.List getUnlockedMapLayerFloorIdListList(); /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return The count of unlockedMapLayerFloorIdList. */ int getUnlockedMapLayerFloorIdListCount(); /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @param index The index of the element to return. * @return The unlockedMapLayerFloorIdList at the given index. */ int getUnlockedMapLayerFloorIdList(int index); /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return A list containing the unlockedMapLayerGroupIdList. */ java.util.List getUnlockedMapLayerGroupIdListList(); /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return The count of unlockedMapLayerGroupIdList. */ int getUnlockedMapLayerGroupIdListCount(); /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @param index The index of the element to return. * @return The unlockedMapLayerGroupIdList at the given index. */ int getUnlockedMapLayerGroupIdList(int index); } /** * Protobuf type {@code MapLayerInfo} */ public static final class MapLayerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:MapLayerInfo) MapLayerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MapLayerInfo.newBuilder() to construct. private MapLayerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapLayerInfo() { unlockedMapLayerIdList_ = emptyIntList(); unlockedMapLayerFloorIdList_ = emptyIntList(); unlockedMapLayerGroupIdList_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapLayerInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MapLayerInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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 24: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { unlockedMapLayerGroupIdList_ = newIntList(); mutable_bitField0_ |= 0x00000004; } unlockedMapLayerGroupIdList_.addInt(input.readUInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { unlockedMapLayerGroupIdList_ = newIntList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { unlockedMapLayerGroupIdList_.addInt(input.readUInt32()); } input.popLimit(limit); break; } case 88: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { unlockedMapLayerIdList_ = newIntList(); mutable_bitField0_ |= 0x00000001; } unlockedMapLayerIdList_.addInt(input.readUInt32()); break; } case 90: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { unlockedMapLayerIdList_ = newIntList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { unlockedMapLayerIdList_.addInt(input.readUInt32()); } input.popLimit(limit); break; } case 120: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { unlockedMapLayerFloorIdList_ = newIntList(); mutable_bitField0_ |= 0x00000002; } unlockedMapLayerFloorIdList_.addInt(input.readUInt32()); break; } case 122: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { unlockedMapLayerFloorIdList_ = newIntList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { unlockedMapLayerFloorIdList_.addInt(input.readUInt32()); } input.popLimit(limit); 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 { if (((mutable_bitField0_ & 0x00000004) != 0)) { unlockedMapLayerGroupIdList_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000001) != 0)) { unlockedMapLayerIdList_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { unlockedMapLayerFloorIdList_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.class, emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.Builder.class); } public static final int UNLOCKED_MAP_LAYER_ID_LIST_FIELD_NUMBER = 11; private com.google.protobuf.Internal.IntList unlockedMapLayerIdList_; /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return A list containing the unlockedMapLayerIdList. */ @java.lang.Override public java.util.List getUnlockedMapLayerIdListList() { return unlockedMapLayerIdList_; } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return The count of unlockedMapLayerIdList. */ public int getUnlockedMapLayerIdListCount() { return unlockedMapLayerIdList_.size(); } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @param index The index of the element to return. * @return The unlockedMapLayerIdList at the given index. */ public int getUnlockedMapLayerIdList(int index) { return unlockedMapLayerIdList_.getInt(index); } private int unlockedMapLayerIdListMemoizedSerializedSize = -1; public static final int UNLOCKED_MAP_LAYER_FLOOR_ID_LIST_FIELD_NUMBER = 15; private com.google.protobuf.Internal.IntList unlockedMapLayerFloorIdList_; /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return A list containing the unlockedMapLayerFloorIdList. */ @java.lang.Override public java.util.List getUnlockedMapLayerFloorIdListList() { return unlockedMapLayerFloorIdList_; } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return The count of unlockedMapLayerFloorIdList. */ public int getUnlockedMapLayerFloorIdListCount() { return unlockedMapLayerFloorIdList_.size(); } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @param index The index of the element to return. * @return The unlockedMapLayerFloorIdList at the given index. */ public int getUnlockedMapLayerFloorIdList(int index) { return unlockedMapLayerFloorIdList_.getInt(index); } private int unlockedMapLayerFloorIdListMemoizedSerializedSize = -1; public static final int UNLOCKED_MAP_LAYER_GROUP_ID_LIST_FIELD_NUMBER = 3; private com.google.protobuf.Internal.IntList unlockedMapLayerGroupIdList_; /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return A list containing the unlockedMapLayerGroupIdList. */ @java.lang.Override public java.util.List getUnlockedMapLayerGroupIdListList() { return unlockedMapLayerGroupIdList_; } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return The count of unlockedMapLayerGroupIdList. */ public int getUnlockedMapLayerGroupIdListCount() { return unlockedMapLayerGroupIdList_.size(); } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @param index The index of the element to return. * @return The unlockedMapLayerGroupIdList at the given index. */ public int getUnlockedMapLayerGroupIdList(int index) { return unlockedMapLayerGroupIdList_.getInt(index); } private int unlockedMapLayerGroupIdListMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (getUnlockedMapLayerGroupIdListList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(unlockedMapLayerGroupIdListMemoizedSerializedSize); } for (int i = 0; i < unlockedMapLayerGroupIdList_.size(); i++) { output.writeUInt32NoTag(unlockedMapLayerGroupIdList_.getInt(i)); } if (getUnlockedMapLayerIdListList().size() > 0) { output.writeUInt32NoTag(90); output.writeUInt32NoTag(unlockedMapLayerIdListMemoizedSerializedSize); } for (int i = 0; i < unlockedMapLayerIdList_.size(); i++) { output.writeUInt32NoTag(unlockedMapLayerIdList_.getInt(i)); } if (getUnlockedMapLayerFloorIdListList().size() > 0) { output.writeUInt32NoTag(122); output.writeUInt32NoTag(unlockedMapLayerFloorIdListMemoizedSerializedSize); } for (int i = 0; i < unlockedMapLayerFloorIdList_.size(); i++) { output.writeUInt32NoTag(unlockedMapLayerFloorIdList_.getInt(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < unlockedMapLayerGroupIdList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(unlockedMapLayerGroupIdList_.getInt(i)); } size += dataSize; if (!getUnlockedMapLayerGroupIdListList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } unlockedMapLayerGroupIdListMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < unlockedMapLayerIdList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(unlockedMapLayerIdList_.getInt(i)); } size += dataSize; if (!getUnlockedMapLayerIdListList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } unlockedMapLayerIdListMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < unlockedMapLayerFloorIdList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(unlockedMapLayerFloorIdList_.getInt(i)); } size += dataSize; if (!getUnlockedMapLayerFloorIdListList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } unlockedMapLayerFloorIdListMemoizedSerializedSize = dataSize; } 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.MapLayerInfoOuterClass.MapLayerInfo)) { return super.equals(obj); } emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo other = (emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo) obj; if (!getUnlockedMapLayerIdListList() .equals(other.getUnlockedMapLayerIdListList())) return false; if (!getUnlockedMapLayerFloorIdListList() .equals(other.getUnlockedMapLayerFloorIdListList())) return false; if (!getUnlockedMapLayerGroupIdListList() .equals(other.getUnlockedMapLayerGroupIdListList())) return false; 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(); if (getUnlockedMapLayerIdListCount() > 0) { hash = (37 * hash) + UNLOCKED_MAP_LAYER_ID_LIST_FIELD_NUMBER; hash = (53 * hash) + getUnlockedMapLayerIdListList().hashCode(); } if (getUnlockedMapLayerFloorIdListCount() > 0) { hash = (37 * hash) + UNLOCKED_MAP_LAYER_FLOOR_ID_LIST_FIELD_NUMBER; hash = (53 * hash) + getUnlockedMapLayerFloorIdListList().hashCode(); } if (getUnlockedMapLayerGroupIdListCount() > 0) { hash = (37 * hash) + UNLOCKED_MAP_LAYER_GROUP_ID_LIST_FIELD_NUMBER; hash = (53 * hash) + getUnlockedMapLayerGroupIdListList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo 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.MapLayerInfoOuterClass.MapLayerInfo 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 MapLayerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:MapLayerInfo) emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.class, emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.Builder.class); } // Construct using emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.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(); unlockedMapLayerIdList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); unlockedMapLayerFloorIdList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); unlockedMapLayerGroupIdList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.MapLayerInfoOuterClass.internal_static_MapLayerInfo_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo getDefaultInstanceForType() { return emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo build() { emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo buildPartial() { emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo result = new emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { unlockedMapLayerIdList_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.unlockedMapLayerIdList_ = unlockedMapLayerIdList_; if (((bitField0_ & 0x00000002) != 0)) { unlockedMapLayerFloorIdList_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.unlockedMapLayerFloorIdList_ = unlockedMapLayerFloorIdList_; if (((bitField0_ & 0x00000004) != 0)) { unlockedMapLayerGroupIdList_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.unlockedMapLayerGroupIdList_ = unlockedMapLayerGroupIdList_; 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.MapLayerInfoOuterClass.MapLayerInfo) { return mergeFrom((emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo other) { if (other == emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo.getDefaultInstance()) return this; if (!other.unlockedMapLayerIdList_.isEmpty()) { if (unlockedMapLayerIdList_.isEmpty()) { unlockedMapLayerIdList_ = other.unlockedMapLayerIdList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUnlockedMapLayerIdListIsMutable(); unlockedMapLayerIdList_.addAll(other.unlockedMapLayerIdList_); } onChanged(); } if (!other.unlockedMapLayerFloorIdList_.isEmpty()) { if (unlockedMapLayerFloorIdList_.isEmpty()) { unlockedMapLayerFloorIdList_ = other.unlockedMapLayerFloorIdList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUnlockedMapLayerFloorIdListIsMutable(); unlockedMapLayerFloorIdList_.addAll(other.unlockedMapLayerFloorIdList_); } onChanged(); } if (!other.unlockedMapLayerGroupIdList_.isEmpty()) { if (unlockedMapLayerGroupIdList_.isEmpty()) { unlockedMapLayerGroupIdList_ = other.unlockedMapLayerGroupIdList_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUnlockedMapLayerGroupIdListIsMutable(); unlockedMapLayerGroupIdList_.addAll(other.unlockedMapLayerGroupIdList_); } onChanged(); } 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.MapLayerInfoOuterClass.MapLayerInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Internal.IntList unlockedMapLayerIdList_ = emptyIntList(); private void ensureUnlockedMapLayerIdListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { unlockedMapLayerIdList_ = mutableCopy(unlockedMapLayerIdList_); bitField0_ |= 0x00000001; } } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return A list containing the unlockedMapLayerIdList. */ public java.util.List getUnlockedMapLayerIdListList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(unlockedMapLayerIdList_) : unlockedMapLayerIdList_; } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return The count of unlockedMapLayerIdList. */ public int getUnlockedMapLayerIdListCount() { return unlockedMapLayerIdList_.size(); } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @param index The index of the element to return. * @return The unlockedMapLayerIdList at the given index. */ public int getUnlockedMapLayerIdList(int index) { return unlockedMapLayerIdList_.getInt(index); } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @param index The index to set the value at. * @param value The unlockedMapLayerIdList to set. * @return This builder for chaining. */ public Builder setUnlockedMapLayerIdList( int index, int value) { ensureUnlockedMapLayerIdListIsMutable(); unlockedMapLayerIdList_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @param value The unlockedMapLayerIdList to add. * @return This builder for chaining. */ public Builder addUnlockedMapLayerIdList(int value) { ensureUnlockedMapLayerIdListIsMutable(); unlockedMapLayerIdList_.addInt(value); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @param values The unlockedMapLayerIdList to add. * @return This builder for chaining. */ public Builder addAllUnlockedMapLayerIdList( java.lang.Iterable values) { ensureUnlockedMapLayerIdListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unlockedMapLayerIdList_); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_id_list = 11; * @return This builder for chaining. */ public Builder clearUnlockedMapLayerIdList() { unlockedMapLayerIdList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.Internal.IntList unlockedMapLayerFloorIdList_ = emptyIntList(); private void ensureUnlockedMapLayerFloorIdListIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unlockedMapLayerFloorIdList_ = mutableCopy(unlockedMapLayerFloorIdList_); bitField0_ |= 0x00000002; } } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return A list containing the unlockedMapLayerFloorIdList. */ public java.util.List getUnlockedMapLayerFloorIdListList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(unlockedMapLayerFloorIdList_) : unlockedMapLayerFloorIdList_; } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return The count of unlockedMapLayerFloorIdList. */ public int getUnlockedMapLayerFloorIdListCount() { return unlockedMapLayerFloorIdList_.size(); } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @param index The index of the element to return. * @return The unlockedMapLayerFloorIdList at the given index. */ public int getUnlockedMapLayerFloorIdList(int index) { return unlockedMapLayerFloorIdList_.getInt(index); } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @param index The index to set the value at. * @param value The unlockedMapLayerFloorIdList to set. * @return This builder for chaining. */ public Builder setUnlockedMapLayerFloorIdList( int index, int value) { ensureUnlockedMapLayerFloorIdListIsMutable(); unlockedMapLayerFloorIdList_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @param value The unlockedMapLayerFloorIdList to add. * @return This builder for chaining. */ public Builder addUnlockedMapLayerFloorIdList(int value) { ensureUnlockedMapLayerFloorIdListIsMutable(); unlockedMapLayerFloorIdList_.addInt(value); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @param values The unlockedMapLayerFloorIdList to add. * @return This builder for chaining. */ public Builder addAllUnlockedMapLayerFloorIdList( java.lang.Iterable values) { ensureUnlockedMapLayerFloorIdListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unlockedMapLayerFloorIdList_); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_floor_id_list = 15; * @return This builder for chaining. */ public Builder clearUnlockedMapLayerFloorIdList() { unlockedMapLayerFloorIdList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private com.google.protobuf.Internal.IntList unlockedMapLayerGroupIdList_ = emptyIntList(); private void ensureUnlockedMapLayerGroupIdListIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unlockedMapLayerGroupIdList_ = mutableCopy(unlockedMapLayerGroupIdList_); bitField0_ |= 0x00000004; } } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return A list containing the unlockedMapLayerGroupIdList. */ public java.util.List getUnlockedMapLayerGroupIdListList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(unlockedMapLayerGroupIdList_) : unlockedMapLayerGroupIdList_; } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return The count of unlockedMapLayerGroupIdList. */ public int getUnlockedMapLayerGroupIdListCount() { return unlockedMapLayerGroupIdList_.size(); } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @param index The index of the element to return. * @return The unlockedMapLayerGroupIdList at the given index. */ public int getUnlockedMapLayerGroupIdList(int index) { return unlockedMapLayerGroupIdList_.getInt(index); } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @param index The index to set the value at. * @param value The unlockedMapLayerGroupIdList to set. * @return This builder for chaining. */ public Builder setUnlockedMapLayerGroupIdList( int index, int value) { ensureUnlockedMapLayerGroupIdListIsMutable(); unlockedMapLayerGroupIdList_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @param value The unlockedMapLayerGroupIdList to add. * @return This builder for chaining. */ public Builder addUnlockedMapLayerGroupIdList(int value) { ensureUnlockedMapLayerGroupIdListIsMutable(); unlockedMapLayerGroupIdList_.addInt(value); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @param values The unlockedMapLayerGroupIdList to add. * @return This builder for chaining. */ public Builder addAllUnlockedMapLayerGroupIdList( java.lang.Iterable values) { ensureUnlockedMapLayerGroupIdListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unlockedMapLayerGroupIdList_); onChanged(); return this; } /** * repeated uint32 unlocked_map_layer_group_id_list = 3; * @return This builder for chaining. */ public Builder clearUnlockedMapLayerGroupIdList() { unlockedMapLayerGroupIdList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @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:MapLayerInfo) } // @@protoc_insertion_point(class_scope:MapLayerInfo) private static final emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo(); } public static emu.grasscutter.net.proto.MapLayerInfoOuterClass.MapLayerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapLayerInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MapLayerInfo(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.MapLayerInfoOuterClass.MapLayerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_MapLayerInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_MapLayerInfo_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\022MapLayerInfo.proto\"\206\001\n\014MapLayerInfo\022\"\n" + "\032unlocked_map_layer_id_list\030\013 \003(\r\022(\n unl" + "ocked_map_layer_floor_id_list\030\017 \003(\r\022(\n u" + "nlocked_map_layer_group_id_list\030\003 \003(\rB\033\n" + "\031emu.grasscutter.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_MapLayerInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_MapLayerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_MapLayerInfo_descriptor, new java.lang.String[] { "UnlockedMapLayerIdList", "UnlockedMapLayerFloorIdList", "UnlockedMapLayerGroupIdList", }); } // @@protoc_insertion_point(outer_class_scope) }