// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DungeonPreloadMonsterNotify.proto
package emu.grasscutter.net.proto;
public final class DungeonPreloadMonsterNotifyOuterClass {
private DungeonPreloadMonsterNotifyOuterClass() {}
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 DungeonPreloadMonsterNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:DungeonPreloadMonsterNotify)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .PlatformType platform_list = 2;
* @return A list containing the platformList.
*/
java.util.List getPlatformListList();
/**
* repeated .PlatformType platform_list = 2;
* @return The count of platformList.
*/
int getPlatformListCount();
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the element to return.
* @return The platformList at the given index.
*/
emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType getPlatformList(int index);
/**
* repeated .PlatformType platform_list = 2;
* @return A list containing the enum numeric values on the wire for platformList.
*/
java.util.List
getPlatformListValueList();
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of platformList at the given index.
*/
int getPlatformListValue(int index);
/**
* repeated uint32 monster_id_list = 8;
* @return A list containing the monsterIdList.
*/
java.util.List getMonsterIdListList();
/**
* repeated uint32 monster_id_list = 8;
* @return The count of monsterIdList.
*/
int getMonsterIdListCount();
/**
* repeated uint32 monster_id_list = 8;
* @param index The index of the element to return.
* @return The monsterIdList at the given index.
*/
int getMonsterIdList(int index);
}
/**
* Protobuf type {@code DungeonPreloadMonsterNotify}
*/
public static final class DungeonPreloadMonsterNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:DungeonPreloadMonsterNotify)
DungeonPreloadMonsterNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use DungeonPreloadMonsterNotify.newBuilder() to construct.
private DungeonPreloadMonsterNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DungeonPreloadMonsterNotify() {
platformList_ = java.util.Collections.emptyList();
monsterIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DungeonPreloadMonsterNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DungeonPreloadMonsterNotify(
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 16: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
platformList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
platformList_.add(rawValue);
break;
}
case 18: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
platformList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
platformList_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
monsterIdList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
monsterIdList_.addInt(input.readUInt32());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
monsterIdList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
monsterIdList_.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_ & 0x00000001) != 0)) {
platformList_ = java.util.Collections.unmodifiableList(platformList_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
monsterIdList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.internal_static_DungeonPreloadMonsterNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.internal_static_DungeonPreloadMonsterNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.class, emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.Builder.class);
}
public static final int PLATFORM_LIST_FIELD_NUMBER = 2;
private java.util.List platformList_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType> platformList_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType>() {
public emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType result = emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.valueOf(from);
return result == null ? emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType.UNRECOGNIZED : result;
}
};
/**
* repeated .PlatformType platform_list = 2;
* @return A list containing the platformList.
*/
@java.lang.Override
public java.util.List getPlatformListList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType>(platformList_, platformList_converter_);
}
/**
* repeated .PlatformType platform_list = 2;
* @return The count of platformList.
*/
@java.lang.Override
public int getPlatformListCount() {
return platformList_.size();
}
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the element to return.
* @return The platformList at the given index.
*/
@java.lang.Override
public emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType getPlatformList(int index) {
return platformList_converter_.convert(platformList_.get(index));
}
/**
* repeated .PlatformType platform_list = 2;
* @return A list containing the enum numeric values on the wire for platformList.
*/
@java.lang.Override
public java.util.List
getPlatformListValueList() {
return platformList_;
}
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of platformList at the given index.
*/
@java.lang.Override
public int getPlatformListValue(int index) {
return platformList_.get(index);
}
private int platformListMemoizedSerializedSize;
public static final int MONSTER_ID_LIST_FIELD_NUMBER = 8;
private com.google.protobuf.Internal.IntList monsterIdList_;
/**
* repeated uint32 monster_id_list = 8;
* @return A list containing the monsterIdList.
*/
@java.lang.Override
public java.util.List
getMonsterIdListList() {
return monsterIdList_;
}
/**
* repeated uint32 monster_id_list = 8;
* @return The count of monsterIdList.
*/
public int getMonsterIdListCount() {
return monsterIdList_.size();
}
/**
* repeated uint32 monster_id_list = 8;
* @param index The index of the element to return.
* @return The monsterIdList at the given index.
*/
public int getMonsterIdList(int index) {
return monsterIdList_.getInt(index);
}
private int monsterIdListMemoizedSerializedSize = -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 (getPlatformListList().size() > 0) {
output.writeUInt32NoTag(18);
output.writeUInt32NoTag(platformListMemoizedSerializedSize);
}
for (int i = 0; i < platformList_.size(); i++) {
output.writeEnumNoTag(platformList_.get(i));
}
if (getMonsterIdListList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(monsterIdListMemoizedSerializedSize);
}
for (int i = 0; i < monsterIdList_.size(); i++) {
output.writeUInt32NoTag(monsterIdList_.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 < platformList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(platformList_.get(i));
}
size += dataSize;
if (!getPlatformListList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}platformListMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < monsterIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(monsterIdList_.getInt(i));
}
size += dataSize;
if (!getMonsterIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
monsterIdListMemoizedSerializedSize = 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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify other = (emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify) obj;
if (!platformList_.equals(other.platformList_)) return false;
if (!getMonsterIdListList()
.equals(other.getMonsterIdListList())) 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 (getPlatformListCount() > 0) {
hash = (37 * hash) + PLATFORM_LIST_FIELD_NUMBER;
hash = (53 * hash) + platformList_.hashCode();
}
if (getMonsterIdListCount() > 0) {
hash = (37 * hash) + MONSTER_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getMonsterIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify 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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify 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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify 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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify 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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify 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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify 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 DungeonPreloadMonsterNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:DungeonPreloadMonsterNotify)
emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.internal_static_DungeonPreloadMonsterNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.internal_static_DungeonPreloadMonsterNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.class, emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.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();
platformList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
monsterIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.internal_static_DungeonPreloadMonsterNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify build() {
emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify buildPartial() {
emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify result = new emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
platformList_ = java.util.Collections.unmodifiableList(platformList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.platformList_ = platformList_;
if (((bitField0_ & 0x00000002) != 0)) {
monsterIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.monsterIdList_ = monsterIdList_;
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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify) {
return mergeFrom((emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify other) {
if (other == emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify.getDefaultInstance()) return this;
if (!other.platformList_.isEmpty()) {
if (platformList_.isEmpty()) {
platformList_ = other.platformList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePlatformListIsMutable();
platformList_.addAll(other.platformList_);
}
onChanged();
}
if (!other.monsterIdList_.isEmpty()) {
if (monsterIdList_.isEmpty()) {
monsterIdList_ = other.monsterIdList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMonsterIdListIsMutable();
monsterIdList_.addAll(other.monsterIdList_);
}
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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List platformList_ =
java.util.Collections.emptyList();
private void ensurePlatformListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
platformList_ = new java.util.ArrayList(platformList_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .PlatformType platform_list = 2;
* @return A list containing the platformList.
*/
public java.util.List getPlatformListList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType>(platformList_, platformList_converter_);
}
/**
* repeated .PlatformType platform_list = 2;
* @return The count of platformList.
*/
public int getPlatformListCount() {
return platformList_.size();
}
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the element to return.
* @return The platformList at the given index.
*/
public emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType getPlatformList(int index) {
return platformList_converter_.convert(platformList_.get(index));
}
/**
* repeated .PlatformType platform_list = 2;
* @param index The index to set the value at.
* @param value The platformList to set.
* @return This builder for chaining.
*/
public Builder setPlatformList(
int index, emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType value) {
if (value == null) {
throw new NullPointerException();
}
ensurePlatformListIsMutable();
platformList_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .PlatformType platform_list = 2;
* @param value The platformList to add.
* @return This builder for chaining.
*/
public Builder addPlatformList(emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType value) {
if (value == null) {
throw new NullPointerException();
}
ensurePlatformListIsMutable();
platformList_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .PlatformType platform_list = 2;
* @param values The platformList to add.
* @return This builder for chaining.
*/
public Builder addAllPlatformList(
java.lang.Iterable extends emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType> values) {
ensurePlatformListIsMutable();
for (emu.grasscutter.net.proto.PlatformTypeOuterClass.PlatformType value : values) {
platformList_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .PlatformType platform_list = 2;
* @return This builder for chaining.
*/
public Builder clearPlatformList() {
platformList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .PlatformType platform_list = 2;
* @return A list containing the enum numeric values on the wire for platformList.
*/
public java.util.List
getPlatformListValueList() {
return java.util.Collections.unmodifiableList(platformList_);
}
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of platformList at the given index.
*/
public int getPlatformListValue(int index) {
return platformList_.get(index);
}
/**
* repeated .PlatformType platform_list = 2;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of platformList at the given index.
* @return This builder for chaining.
*/
public Builder setPlatformListValue(
int index, int value) {
ensurePlatformListIsMutable();
platformList_.set(index, value);
onChanged();
return this;
}
/**
* repeated .PlatformType platform_list = 2;
* @param value The enum numeric value on the wire for platformList to add.
* @return This builder for chaining.
*/
public Builder addPlatformListValue(int value) {
ensurePlatformListIsMutable();
platformList_.add(value);
onChanged();
return this;
}
/**
* repeated .PlatformType platform_list = 2;
* @param values The enum numeric values on the wire for platformList to add.
* @return This builder for chaining.
*/
public Builder addAllPlatformListValue(
java.lang.Iterable values) {
ensurePlatformListIsMutable();
for (int value : values) {
platformList_.add(value);
}
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList monsterIdList_ = emptyIntList();
private void ensureMonsterIdListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
monsterIdList_ = mutableCopy(monsterIdList_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 monster_id_list = 8;
* @return A list containing the monsterIdList.
*/
public java.util.List
getMonsterIdListList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(monsterIdList_) : monsterIdList_;
}
/**
* repeated uint32 monster_id_list = 8;
* @return The count of monsterIdList.
*/
public int getMonsterIdListCount() {
return monsterIdList_.size();
}
/**
* repeated uint32 monster_id_list = 8;
* @param index The index of the element to return.
* @return The monsterIdList at the given index.
*/
public int getMonsterIdList(int index) {
return monsterIdList_.getInt(index);
}
/**
* repeated uint32 monster_id_list = 8;
* @param index The index to set the value at.
* @param value The monsterIdList to set.
* @return This builder for chaining.
*/
public Builder setMonsterIdList(
int index, int value) {
ensureMonsterIdListIsMutable();
monsterIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 monster_id_list = 8;
* @param value The monsterIdList to add.
* @return This builder for chaining.
*/
public Builder addMonsterIdList(int value) {
ensureMonsterIdListIsMutable();
monsterIdList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 monster_id_list = 8;
* @param values The monsterIdList to add.
* @return This builder for chaining.
*/
public Builder addAllMonsterIdList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureMonsterIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, monsterIdList_);
onChanged();
return this;
}
/**
* repeated uint32 monster_id_list = 8;
* @return This builder for chaining.
*/
public Builder clearMonsterIdList() {
monsterIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
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:DungeonPreloadMonsterNotify)
}
// @@protoc_insertion_point(class_scope:DungeonPreloadMonsterNotify)
private static final emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify();
}
public static emu.grasscutter.net.proto.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DungeonPreloadMonsterNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DungeonPreloadMonsterNotify(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.DungeonPreloadMonsterNotifyOuterClass.DungeonPreloadMonsterNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_DungeonPreloadMonsterNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_DungeonPreloadMonsterNotify_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!DungeonPreloadMonsterNotify.proto\032\022Pla" +
"tformType.proto\"\\\n\033DungeonPreloadMonster" +
"Notify\022$\n\rplatform_list\030\002 \003(\0162\r.Platform" +
"Type\022\027\n\017monster_id_list\030\010 \003(\rB\033\n\031emu.gra" +
"sscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.PlatformTypeOuterClass.getDescriptor(),
});
internal_static_DungeonPreloadMonsterNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_DungeonPreloadMonsterNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_DungeonPreloadMonsterNotify_descriptor,
new java.lang.String[] { "PlatformList", "MonsterIdList", });
emu.grasscutter.net.proto.PlatformTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}