emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grasscutter Show documentation
Show all versions of grasscutter Show documentation
A server software reimplementation for an anime game.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TreasureMapBonusChallengeInfo.proto
package emu.grasscutter.net.proto;
public final class TreasureMapBonusChallengeInfoOuterClass {
private TreasureMapBonusChallengeInfoOuterClass() {}
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 TreasureMapBonusChallengeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:TreasureMapBonusChallengeInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bool is_active = 6;
* @return The isActive.
*/
boolean getIsActive();
/**
* uint32 config_id = 5;
* @return The configId.
*/
int getConfigId();
/**
* map<uint32, bool> fragment_map = 1;
*/
int getFragmentMapCount();
/**
* map<uint32, bool> fragment_map = 1;
*/
boolean containsFragmentMap(
int key);
/**
* Use {@link #getFragmentMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getFragmentMap();
/**
* map<uint32, bool> fragment_map = 1;
*/
java.util.Map
getFragmentMapMap();
/**
* map<uint32, bool> fragment_map = 1;
*/
boolean getFragmentMapOrDefault(
int key,
boolean defaultValue);
/**
* map<uint32, bool> fragment_map = 1;
*/
boolean getFragmentMapOrThrow(
int key);
/**
* uint32 solution_id = 9;
* @return The solutionId.
*/
int getSolutionId();
/**
* bool is_done = 10;
* @return The isDone.
*/
boolean getIsDone();
}
/**
*
* Obf: DNIFECLOOPI
*
*
* Protobuf type {@code TreasureMapBonusChallengeInfo}
*/
public static final class TreasureMapBonusChallengeInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:TreasureMapBonusChallengeInfo)
TreasureMapBonusChallengeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TreasureMapBonusChallengeInfo.newBuilder() to construct.
private TreasureMapBonusChallengeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TreasureMapBonusChallengeInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TreasureMapBonusChallengeInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TreasureMapBonusChallengeInfo(
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 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
fragmentMap_ = com.google.protobuf.MapField.newMapField(
FragmentMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
fragmentMap__ = input.readMessage(
FragmentMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
fragmentMap_.getMutableMap().put(
fragmentMap__.getKey(), fragmentMap__.getValue());
break;
}
case 40: {
configId_ = input.readUInt32();
break;
}
case 48: {
isActive_ = input.readBool();
break;
}
case 72: {
solutionId_ = input.readUInt32();
break;
}
case 80: {
isDone_ = input.readBool();
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.TreasureMapBonusChallengeInfoOuterClass.internal_static_TreasureMapBonusChallengeInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetFragmentMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.internal_static_TreasureMapBonusChallengeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.class, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder.class);
}
public static final int IS_ACTIVE_FIELD_NUMBER = 6;
private boolean isActive_;
/**
* bool is_active = 6;
* @return The isActive.
*/
@java.lang.Override
public boolean getIsActive() {
return isActive_;
}
public static final int CONFIG_ID_FIELD_NUMBER = 5;
private int configId_;
/**
* uint32 config_id = 5;
* @return The configId.
*/
@java.lang.Override
public int getConfigId() {
return configId_;
}
public static final int FRAGMENT_MAP_FIELD_NUMBER = 1;
private static final class FragmentMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Boolean> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.internal_static_TreasureMapBonusChallengeInfo_FragmentMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.BOOL,
false);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Boolean> fragmentMap_;
private com.google.protobuf.MapField
internalGetFragmentMap() {
if (fragmentMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FragmentMapDefaultEntryHolder.defaultEntry);
}
return fragmentMap_;
}
public int getFragmentMapCount() {
return internalGetFragmentMap().getMap().size();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public boolean containsFragmentMap(
int key) {
return internalGetFragmentMap().getMap().containsKey(key);
}
/**
* Use {@link #getFragmentMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getFragmentMap() {
return getFragmentMapMap();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public java.util.Map getFragmentMapMap() {
return internalGetFragmentMap().getMap();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public boolean getFragmentMapOrDefault(
int key,
boolean defaultValue) {
java.util.Map map =
internalGetFragmentMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public boolean getFragmentMapOrThrow(
int key) {
java.util.Map map =
internalGetFragmentMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SOLUTION_ID_FIELD_NUMBER = 9;
private int solutionId_;
/**
* uint32 solution_id = 9;
* @return The solutionId.
*/
@java.lang.Override
public int getSolutionId() {
return solutionId_;
}
public static final int IS_DONE_FIELD_NUMBER = 10;
private boolean isDone_;
/**
* bool is_done = 10;
* @return The isDone.
*/
@java.lang.Override
public boolean getIsDone() {
return isDone_;
}
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 {
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetFragmentMap(),
FragmentMapDefaultEntryHolder.defaultEntry,
1);
if (configId_ != 0) {
output.writeUInt32(5, configId_);
}
if (isActive_ != false) {
output.writeBool(6, isActive_);
}
if (solutionId_ != 0) {
output.writeUInt32(9, solutionId_);
}
if (isDone_ != false) {
output.writeBool(10, isDone_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetFragmentMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
fragmentMap__ = FragmentMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, fragmentMap__);
}
if (configId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, configId_);
}
if (isActive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, isActive_);
}
if (solutionId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, solutionId_);
}
if (isDone_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, isDone_);
}
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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo other = (emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo) obj;
if (getIsActive()
!= other.getIsActive()) return false;
if (getConfigId()
!= other.getConfigId()) return false;
if (!internalGetFragmentMap().equals(
other.internalGetFragmentMap())) return false;
if (getSolutionId()
!= other.getSolutionId()) return false;
if (getIsDone()
!= other.getIsDone()) 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();
hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsActive());
hash = (37 * hash) + CONFIG_ID_FIELD_NUMBER;
hash = (53 * hash) + getConfigId();
if (!internalGetFragmentMap().getMap().isEmpty()) {
hash = (37 * hash) + FRAGMENT_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetFragmentMap().hashCode();
}
hash = (37 * hash) + SOLUTION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSolutionId();
hash = (37 * hash) + IS_DONE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsDone());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo 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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo 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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo 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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo 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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo 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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo 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;
}
/**
*
* Obf: DNIFECLOOPI
*
*
* Protobuf type {@code TreasureMapBonusChallengeInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:TreasureMapBonusChallengeInfo)
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.internal_static_TreasureMapBonusChallengeInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetFragmentMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableFragmentMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.internal_static_TreasureMapBonusChallengeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.class, emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.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();
isActive_ = false;
configId_ = 0;
internalGetMutableFragmentMap().clear();
solutionId_ = 0;
isDone_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.internal_static_TreasureMapBonusChallengeInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo build() {
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo buildPartial() {
emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo result = new emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo(this);
int from_bitField0_ = bitField0_;
result.isActive_ = isActive_;
result.configId_ = configId_;
result.fragmentMap_ = internalGetFragmentMap();
result.fragmentMap_.makeImmutable();
result.solutionId_ = solutionId_;
result.isDone_ = isDone_;
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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo) {
return mergeFrom((emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo other) {
if (other == emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo.getDefaultInstance()) return this;
if (other.getIsActive() != false) {
setIsActive(other.getIsActive());
}
if (other.getConfigId() != 0) {
setConfigId(other.getConfigId());
}
internalGetMutableFragmentMap().mergeFrom(
other.internalGetFragmentMap());
if (other.getSolutionId() != 0) {
setSolutionId(other.getSolutionId());
}
if (other.getIsDone() != false) {
setIsDone(other.getIsDone());
}
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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean isActive_ ;
/**
* bool is_active = 6;
* @return The isActive.
*/
@java.lang.Override
public boolean getIsActive() {
return isActive_;
}
/**
* bool is_active = 6;
* @param value The isActive to set.
* @return This builder for chaining.
*/
public Builder setIsActive(boolean value) {
isActive_ = value;
onChanged();
return this;
}
/**
* bool is_active = 6;
* @return This builder for chaining.
*/
public Builder clearIsActive() {
isActive_ = false;
onChanged();
return this;
}
private int configId_ ;
/**
* uint32 config_id = 5;
* @return The configId.
*/
@java.lang.Override
public int getConfigId() {
return configId_;
}
/**
* uint32 config_id = 5;
* @param value The configId to set.
* @return This builder for chaining.
*/
public Builder setConfigId(int value) {
configId_ = value;
onChanged();
return this;
}
/**
* uint32 config_id = 5;
* @return This builder for chaining.
*/
public Builder clearConfigId() {
configId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Boolean> fragmentMap_;
private com.google.protobuf.MapField
internalGetFragmentMap() {
if (fragmentMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FragmentMapDefaultEntryHolder.defaultEntry);
}
return fragmentMap_;
}
private com.google.protobuf.MapField
internalGetMutableFragmentMap() {
onChanged();;
if (fragmentMap_ == null) {
fragmentMap_ = com.google.protobuf.MapField.newMapField(
FragmentMapDefaultEntryHolder.defaultEntry);
}
if (!fragmentMap_.isMutable()) {
fragmentMap_ = fragmentMap_.copy();
}
return fragmentMap_;
}
public int getFragmentMapCount() {
return internalGetFragmentMap().getMap().size();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public boolean containsFragmentMap(
int key) {
return internalGetFragmentMap().getMap().containsKey(key);
}
/**
* Use {@link #getFragmentMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getFragmentMap() {
return getFragmentMapMap();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public java.util.Map getFragmentMapMap() {
return internalGetFragmentMap().getMap();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public boolean getFragmentMapOrDefault(
int key,
boolean defaultValue) {
java.util.Map map =
internalGetFragmentMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<uint32, bool> fragment_map = 1;
*/
@java.lang.Override
public boolean getFragmentMapOrThrow(
int key) {
java.util.Map map =
internalGetFragmentMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearFragmentMap() {
internalGetMutableFragmentMap().getMutableMap()
.clear();
return this;
}
/**
* map<uint32, bool> fragment_map = 1;
*/
public Builder removeFragmentMap(
int key) {
internalGetMutableFragmentMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableFragmentMap() {
return internalGetMutableFragmentMap().getMutableMap();
}
/**
* map<uint32, bool> fragment_map = 1;
*/
public Builder putFragmentMap(
int key,
boolean value) {
internalGetMutableFragmentMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<uint32, bool> fragment_map = 1;
*/
public Builder putAllFragmentMap(
java.util.Map values) {
internalGetMutableFragmentMap().getMutableMap()
.putAll(values);
return this;
}
private int solutionId_ ;
/**
* uint32 solution_id = 9;
* @return The solutionId.
*/
@java.lang.Override
public int getSolutionId() {
return solutionId_;
}
/**
* uint32 solution_id = 9;
* @param value The solutionId to set.
* @return This builder for chaining.
*/
public Builder setSolutionId(int value) {
solutionId_ = value;
onChanged();
return this;
}
/**
* uint32 solution_id = 9;
* @return This builder for chaining.
*/
public Builder clearSolutionId() {
solutionId_ = 0;
onChanged();
return this;
}
private boolean isDone_ ;
/**
* bool is_done = 10;
* @return The isDone.
*/
@java.lang.Override
public boolean getIsDone() {
return isDone_;
}
/**
* bool is_done = 10;
* @param value The isDone to set.
* @return This builder for chaining.
*/
public Builder setIsDone(boolean value) {
isDone_ = value;
onChanged();
return this;
}
/**
* bool is_done = 10;
* @return This builder for chaining.
*/
public Builder clearIsDone() {
isDone_ = false;
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:TreasureMapBonusChallengeInfo)
}
// @@protoc_insertion_point(class_scope:TreasureMapBonusChallengeInfo)
private static final emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo();
}
public static emu.grasscutter.net.proto.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TreasureMapBonusChallengeInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TreasureMapBonusChallengeInfo(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.TreasureMapBonusChallengeInfoOuterClass.TreasureMapBonusChallengeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TreasureMapBonusChallengeInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TreasureMapBonusChallengeInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TreasureMapBonusChallengeInfo_FragmentMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_TreasureMapBonusChallengeInfo_FragmentMapEntry_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#TreasureMapBonusChallengeInfo.proto\"\346\001" +
"\n\035TreasureMapBonusChallengeInfo\022\021\n\tis_ac" +
"tive\030\006 \001(\010\022\021\n\tconfig_id\030\005 \001(\r\022E\n\014fragmen" +
"t_map\030\001 \003(\0132/.TreasureMapBonusChallengeI" +
"nfo.FragmentMapEntry\022\023\n\013solution_id\030\t \001(" +
"\r\022\017\n\007is_done\030\n \001(\010\0322\n\020FragmentMapEntry\022\013" +
"\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\010:\0028\001B\033\n\031emu.gr" +
"asscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_TreasureMapBonusChallengeInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TreasureMapBonusChallengeInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TreasureMapBonusChallengeInfo_descriptor,
new java.lang.String[] { "IsActive", "ConfigId", "FragmentMap", "SolutionId", "IsDone", });
internal_static_TreasureMapBonusChallengeInfo_FragmentMapEntry_descriptor =
internal_static_TreasureMapBonusChallengeInfo_descriptor.getNestedTypes().get(0);
internal_static_TreasureMapBonusChallengeInfo_FragmentMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TreasureMapBonusChallengeInfo_FragmentMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}