Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: LunaRiteAreaInfo.proto
package emu.grasscutter.net.proto;
public final class LunaRiteAreaInfoOuterClass {
private LunaRiteAreaInfoOuterClass() {}
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 LunaRiteAreaInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:LunaRiteAreaInfo)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 area_id = 14;
* @return The areaId.
*/
int getAreaId();
/**
* repeated uint32 sacrifice_list = 4;
* @return A list containing the sacrificeList.
*/
java.util.List getSacrificeListList();
/**
* repeated uint32 sacrifice_list = 4;
* @return The count of sacrificeList.
*/
int getSacrificeListCount();
/**
* repeated uint32 sacrifice_list = 4;
* @param index The index of the element to return.
* @return The sacrificeList at the given index.
*/
int getSacrificeList(int index);
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return The enum numeric value on the wire for hintStatus.
*/
int getHintStatusValue();
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return The hintStatus.
*/
emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType getHintStatus();
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return A list containing the sacrificeRewardList.
*/
java.util.List getSacrificeRewardListList();
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return The count of sacrificeRewardList.
*/
int getSacrificeRewardListCount();
/**
* repeated uint32 sacrifice_reward_list = 13;
* @param index The index of the element to return.
* @return The sacrificeRewardList at the given index.
*/
int getSacrificeRewardList(int index);
/**
* uint32 challenge_index = 15;
* @return The challengeIndex.
*/
int getChallengeIndex();
}
/**
*
* Name: KGIAEDGPNBH
*
*
* Protobuf type {@code LunaRiteAreaInfo}
*/
public static final class LunaRiteAreaInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:LunaRiteAreaInfo)
LunaRiteAreaInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LunaRiteAreaInfo.newBuilder() to construct.
private LunaRiteAreaInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LunaRiteAreaInfo() {
sacrificeList_ = emptyIntList();
hintStatus_ = 0;
sacrificeRewardList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LunaRiteAreaInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LunaRiteAreaInfo(
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 8: {
int rawValue = input.readEnum();
hintStatus_ = rawValue;
break;
}
case 32: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
sacrificeList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
sacrificeList_.addInt(input.readUInt32());
break;
}
case 34: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
sacrificeList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
sacrificeList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 104: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
sacrificeRewardList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
sacrificeRewardList_.addInt(input.readUInt32());
break;
}
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
sacrificeRewardList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
sacrificeRewardList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 112: {
areaId_ = input.readUInt32();
break;
}
case 120: {
challengeIndex_ = input.readUInt32();
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)) {
sacrificeList_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
sacrificeRewardList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.internal_static_LunaRiteAreaInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.internal_static_LunaRiteAreaInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.class, emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.Builder.class);
}
public static final int AREA_ID_FIELD_NUMBER = 14;
private int areaId_;
/**
* uint32 area_id = 14;
* @return The areaId.
*/
@java.lang.Override
public int getAreaId() {
return areaId_;
}
public static final int SACRIFICE_LIST_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.IntList sacrificeList_;
/**
* repeated uint32 sacrifice_list = 4;
* @return A list containing the sacrificeList.
*/
@java.lang.Override
public java.util.List
getSacrificeListList() {
return sacrificeList_;
}
/**
* repeated uint32 sacrifice_list = 4;
* @return The count of sacrificeList.
*/
public int getSacrificeListCount() {
return sacrificeList_.size();
}
/**
* repeated uint32 sacrifice_list = 4;
* @param index The index of the element to return.
* @return The sacrificeList at the given index.
*/
public int getSacrificeList(int index) {
return sacrificeList_.getInt(index);
}
private int sacrificeListMemoizedSerializedSize = -1;
public static final int HINT_STATUS_FIELD_NUMBER = 1;
private int hintStatus_;
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return The enum numeric value on the wire for hintStatus.
*/
@java.lang.Override public int getHintStatusValue() {
return hintStatus_;
}
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return The hintStatus.
*/
@java.lang.Override public emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType getHintStatus() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType result = emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType.valueOf(hintStatus_);
return result == null ? emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType.UNRECOGNIZED : result;
}
public static final int SACRIFICE_REWARD_LIST_FIELD_NUMBER = 13;
private com.google.protobuf.Internal.IntList sacrificeRewardList_;
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return A list containing the sacrificeRewardList.
*/
@java.lang.Override
public java.util.List
getSacrificeRewardListList() {
return sacrificeRewardList_;
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return The count of sacrificeRewardList.
*/
public int getSacrificeRewardListCount() {
return sacrificeRewardList_.size();
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @param index The index of the element to return.
* @return The sacrificeRewardList at the given index.
*/
public int getSacrificeRewardList(int index) {
return sacrificeRewardList_.getInt(index);
}
private int sacrificeRewardListMemoizedSerializedSize = -1;
public static final int CHALLENGE_INDEX_FIELD_NUMBER = 15;
private int challengeIndex_;
/**
* uint32 challenge_index = 15;
* @return The challengeIndex.
*/
@java.lang.Override
public int getChallengeIndex() {
return challengeIndex_;
}
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 (hintStatus_ != emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType.LUNA_RITE_HINT_STATUS_DEFAULT.getNumber()) {
output.writeEnum(1, hintStatus_);
}
if (getSacrificeListList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(sacrificeListMemoizedSerializedSize);
}
for (int i = 0; i < sacrificeList_.size(); i++) {
output.writeUInt32NoTag(sacrificeList_.getInt(i));
}
if (getSacrificeRewardListList().size() > 0) {
output.writeUInt32NoTag(106);
output.writeUInt32NoTag(sacrificeRewardListMemoizedSerializedSize);
}
for (int i = 0; i < sacrificeRewardList_.size(); i++) {
output.writeUInt32NoTag(sacrificeRewardList_.getInt(i));
}
if (areaId_ != 0) {
output.writeUInt32(14, areaId_);
}
if (challengeIndex_ != 0) {
output.writeUInt32(15, challengeIndex_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hintStatus_ != emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType.LUNA_RITE_HINT_STATUS_DEFAULT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, hintStatus_);
}
{
int dataSize = 0;
for (int i = 0; i < sacrificeList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(sacrificeList_.getInt(i));
}
size += dataSize;
if (!getSacrificeListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sacrificeListMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < sacrificeRewardList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(sacrificeRewardList_.getInt(i));
}
size += dataSize;
if (!getSacrificeRewardListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
sacrificeRewardListMemoizedSerializedSize = dataSize;
}
if (areaId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, areaId_);
}
if (challengeIndex_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, challengeIndex_);
}
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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo other = (emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo) obj;
if (getAreaId()
!= other.getAreaId()) return false;
if (!getSacrificeListList()
.equals(other.getSacrificeListList())) return false;
if (hintStatus_ != other.hintStatus_) return false;
if (!getSacrificeRewardListList()
.equals(other.getSacrificeRewardListList())) return false;
if (getChallengeIndex()
!= other.getChallengeIndex()) 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) + AREA_ID_FIELD_NUMBER;
hash = (53 * hash) + getAreaId();
if (getSacrificeListCount() > 0) {
hash = (37 * hash) + SACRIFICE_LIST_FIELD_NUMBER;
hash = (53 * hash) + getSacrificeListList().hashCode();
}
hash = (37 * hash) + HINT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + hintStatus_;
if (getSacrificeRewardListCount() > 0) {
hash = (37 * hash) + SACRIFICE_REWARD_LIST_FIELD_NUMBER;
hash = (53 * hash) + getSacrificeRewardListList().hashCode();
}
hash = (37 * hash) + CHALLENGE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getChallengeIndex();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo 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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo 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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo 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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo 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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo 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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo 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;
}
/**
*
* Name: KGIAEDGPNBH
*
*
* Protobuf type {@code LunaRiteAreaInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:LunaRiteAreaInfo)
emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.internal_static_LunaRiteAreaInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.internal_static_LunaRiteAreaInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.class, emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.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();
areaId_ = 0;
sacrificeList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
hintStatus_ = 0;
sacrificeRewardList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
challengeIndex_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.internal_static_LunaRiteAreaInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo build() {
emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo buildPartial() {
emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo result = new emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo(this);
int from_bitField0_ = bitField0_;
result.areaId_ = areaId_;
if (((bitField0_ & 0x00000001) != 0)) {
sacrificeList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.sacrificeList_ = sacrificeList_;
result.hintStatus_ = hintStatus_;
if (((bitField0_ & 0x00000002) != 0)) {
sacrificeRewardList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.sacrificeRewardList_ = sacrificeRewardList_;
result.challengeIndex_ = challengeIndex_;
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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo) {
return mergeFrom((emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo other) {
if (other == emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo.getDefaultInstance()) return this;
if (other.getAreaId() != 0) {
setAreaId(other.getAreaId());
}
if (!other.sacrificeList_.isEmpty()) {
if (sacrificeList_.isEmpty()) {
sacrificeList_ = other.sacrificeList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSacrificeListIsMutable();
sacrificeList_.addAll(other.sacrificeList_);
}
onChanged();
}
if (other.hintStatus_ != 0) {
setHintStatusValue(other.getHintStatusValue());
}
if (!other.sacrificeRewardList_.isEmpty()) {
if (sacrificeRewardList_.isEmpty()) {
sacrificeRewardList_ = other.sacrificeRewardList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSacrificeRewardListIsMutable();
sacrificeRewardList_.addAll(other.sacrificeRewardList_);
}
onChanged();
}
if (other.getChallengeIndex() != 0) {
setChallengeIndex(other.getChallengeIndex());
}
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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int areaId_ ;
/**
* uint32 area_id = 14;
* @return The areaId.
*/
@java.lang.Override
public int getAreaId() {
return areaId_;
}
/**
* uint32 area_id = 14;
* @param value The areaId to set.
* @return This builder for chaining.
*/
public Builder setAreaId(int value) {
areaId_ = value;
onChanged();
return this;
}
/**
* uint32 area_id = 14;
* @return This builder for chaining.
*/
public Builder clearAreaId() {
areaId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList sacrificeList_ = emptyIntList();
private void ensureSacrificeListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
sacrificeList_ = mutableCopy(sacrificeList_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint32 sacrifice_list = 4;
* @return A list containing the sacrificeList.
*/
public java.util.List
getSacrificeListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(sacrificeList_) : sacrificeList_;
}
/**
* repeated uint32 sacrifice_list = 4;
* @return The count of sacrificeList.
*/
public int getSacrificeListCount() {
return sacrificeList_.size();
}
/**
* repeated uint32 sacrifice_list = 4;
* @param index The index of the element to return.
* @return The sacrificeList at the given index.
*/
public int getSacrificeList(int index) {
return sacrificeList_.getInt(index);
}
/**
* repeated uint32 sacrifice_list = 4;
* @param index The index to set the value at.
* @param value The sacrificeList to set.
* @return This builder for chaining.
*/
public Builder setSacrificeList(
int index, int value) {
ensureSacrificeListIsMutable();
sacrificeList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 sacrifice_list = 4;
* @param value The sacrificeList to add.
* @return This builder for chaining.
*/
public Builder addSacrificeList(int value) {
ensureSacrificeListIsMutable();
sacrificeList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 sacrifice_list = 4;
* @param values The sacrificeList to add.
* @return This builder for chaining.
*/
public Builder addAllSacrificeList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSacrificeListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sacrificeList_);
onChanged();
return this;
}
/**
* repeated uint32 sacrifice_list = 4;
* @return This builder for chaining.
*/
public Builder clearSacrificeList() {
sacrificeList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int hintStatus_ = 0;
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return The enum numeric value on the wire for hintStatus.
*/
@java.lang.Override public int getHintStatusValue() {
return hintStatus_;
}
/**
* .LunaRiteHintStatusType hint_status = 1;
* @param value The enum numeric value on the wire for hintStatus to set.
* @return This builder for chaining.
*/
public Builder setHintStatusValue(int value) {
hintStatus_ = value;
onChanged();
return this;
}
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return The hintStatus.
*/
@java.lang.Override
public emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType getHintStatus() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType result = emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType.valueOf(hintStatus_);
return result == null ? emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType.UNRECOGNIZED : result;
}
/**
* .LunaRiteHintStatusType hint_status = 1;
* @param value The hintStatus to set.
* @return This builder for chaining.
*/
public Builder setHintStatus(emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.LunaRiteHintStatusType value) {
if (value == null) {
throw new NullPointerException();
}
hintStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .LunaRiteHintStatusType hint_status = 1;
* @return This builder for chaining.
*/
public Builder clearHintStatus() {
hintStatus_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList sacrificeRewardList_ = emptyIntList();
private void ensureSacrificeRewardListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
sacrificeRewardList_ = mutableCopy(sacrificeRewardList_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return A list containing the sacrificeRewardList.
*/
public java.util.List
getSacrificeRewardListList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(sacrificeRewardList_) : sacrificeRewardList_;
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return The count of sacrificeRewardList.
*/
public int getSacrificeRewardListCount() {
return sacrificeRewardList_.size();
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @param index The index of the element to return.
* @return The sacrificeRewardList at the given index.
*/
public int getSacrificeRewardList(int index) {
return sacrificeRewardList_.getInt(index);
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @param index The index to set the value at.
* @param value The sacrificeRewardList to set.
* @return This builder for chaining.
*/
public Builder setSacrificeRewardList(
int index, int value) {
ensureSacrificeRewardListIsMutable();
sacrificeRewardList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @param value The sacrificeRewardList to add.
* @return This builder for chaining.
*/
public Builder addSacrificeRewardList(int value) {
ensureSacrificeRewardListIsMutable();
sacrificeRewardList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @param values The sacrificeRewardList to add.
* @return This builder for chaining.
*/
public Builder addAllSacrificeRewardList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSacrificeRewardListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sacrificeRewardList_);
onChanged();
return this;
}
/**
* repeated uint32 sacrifice_reward_list = 13;
* @return This builder for chaining.
*/
public Builder clearSacrificeRewardList() {
sacrificeRewardList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private int challengeIndex_ ;
/**
* uint32 challenge_index = 15;
* @return The challengeIndex.
*/
@java.lang.Override
public int getChallengeIndex() {
return challengeIndex_;
}
/**
* uint32 challenge_index = 15;
* @param value The challengeIndex to set.
* @return This builder for chaining.
*/
public Builder setChallengeIndex(int value) {
challengeIndex_ = value;
onChanged();
return this;
}
/**
* uint32 challenge_index = 15;
* @return This builder for chaining.
*/
public Builder clearChallengeIndex() {
challengeIndex_ = 0;
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:LunaRiteAreaInfo)
}
// @@protoc_insertion_point(class_scope:LunaRiteAreaInfo)
private static final emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo();
}
public static emu.grasscutter.net.proto.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LunaRiteAreaInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LunaRiteAreaInfo(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.LunaRiteAreaInfoOuterClass.LunaRiteAreaInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_LunaRiteAreaInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_LunaRiteAreaInfo_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\026LunaRiteAreaInfo.proto\032\034LunaRiteHintSt" +
"atusType.proto\"\241\001\n\020LunaRiteAreaInfo\022\017\n\007a" +
"rea_id\030\016 \001(\r\022\026\n\016sacrifice_list\030\004 \003(\r\022,\n\013" +
"hint_status\030\001 \001(\0162\027.LunaRiteHintStatusTy" +
"pe\022\035\n\025sacrifice_reward_list\030\r \003(\r\022\027\n\017cha" +
"llenge_index\030\017 \001(\rB\033\n\031emu.grasscutter.ne" +
"t.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.getDescriptor(),
});
internal_static_LunaRiteAreaInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_LunaRiteAreaInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_LunaRiteAreaInfo_descriptor,
new java.lang.String[] { "AreaId", "SacrificeList", "HintStatus", "SacrificeRewardList", "ChallengeIndex", });
emu.grasscutter.net.proto.LunaRiteHintStatusTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}