Add home resource gain (#2064)

This commit is contained in:
Thoronium 2023-02-23 21:22:25 -07:00 committed by GitHub
parent 220c23b960
commit b209d91947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 4400 additions and 1 deletions

View File

@ -0,0 +1,896 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeResourceNotify.proto
package emu.grasscutter.net.proto;
public final class HomeResourceNotifyOuterClass {
private HomeResourceNotifyOuterClass() {}
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 HomeResourceNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeResourceNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.HomeResource fetterExp = 9;</code>
* @return Whether the fetterExp field is set.
*/
boolean hasFetterExp();
/**
* <code>.HomeResource fetterExp = 9;</code>
* @return The fetterExp.
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getFetterExp();
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getFetterExpOrBuilder();
/**
* <code>.HomeResource homeCoin = 1;</code>
* @return Whether the homeCoin field is set.
*/
boolean hasHomeCoin();
/**
* <code>.HomeResource homeCoin = 1;</code>
* @return The homeCoin.
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getHomeCoin();
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getHomeCoinOrBuilder();
}
/**
* <pre>
*enum HKEFOBECFHH {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4639;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceNotify}
*/
public static final class HomeResourceNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeResourceNotify)
HomeResourceNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeResourceNotify.newBuilder() to construct.
private HomeResourceNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeResourceNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeResourceNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeResourceNotify(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder subBuilder = null;
if (homeCoin_ != null) {
subBuilder = homeCoin_.toBuilder();
}
homeCoin_ = input.readMessage(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(homeCoin_);
homeCoin_ = subBuilder.buildPartial();
}
break;
}
case 74: {
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder subBuilder = null;
if (fetterExp_ != null) {
subBuilder = fetterExp_.toBuilder();
}
fetterExp_ = input.readMessage(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fetterExp_);
fetterExp_ = subBuilder.buildPartial();
}
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.HomeResourceNotifyOuterClass.internal_static_HomeResourceNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.internal_static_HomeResourceNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.class, emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.Builder.class);
}
public static final int FETTEREXP_FIELD_NUMBER = 9;
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource fetterExp_;
/**
* <code>.HomeResource fetterExp = 9;</code>
* @return Whether the fetterExp field is set.
*/
@java.lang.Override
public boolean hasFetterExp() {
return fetterExp_ != null;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
* @return The fetterExp.
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getFetterExp() {
return fetterExp_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : fetterExp_;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getFetterExpOrBuilder() {
return getFetterExp();
}
public static final int HOMECOIN_FIELD_NUMBER = 1;
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource homeCoin_;
/**
* <code>.HomeResource homeCoin = 1;</code>
* @return Whether the homeCoin field is set.
*/
@java.lang.Override
public boolean hasHomeCoin() {
return homeCoin_ != null;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
* @return The homeCoin.
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getHomeCoin() {
return homeCoin_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : homeCoin_;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getHomeCoinOrBuilder() {
return getHomeCoin();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (homeCoin_ != null) {
output.writeMessage(1, getHomeCoin());
}
if (fetterExp_ != null) {
output.writeMessage(9, getFetterExp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (homeCoin_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHomeCoin());
}
if (fetterExp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getFetterExp());
}
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.HomeResourceNotifyOuterClass.HomeResourceNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify other = (emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify) obj;
if (hasFetterExp() != other.hasFetterExp()) return false;
if (hasFetterExp()) {
if (!getFetterExp()
.equals(other.getFetterExp())) return false;
}
if (hasHomeCoin() != other.hasHomeCoin()) return false;
if (hasHomeCoin()) {
if (!getHomeCoin()
.equals(other.getHomeCoin())) 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 (hasFetterExp()) {
hash = (37 * hash) + FETTEREXP_FIELD_NUMBER;
hash = (53 * hash) + getFetterExp().hashCode();
}
if (hasHomeCoin()) {
hash = (37 * hash) + HOMECOIN_FIELD_NUMBER;
hash = (53 * hash) + getHomeCoin().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify 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.HomeResourceNotifyOuterClass.HomeResourceNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify 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.HomeResourceNotifyOuterClass.HomeResourceNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify 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.HomeResourceNotifyOuterClass.HomeResourceNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify 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.HomeResourceNotifyOuterClass.HomeResourceNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify 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.HomeResourceNotifyOuterClass.HomeResourceNotify 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;
}
/**
* <pre>
*enum HKEFOBECFHH {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4639;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeResourceNotify)
emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.internal_static_HomeResourceNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.internal_static_HomeResourceNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.class, emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.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();
if (fetterExpBuilder_ == null) {
fetterExp_ = null;
} else {
fetterExp_ = null;
fetterExpBuilder_ = null;
}
if (homeCoinBuilder_ == null) {
homeCoin_ = null;
} else {
homeCoin_ = null;
homeCoinBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.internal_static_HomeResourceNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify build() {
emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify buildPartial() {
emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify result = new emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify(this);
if (fetterExpBuilder_ == null) {
result.fetterExp_ = fetterExp_;
} else {
result.fetterExp_ = fetterExpBuilder_.build();
}
if (homeCoinBuilder_ == null) {
result.homeCoin_ = homeCoin_;
} else {
result.homeCoin_ = homeCoinBuilder_.build();
}
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.HomeResourceNotifyOuterClass.HomeResourceNotify) {
return mergeFrom((emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify other) {
if (other == emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify.getDefaultInstance()) return this;
if (other.hasFetterExp()) {
mergeFetterExp(other.getFetterExp());
}
if (other.hasHomeCoin()) {
mergeHomeCoin(other.getHomeCoin());
}
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.HomeResourceNotifyOuterClass.HomeResourceNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource fetterExp_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder> fetterExpBuilder_;
/**
* <code>.HomeResource fetterExp = 9;</code>
* @return Whether the fetterExp field is set.
*/
public boolean hasFetterExp() {
return fetterExpBuilder_ != null || fetterExp_ != null;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
* @return The fetterExp.
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getFetterExp() {
if (fetterExpBuilder_ == null) {
return fetterExp_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : fetterExp_;
} else {
return fetterExpBuilder_.getMessage();
}
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
public Builder setFetterExp(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (fetterExpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fetterExp_ = value;
onChanged();
} else {
fetterExpBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
public Builder setFetterExp(
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder builderForValue) {
if (fetterExpBuilder_ == null) {
fetterExp_ = builderForValue.build();
onChanged();
} else {
fetterExpBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
public Builder mergeFetterExp(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (fetterExpBuilder_ == null) {
if (fetterExp_ != null) {
fetterExp_ =
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.newBuilder(fetterExp_).mergeFrom(value).buildPartial();
} else {
fetterExp_ = value;
}
onChanged();
} else {
fetterExpBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
public Builder clearFetterExp() {
if (fetterExpBuilder_ == null) {
fetterExp_ = null;
onChanged();
} else {
fetterExp_ = null;
fetterExpBuilder_ = null;
}
return this;
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder getFetterExpBuilder() {
onChanged();
return getFetterExpFieldBuilder().getBuilder();
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getFetterExpOrBuilder() {
if (fetterExpBuilder_ != null) {
return fetterExpBuilder_.getMessageOrBuilder();
} else {
return fetterExp_ == null ?
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : fetterExp_;
}
}
/**
* <code>.HomeResource fetterExp = 9;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>
getFetterExpFieldBuilder() {
if (fetterExpBuilder_ == null) {
fetterExpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>(
getFetterExp(),
getParentForChildren(),
isClean());
fetterExp_ = null;
}
return fetterExpBuilder_;
}
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource homeCoin_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder> homeCoinBuilder_;
/**
* <code>.HomeResource homeCoin = 1;</code>
* @return Whether the homeCoin field is set.
*/
public boolean hasHomeCoin() {
return homeCoinBuilder_ != null || homeCoin_ != null;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
* @return The homeCoin.
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getHomeCoin() {
if (homeCoinBuilder_ == null) {
return homeCoin_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : homeCoin_;
} else {
return homeCoinBuilder_.getMessage();
}
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
public Builder setHomeCoin(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (homeCoinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
homeCoin_ = value;
onChanged();
} else {
homeCoinBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
public Builder setHomeCoin(
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder builderForValue) {
if (homeCoinBuilder_ == null) {
homeCoin_ = builderForValue.build();
onChanged();
} else {
homeCoinBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
public Builder mergeHomeCoin(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (homeCoinBuilder_ == null) {
if (homeCoin_ != null) {
homeCoin_ =
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.newBuilder(homeCoin_).mergeFrom(value).buildPartial();
} else {
homeCoin_ = value;
}
onChanged();
} else {
homeCoinBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
public Builder clearHomeCoin() {
if (homeCoinBuilder_ == null) {
homeCoin_ = null;
onChanged();
} else {
homeCoin_ = null;
homeCoinBuilder_ = null;
}
return this;
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder getHomeCoinBuilder() {
onChanged();
return getHomeCoinFieldBuilder().getBuilder();
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getHomeCoinOrBuilder() {
if (homeCoinBuilder_ != null) {
return homeCoinBuilder_.getMessageOrBuilder();
} else {
return homeCoin_ == null ?
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : homeCoin_;
}
}
/**
* <code>.HomeResource homeCoin = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>
getHomeCoinFieldBuilder() {
if (homeCoinBuilder_ == null) {
homeCoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>(
getHomeCoin(),
getParentForChildren(),
isClean());
homeCoin_ = null;
}
return homeCoinBuilder_;
}
@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:HomeResourceNotify)
}
// @@protoc_insertion_point(class_scope:HomeResourceNotify)
private static final emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify();
}
public static emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeResourceNotify>
PARSER = new com.google.protobuf.AbstractParser<HomeResourceNotify>() {
@java.lang.Override
public HomeResourceNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeResourceNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeResourceNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeResourceNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceNotifyOuterClass.HomeResourceNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeResourceNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeResourceNotify_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\030HomeResourceNotify.proto\032\022HomeResource" +
".proto\"W\n\022HomeResourceNotify\022 \n\tfetterEx" +
"p\030\t \001(\0132\r.HomeResource\022\037\n\010homeCoin\030\001 \001(\013" +
"2\r.HomeResourceB\033\n\031emu.grasscutter.net.p" +
"rotob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.HomeResourceOuterClass.getDescriptor(),
});
internal_static_HomeResourceNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeResourceNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeResourceNotify_descriptor,
new java.lang.String[] { "FetterExp", "HomeCoin", });
emu.grasscutter.net.proto.HomeResourceOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,677 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeResource.proto
package emu.grasscutter.net.proto;
public final class HomeResourceOuterClass {
private HomeResourceOuterClass() {}
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 HomeResourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeResource)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 storeLimit = 15;</code>
* @return The storeLimit.
*/
int getStoreLimit();
/**
* <code>uint32 storeValue = 10;</code>
* @return The storeValue.
*/
int getStoreValue();
/**
* <code>uint32 nextRefreshTime = 1;</code>
* @return The nextRefreshTime.
*/
int getNextRefreshTime();
}
/**
* Protobuf type {@code HomeResource}
*/
public static final class HomeResource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeResource)
HomeResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeResource.newBuilder() to construct.
private HomeResource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeResource() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeResource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeResource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nextRefreshTime_ = input.readUInt32();
break;
}
case 80: {
storeValue_ = input.readUInt32();
break;
}
case 120: {
storeLimit_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceOuterClass.internal_static_HomeResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceOuterClass.internal_static_HomeResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.class, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder.class);
}
public static final int STORELIMIT_FIELD_NUMBER = 15;
private int storeLimit_;
/**
* <code>uint32 storeLimit = 15;</code>
* @return The storeLimit.
*/
@java.lang.Override
public int getStoreLimit() {
return storeLimit_;
}
public static final int STOREVALUE_FIELD_NUMBER = 10;
private int storeValue_;
/**
* <code>uint32 storeValue = 10;</code>
* @return The storeValue.
*/
@java.lang.Override
public int getStoreValue() {
return storeValue_;
}
public static final int NEXTREFRESHTIME_FIELD_NUMBER = 1;
private int nextRefreshTime_;
/**
* <code>uint32 nextRefreshTime = 1;</code>
* @return The nextRefreshTime.
*/
@java.lang.Override
public int getNextRefreshTime() {
return nextRefreshTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (nextRefreshTime_ != 0) {
output.writeUInt32(1, nextRefreshTime_);
}
if (storeValue_ != 0) {
output.writeUInt32(10, storeValue_);
}
if (storeLimit_ != 0) {
output.writeUInt32(15, storeLimit_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nextRefreshTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, nextRefreshTime_);
}
if (storeValue_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, storeValue_);
}
if (storeLimit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, storeLimit_);
}
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.HomeResourceOuterClass.HomeResource)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource other = (emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource) obj;
if (getStoreLimit()
!= other.getStoreLimit()) return false;
if (getStoreValue()
!= other.getStoreValue()) return false;
if (getNextRefreshTime()
!= other.getNextRefreshTime()) 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) + STORELIMIT_FIELD_NUMBER;
hash = (53 * hash) + getStoreLimit();
hash = (37 * hash) + STOREVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStoreValue();
hash = (37 * hash) + NEXTREFRESHTIME_FIELD_NUMBER;
hash = (53 * hash) + getNextRefreshTime();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource 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.HomeResourceOuterClass.HomeResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource 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.HomeResourceOuterClass.HomeResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource 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.HomeResourceOuterClass.HomeResource parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource 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.HomeResourceOuterClass.HomeResource parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource 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.HomeResourceOuterClass.HomeResource 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 HomeResource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeResource)
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceOuterClass.internal_static_HomeResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceOuterClass.internal_static_HomeResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.class, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.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();
storeLimit_ = 0;
storeValue_ = 0;
nextRefreshTime_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeResourceOuterClass.internal_static_HomeResource_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource build() {
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource buildPartial() {
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource result = new emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource(this);
result.storeLimit_ = storeLimit_;
result.storeValue_ = storeValue_;
result.nextRefreshTime_ = nextRefreshTime_;
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.HomeResourceOuterClass.HomeResource) {
return mergeFrom((emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource other) {
if (other == emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance()) return this;
if (other.getStoreLimit() != 0) {
setStoreLimit(other.getStoreLimit());
}
if (other.getStoreValue() != 0) {
setStoreValue(other.getStoreValue());
}
if (other.getNextRefreshTime() != 0) {
setNextRefreshTime(other.getNextRefreshTime());
}
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.HomeResourceOuterClass.HomeResource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int storeLimit_ ;
/**
* <code>uint32 storeLimit = 15;</code>
* @return The storeLimit.
*/
@java.lang.Override
public int getStoreLimit() {
return storeLimit_;
}
/**
* <code>uint32 storeLimit = 15;</code>
* @param value The storeLimit to set.
* @return This builder for chaining.
*/
public Builder setStoreLimit(int value) {
storeLimit_ = value;
onChanged();
return this;
}
/**
* <code>uint32 storeLimit = 15;</code>
* @return This builder for chaining.
*/
public Builder clearStoreLimit() {
storeLimit_ = 0;
onChanged();
return this;
}
private int storeValue_ ;
/**
* <code>uint32 storeValue = 10;</code>
* @return The storeValue.
*/
@java.lang.Override
public int getStoreValue() {
return storeValue_;
}
/**
* <code>uint32 storeValue = 10;</code>
* @param value The storeValue to set.
* @return This builder for chaining.
*/
public Builder setStoreValue(int value) {
storeValue_ = value;
onChanged();
return this;
}
/**
* <code>uint32 storeValue = 10;</code>
* @return This builder for chaining.
*/
public Builder clearStoreValue() {
storeValue_ = 0;
onChanged();
return this;
}
private int nextRefreshTime_ ;
/**
* <code>uint32 nextRefreshTime = 1;</code>
* @return The nextRefreshTime.
*/
@java.lang.Override
public int getNextRefreshTime() {
return nextRefreshTime_;
}
/**
* <code>uint32 nextRefreshTime = 1;</code>
* @param value The nextRefreshTime to set.
* @return This builder for chaining.
*/
public Builder setNextRefreshTime(int value) {
nextRefreshTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 nextRefreshTime = 1;</code>
* @return This builder for chaining.
*/
public Builder clearNextRefreshTime() {
nextRefreshTime_ = 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:HomeResource)
}
// @@protoc_insertion_point(class_scope:HomeResource)
private static final emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource();
}
public static emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeResource>
PARSER = new com.google.protobuf.AbstractParser<HomeResource>() {
@java.lang.Override
public HomeResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeResource(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeResource> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeResource> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeResource_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeResource_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\022HomeResource.proto\"O\n\014HomeResource\022\022\n\n" +
"storeLimit\030\017 \001(\r\022\022\n\nstoreValue\030\n \001(\r\022\027\n\017" +
"nextRefreshTime\030\001 \001(\rB\033\n\031emu.grasscutter" +
".net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_HomeResource_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeResource_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeResource_descriptor,
new java.lang.String[] { "StoreLimit", "StoreValue", "NextRefreshTime", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,488 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeResourceTakeFetterExpReq.proto
package emu.grasscutter.net.proto;
public final class HomeResourceTakeFetterExpReqOuterClass {
private HomeResourceTakeFetterExpReqOuterClass() {}
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 HomeResourceTakeFetterExpReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeResourceTakeFetterExpReq)
com.google.protobuf.MessageOrBuilder {
}
/**
* <pre>
*enum HAAKPPLLECB {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4525;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
* EAJIABGAOCI = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeFetterExpReq}
*/
public static final class HomeResourceTakeFetterExpReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeResourceTakeFetterExpReq)
HomeResourceTakeFetterExpReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeResourceTakeFetterExpReq.newBuilder() to construct.
private HomeResourceTakeFetterExpReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeResourceTakeFetterExpReq() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeResourceTakeFetterExpReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeResourceTakeFetterExpReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
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.HomeResourceTakeFetterExpReqOuterClass.internal_static_HomeResourceTakeFetterExpReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.internal_static_HomeResourceTakeFetterExpReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.class, emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq other = (emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq 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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq 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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq 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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq 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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq 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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq 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;
}
/**
* <pre>
*enum HAAKPPLLECB {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4525;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
* EAJIABGAOCI = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeFetterExpReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeResourceTakeFetterExpReq)
emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.internal_static_HomeResourceTakeFetterExpReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.internal_static_HomeResourceTakeFetterExpReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.class, emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.internal_static_HomeResourceTakeFetterExpReq_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq build() {
emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq buildPartial() {
emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq result = new emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq(this);
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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq) {
return mergeFrom((emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq other) {
if (other == emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq.getDefaultInstance()) return this;
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.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:HomeResourceTakeFetterExpReq)
}
// @@protoc_insertion_point(class_scope:HomeResourceTakeFetterExpReq)
private static final emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq();
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeResourceTakeFetterExpReq>
PARSER = new com.google.protobuf.AbstractParser<HomeResourceTakeFetterExpReq>() {
@java.lang.Override
public HomeResourceTakeFetterExpReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeResourceTakeFetterExpReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeResourceTakeFetterExpReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeResourceTakeFetterExpReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpReqOuterClass.HomeResourceTakeFetterExpReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeResourceTakeFetterExpReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeResourceTakeFetterExpReq_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\"HomeResourceTakeFetterExpReq.proto\"\036\n\034" +
"HomeResourceTakeFetterExpReqB\033\n\031emu.gras" +
"scutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_HomeResourceTakeFetterExpReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeResourceTakeFetterExpReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeResourceTakeFetterExpReq_descriptor,
new java.lang.String[] { });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,763 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeResourceTakeFetterExpRsp.proto
package emu.grasscutter.net.proto;
public final class HomeResourceTakeFetterExpRspOuterClass {
private HomeResourceTakeFetterExpRspOuterClass() {}
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 HomeResourceTakeFetterExpRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeResourceTakeFetterExpRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.HomeResource fetterExp = 12;</code>
* @return Whether the fetterExp field is set.
*/
boolean hasFetterExp();
/**
* <code>.HomeResource fetterExp = 12;</code>
* @return The fetterExp.
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getFetterExp();
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getFetterExpOrBuilder();
/**
* <code>int32 retcode = 3;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
*enum GGMAOEEILCK {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4837;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeFetterExpRsp}
*/
public static final class HomeResourceTakeFetterExpRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeResourceTakeFetterExpRsp)
HomeResourceTakeFetterExpRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeResourceTakeFetterExpRsp.newBuilder() to construct.
private HomeResourceTakeFetterExpRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeResourceTakeFetterExpRsp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeResourceTakeFetterExpRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeResourceTakeFetterExpRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 24: {
retcode_ = input.readInt32();
break;
}
case 98: {
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder subBuilder = null;
if (fetterExp_ != null) {
subBuilder = fetterExp_.toBuilder();
}
fetterExp_ = input.readMessage(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fetterExp_);
fetterExp_ = subBuilder.buildPartial();
}
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.HomeResourceTakeFetterExpRspOuterClass.internal_static_HomeResourceTakeFetterExpRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.internal_static_HomeResourceTakeFetterExpRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.class, emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.Builder.class);
}
public static final int FETTEREXP_FIELD_NUMBER = 12;
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource fetterExp_;
/**
* <code>.HomeResource fetterExp = 12;</code>
* @return Whether the fetterExp field is set.
*/
@java.lang.Override
public boolean hasFetterExp() {
return fetterExp_ != null;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
* @return The fetterExp.
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getFetterExp() {
return fetterExp_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : fetterExp_;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getFetterExpOrBuilder() {
return getFetterExp();
}
public static final int RETCODE_FIELD_NUMBER = 3;
private int retcode_;
/**
* <code>int32 retcode = 3;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (retcode_ != 0) {
output.writeInt32(3, retcode_);
}
if (fetterExp_ != null) {
output.writeMessage(12, getFetterExp());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, retcode_);
}
if (fetterExp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getFetterExp());
}
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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp other = (emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp) obj;
if (hasFetterExp() != other.hasFetterExp()) return false;
if (hasFetterExp()) {
if (!getFetterExp()
.equals(other.getFetterExp())) return false;
}
if (getRetcode()
!= other.getRetcode()) 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 (hasFetterExp()) {
hash = (37 * hash) + FETTEREXP_FIELD_NUMBER;
hash = (53 * hash) + getFetterExp().hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp 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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp 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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp 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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp 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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp 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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp 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;
}
/**
* <pre>
*enum GGMAOEEILCK {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4837;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeFetterExpRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeResourceTakeFetterExpRsp)
emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.internal_static_HomeResourceTakeFetterExpRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.internal_static_HomeResourceTakeFetterExpRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.class, emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.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();
if (fetterExpBuilder_ == null) {
fetterExp_ = null;
} else {
fetterExp_ = null;
fetterExpBuilder_ = null;
}
retcode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.internal_static_HomeResourceTakeFetterExpRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp build() {
emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp buildPartial() {
emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp result = new emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp(this);
if (fetterExpBuilder_ == null) {
result.fetterExp_ = fetterExp_;
} else {
result.fetterExp_ = fetterExpBuilder_.build();
}
result.retcode_ = retcode_;
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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp) {
return mergeFrom((emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp other) {
if (other == emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.getDefaultInstance()) return this;
if (other.hasFetterExp()) {
mergeFetterExp(other.getFetterExp());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
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.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource fetterExp_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder> fetterExpBuilder_;
/**
* <code>.HomeResource fetterExp = 12;</code>
* @return Whether the fetterExp field is set.
*/
public boolean hasFetterExp() {
return fetterExpBuilder_ != null || fetterExp_ != null;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
* @return The fetterExp.
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getFetterExp() {
if (fetterExpBuilder_ == null) {
return fetterExp_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : fetterExp_;
} else {
return fetterExpBuilder_.getMessage();
}
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
public Builder setFetterExp(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (fetterExpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fetterExp_ = value;
onChanged();
} else {
fetterExpBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
public Builder setFetterExp(
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder builderForValue) {
if (fetterExpBuilder_ == null) {
fetterExp_ = builderForValue.build();
onChanged();
} else {
fetterExpBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
public Builder mergeFetterExp(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (fetterExpBuilder_ == null) {
if (fetterExp_ != null) {
fetterExp_ =
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.newBuilder(fetterExp_).mergeFrom(value).buildPartial();
} else {
fetterExp_ = value;
}
onChanged();
} else {
fetterExpBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
public Builder clearFetterExp() {
if (fetterExpBuilder_ == null) {
fetterExp_ = null;
onChanged();
} else {
fetterExp_ = null;
fetterExpBuilder_ = null;
}
return this;
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder getFetterExpBuilder() {
onChanged();
return getFetterExpFieldBuilder().getBuilder();
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getFetterExpOrBuilder() {
if (fetterExpBuilder_ != null) {
return fetterExpBuilder_.getMessageOrBuilder();
} else {
return fetterExp_ == null ?
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : fetterExp_;
}
}
/**
* <code>.HomeResource fetterExp = 12;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>
getFetterExpFieldBuilder() {
if (fetterExpBuilder_ == null) {
fetterExpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>(
getFetterExp(),
getParentForChildren(),
isClean());
fetterExp_ = null;
}
return fetterExpBuilder_;
}
private int retcode_ ;
/**
* <code>int32 retcode = 3;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 3;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 3;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 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:HomeResourceTakeFetterExpRsp)
}
// @@protoc_insertion_point(class_scope:HomeResourceTakeFetterExpRsp)
private static final emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp();
}
public static emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeResourceTakeFetterExpRsp>
PARSER = new com.google.protobuf.AbstractParser<HomeResourceTakeFetterExpRsp>() {
@java.lang.Override
public HomeResourceTakeFetterExpRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeResourceTakeFetterExpRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeResourceTakeFetterExpRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeResourceTakeFetterExpRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeResourceTakeFetterExpRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeResourceTakeFetterExpRsp_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\"HomeResourceTakeFetterExpRsp.proto\032\022Ho" +
"meResource.proto\"Q\n\034HomeResourceTakeFett" +
"erExpRsp\022 \n\tfetterExp\030\014 \001(\0132\r.HomeResour" +
"ce\022\017\n\007retcode\030\003 \001(\005B\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.HomeResourceOuterClass.getDescriptor(),
});
internal_static_HomeResourceTakeFetterExpRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeResourceTakeFetterExpRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeResourceTakeFetterExpRsp_descriptor,
new java.lang.String[] { "FetterExp", "Retcode", });
emu.grasscutter.net.proto.HomeResourceOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,488 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeResourceTakeHomeCoinReq.proto
package emu.grasscutter.net.proto;
public final class HomeResourceTakeHomeCoinReqOuterClass {
private HomeResourceTakeHomeCoinReqOuterClass() {}
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 HomeResourceTakeHomeCoinReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeResourceTakeHomeCoinReq)
com.google.protobuf.MessageOrBuilder {
}
/**
* <pre>
*enum ALJGALOMLPM {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4460;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
* EAJIABGAOCI = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeHomeCoinReq}
*/
public static final class HomeResourceTakeHomeCoinReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeResourceTakeHomeCoinReq)
HomeResourceTakeHomeCoinReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeResourceTakeHomeCoinReq.newBuilder() to construct.
private HomeResourceTakeHomeCoinReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeResourceTakeHomeCoinReq() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeResourceTakeHomeCoinReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeResourceTakeHomeCoinReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
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.HomeResourceTakeHomeCoinReqOuterClass.internal_static_HomeResourceTakeHomeCoinReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.internal_static_HomeResourceTakeHomeCoinReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.class, emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq other = (emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq 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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq 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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq 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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq 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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq 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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq 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;
}
/**
* <pre>
*enum ALJGALOMLPM {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4460;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
* EAJIABGAOCI = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeHomeCoinReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeResourceTakeHomeCoinReq)
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.internal_static_HomeResourceTakeHomeCoinReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.internal_static_HomeResourceTakeHomeCoinReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.class, emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.internal_static_HomeResourceTakeHomeCoinReq_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq build() {
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq buildPartial() {
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq result = new emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq(this);
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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq) {
return mergeFrom((emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq other) {
if (other == emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq.getDefaultInstance()) return this;
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.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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:HomeResourceTakeHomeCoinReq)
}
// @@protoc_insertion_point(class_scope:HomeResourceTakeHomeCoinReq)
private static final emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq();
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeResourceTakeHomeCoinReq>
PARSER = new com.google.protobuf.AbstractParser<HomeResourceTakeHomeCoinReq>() {
@java.lang.Override
public HomeResourceTakeHomeCoinReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeResourceTakeHomeCoinReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeResourceTakeHomeCoinReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeResourceTakeHomeCoinReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinReqOuterClass.HomeResourceTakeHomeCoinReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeResourceTakeHomeCoinReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeResourceTakeHomeCoinReq_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!HomeResourceTakeHomeCoinReq.proto\"\035\n\033H" +
"omeResourceTakeHomeCoinReqB\033\n\031emu.grassc" +
"utter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_HomeResourceTakeHomeCoinReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeResourceTakeHomeCoinReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeResourceTakeHomeCoinReq_descriptor,
new java.lang.String[] { });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,763 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeResourceTakeHomeCoinRsp.proto
package emu.grasscutter.net.proto;
public final class HomeResourceTakeHomeCoinRspOuterClass {
private HomeResourceTakeHomeCoinRspOuterClass() {}
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 HomeResourceTakeHomeCoinRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeResourceTakeHomeCoinRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.HomeResource homeCoin = 15;</code>
* @return Whether the homeCoin field is set.
*/
boolean hasHomeCoin();
/**
* <code>.HomeResource homeCoin = 15;</code>
* @return The homeCoin.
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getHomeCoin();
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getHomeCoinOrBuilder();
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
*enum DFPMKJHEGPN {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4573;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeHomeCoinRsp}
*/
public static final class HomeResourceTakeHomeCoinRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeResourceTakeHomeCoinRsp)
HomeResourceTakeHomeCoinRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeResourceTakeHomeCoinRsp.newBuilder() to construct.
private HomeResourceTakeHomeCoinRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeResourceTakeHomeCoinRsp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeResourceTakeHomeCoinRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeResourceTakeHomeCoinRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 112: {
retcode_ = input.readInt32();
break;
}
case 122: {
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder subBuilder = null;
if (homeCoin_ != null) {
subBuilder = homeCoin_.toBuilder();
}
homeCoin_ = input.readMessage(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(homeCoin_);
homeCoin_ = subBuilder.buildPartial();
}
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.HomeResourceTakeHomeCoinRspOuterClass.internal_static_HomeResourceTakeHomeCoinRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.internal_static_HomeResourceTakeHomeCoinRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.class, emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.Builder.class);
}
public static final int HOMECOIN_FIELD_NUMBER = 15;
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource homeCoin_;
/**
* <code>.HomeResource homeCoin = 15;</code>
* @return Whether the homeCoin field is set.
*/
@java.lang.Override
public boolean hasHomeCoin() {
return homeCoin_ != null;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
* @return The homeCoin.
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getHomeCoin() {
return homeCoin_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : homeCoin_;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getHomeCoinOrBuilder() {
return getHomeCoin();
}
public static final int RETCODE_FIELD_NUMBER = 14;
private int retcode_;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (retcode_ != 0) {
output.writeInt32(14, retcode_);
}
if (homeCoin_ != null) {
output.writeMessage(15, getHomeCoin());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, retcode_);
}
if (homeCoin_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getHomeCoin());
}
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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp other = (emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp) obj;
if (hasHomeCoin() != other.hasHomeCoin()) return false;
if (hasHomeCoin()) {
if (!getHomeCoin()
.equals(other.getHomeCoin())) return false;
}
if (getRetcode()
!= other.getRetcode()) 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 (hasHomeCoin()) {
hash = (37 * hash) + HOMECOIN_FIELD_NUMBER;
hash = (53 * hash) + getHomeCoin().hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp 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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp 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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp 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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp 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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp 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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp 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;
}
/**
* <pre>
*enum DFPMKJHEGPN {
* option allow_alias= true;
* NONE = 0;
* PEPPOHPHJOJ = 4573;
* DCDNILFDFLB = 0;
* NNBKOLMPOEA = 1;
*}
* </pre>
*
* Protobuf type {@code HomeResourceTakeHomeCoinRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeResourceTakeHomeCoinRsp)
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.internal_static_HomeResourceTakeHomeCoinRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.internal_static_HomeResourceTakeHomeCoinRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.class, emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.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();
if (homeCoinBuilder_ == null) {
homeCoin_ = null;
} else {
homeCoin_ = null;
homeCoinBuilder_ = null;
}
retcode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.internal_static_HomeResourceTakeHomeCoinRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp build() {
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp buildPartial() {
emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp result = new emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp(this);
if (homeCoinBuilder_ == null) {
result.homeCoin_ = homeCoin_;
} else {
result.homeCoin_ = homeCoinBuilder_.build();
}
result.retcode_ = retcode_;
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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp) {
return mergeFrom((emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp other) {
if (other == emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.getDefaultInstance()) return this;
if (other.hasHomeCoin()) {
mergeHomeCoin(other.getHomeCoin());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
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.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource homeCoin_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder> homeCoinBuilder_;
/**
* <code>.HomeResource homeCoin = 15;</code>
* @return Whether the homeCoin field is set.
*/
public boolean hasHomeCoin() {
return homeCoinBuilder_ != null || homeCoin_ != null;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
* @return The homeCoin.
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource getHomeCoin() {
if (homeCoinBuilder_ == null) {
return homeCoin_ == null ? emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : homeCoin_;
} else {
return homeCoinBuilder_.getMessage();
}
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
public Builder setHomeCoin(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (homeCoinBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
homeCoin_ = value;
onChanged();
} else {
homeCoinBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
public Builder setHomeCoin(
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder builderForValue) {
if (homeCoinBuilder_ == null) {
homeCoin_ = builderForValue.build();
onChanged();
} else {
homeCoinBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
public Builder mergeHomeCoin(emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource value) {
if (homeCoinBuilder_ == null) {
if (homeCoin_ != null) {
homeCoin_ =
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.newBuilder(homeCoin_).mergeFrom(value).buildPartial();
} else {
homeCoin_ = value;
}
onChanged();
} else {
homeCoinBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
public Builder clearHomeCoin() {
if (homeCoinBuilder_ == null) {
homeCoin_ = null;
onChanged();
} else {
homeCoin_ = null;
homeCoinBuilder_ = null;
}
return this;
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder getHomeCoinBuilder() {
onChanged();
return getHomeCoinFieldBuilder().getBuilder();
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
public emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder getHomeCoinOrBuilder() {
if (homeCoinBuilder_ != null) {
return homeCoinBuilder_.getMessageOrBuilder();
} else {
return homeCoin_ == null ?
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.getDefaultInstance() : homeCoin_;
}
}
/**
* <code>.HomeResource homeCoin = 15;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>
getHomeCoinFieldBuilder() {
if (homeCoinBuilder_ == null) {
homeCoinBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource.Builder, emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResourceOrBuilder>(
getHomeCoin(),
getParentForChildren(),
isClean());
homeCoin_ = null;
}
return homeCoinBuilder_;
}
private int retcode_ ;
/**
* <code>int32 retcode = 14;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 14;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 14;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 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:HomeResourceTakeHomeCoinRsp)
}
// @@protoc_insertion_point(class_scope:HomeResourceTakeHomeCoinRsp)
private static final emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp();
}
public static emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeResourceTakeHomeCoinRsp>
PARSER = new com.google.protobuf.AbstractParser<HomeResourceTakeHomeCoinRsp>() {
@java.lang.Override
public HomeResourceTakeHomeCoinRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeResourceTakeHomeCoinRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeResourceTakeHomeCoinRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeResourceTakeHomeCoinRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeResourceTakeHomeCoinRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeResourceTakeHomeCoinRsp_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!HomeResourceTakeHomeCoinRsp.proto\032\022Hom" +
"eResource.proto\"O\n\033HomeResourceTakeHomeC" +
"oinRsp\022\037\n\010homeCoin\030\017 \001(\0132\r.HomeResource\022" +
"\017\n\007retcode\030\016 \001(\005B\033\n\031emu.grasscutter.net." +
"protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.HomeResourceOuterClass.getDescriptor(),
});
internal_static_HomeResourceTakeHomeCoinRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeResourceTakeHomeCoinRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeResourceTakeHomeCoinRsp_descriptor,
new java.lang.String[] { "HomeCoin", "Retcode", });
emu.grasscutter.net.proto.HomeResourceOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -17,8 +17,13 @@ import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.experimental.FieldDefaults; import lombok.experimental.FieldDefaults;
import java.time.ZonedDateTime;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Objects;
import java.util.Set; import java.util.Set;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -37,6 +42,10 @@ public class GameHome {
int level; int level;
int exp; int exp;
int lastUpdatedTime;
int nextUpdateTime;
int storedCoin;
int storedFetterExp;
List<FurnitureMakeSlotItem> furnitureMakeSlotItemList; List<FurnitureMakeSlotItem> furnitureMakeSlotItemList;
ConcurrentHashMap<Integer, HomeSceneItem> sceneMap; ConcurrentHashMap<Integer, HomeSceneItem> sceneMap;
Set<Integer> unlockedHomeBgmList; Set<Integer> unlockedHomeBgmList;
@ -86,6 +95,8 @@ public class GameHome {
player.getSession().send(new PacketFurnitureCurModuleArrangeCountNotify()); player.getSession().send(new PacketFurnitureCurModuleArrangeCountNotify());
player.getSession().send(new PacketHomeMarkPointNotify(player)); player.getSession().send(new PacketHomeMarkPointNotify(player));
player.getSession().send(new PacketHomeAllUnlockedBgmIdListNotify(player)); player.getSession().send(new PacketHomeAllUnlockedBgmIdListNotify(player));
checkAccumulatedResources(player);
player.getSession().send(new PacketHomeResourceNotify(player));
} }
// Tell the client the reward is claimed or realm unlocked // Tell the client the reward is claimed or realm unlocked
@ -150,8 +161,189 @@ public class GameHome {
onOwnerLogin(player); onOwnerLogin(player);
} }
private void checkAccumulatedResources(Player player) {
int clientTime = (int) ZonedDateTime.now().toEpochSecond();
int owedRewards = 0;
// Don't owe if previous update hasn't passed
if (nextUpdateTime > clientTime) {
return;
}
if (lastUpdatedTime == 0) {
lastUpdatedTime = clientTime;
}
// Calculate number of owed rewards
owedRewards = 1 + ((clientTime - nextUpdateTime) / 3600);
// Ensure next update is at top of the hour
nextUpdateTime = (int) ZonedDateTime.now().plusHours(1).truncatedTo(ChronoUnit.HOURS).toEpochSecond();
// Get resources
var hourlyResources = getComfortResources(player);
var owedCoin = hourlyResources.get(0) * owedRewards;
var owedFetter = hourlyResources.get(1) * owedRewards;
// Update stored amounts
storeResources(player, owedCoin, owedFetter);
}
public void takeHomeCoin(Player player) {
player.getInventory().addItem(204, storedCoin);
storedCoin = 0;
save();
player.getSession().send(new PacketHomeResourceNotify(player));
}
public void takeHomeFetter(Player player) {
List<Integer> invitedAvatars = new ArrayList<>();
// Outdoors avatars
sceneMap.get(player.getCurrentRealmId() + 2000).getBlockItems().forEach((i, e) -> {
e.getDeployNPCList().forEach(id -> {
invitedAvatars.add(id.getAvatarId());
});
});
// Check as realm 5 inside is not in defaults and will be null
if (Objects.nonNull(sceneMap.get(player.getCurrentRealmId() + 2200))) {
// Indoors avatars
sceneMap.get(player.getCurrentRealmId() + 2200).getBlockItems().forEach((i, e) -> {
e.getDeployNPCList().forEach(id -> {
invitedAvatars.add(id.getAvatarId());
});
});
}
// Add exp to all avatars
invitedAvatars.forEach(id -> {
var avatar = player.getAvatars().getAvatarById(id);
player.getServer().getInventorySystem().upgradeAvatarFetterLevel(player, avatar, storedFetterExp);
});
storedFetterExp = 0;
save();
player.getSession().send(new PacketHomeResourceNotify(player));
}
public void updateHourlyResources(Player player) {
int clientTime = (int) ZonedDateTime.now().toEpochSecond();
// Check if resources can update
if (nextUpdateTime > clientTime) {
return;
}
// If no update has occurred before
if (lastUpdatedTime == 0) {
lastUpdatedTime = clientTime;
}
// Update stored resources
storeResources(player, 0, 0);
lastUpdatedTime = clientTime;
nextUpdateTime = (int) ZonedDateTime.now().plusHours(1).truncatedTo(ChronoUnit.HOURS).toEpochSecond();
save();
// Send packet
player.getSession().send(new PacketHomeResourceNotify(player));
}
public void storeResources(Player player, int owedCoin, int owedFetter) {
// Get max values
var maxCoin = getMaxCoin(level);
var maxFetter = getMaxFetter(level);
int newCoin = 0;
int newFetter = 0;
// Check if resources are already max
if (storedCoin >= maxCoin && storedFetterExp >= maxFetter) {
return;
}
// Get resources
var hourlyResources = getComfortResources(player);
// Update home coin
if (storedCoin < maxCoin) {
// Check if owed or hourly
if (owedCoin == 0) {
newCoin = storedCoin + hourlyResources.get(0);
} else {
newCoin = storedCoin + owedCoin;
}
// Ensure max is not exceeded
storedCoin = (maxCoin >= newCoin) ? newCoin : maxCoin;
}
// Update fetter exp
if (storedFetterExp < maxFetter) {
// Check if owed or hourly
if (owedFetter == 0) {
newFetter = storedFetterExp + hourlyResources.get(1);
} else {
newFetter = storedFetterExp + owedFetter;
}
// Ensure max is not exceeded
storedFetterExp = (maxFetter >= newFetter) ? newFetter : maxFetter;
}
save();
}
public List<Integer> getComfortResources(Player player) {
List<Integer> allHomesComfort = new ArrayList<>();
int highestComfort = 0;
// Use HomeComfortInfoNotify data since comfort value isn't stored
if (player.getRealmList() == null) {
return List.of(0, 0);
}
// Calculate comfort value for each home
for (int moduleId : player.getRealmList()) {
var homeScene = player.getHome().getHomeSceneItem(moduleId + 2000);
allHomesComfort.add(homeScene.calComfort());
}
// Get highest comfort value
highestComfort = Collections.max(allHomesComfort);
// Determine hourly resources
if (highestComfort >= 20000) {
return List.of(30, 5);
} else if (highestComfort >= 15000) {
return List.of(28, 5);
} else if (highestComfort >= 12000) {
return List.of(26, 5);
} else if (highestComfort >= 10000) {
return List.of(24, 4);
} else if (highestComfort >= 8000) {
return List.of(22, 4);
} else if (highestComfort >= 6000) {
return List.of(20, 4);
} else if (highestComfort >= 4500) {
return List.of(16, 3);
} else if (highestComfort >= 3000) {
return List.of(12, 3);
} else if (highestComfort >= 2000) {
return List.of(8, 2);
} else
return List.of(4, 2);
}
private int getExpRequired(int level) { private int getExpRequired(int level) {
HomeWorldLevelData levelData = GameData.getHomeWorldLevelDataMap().get(level); HomeWorldLevelData levelData = GameData.getHomeWorldLevelDataMap().get(level);
return levelData != null ? levelData.getExp() : 0; return levelData != null ? levelData.getExp() : 0;
} }
public int getMaxCoin(int level) {
var levelData = GameData.getHomeWorldLevelDataMap().get(level);
return levelData != null ? levelData.getHomeCoinStoreLimit() : 0;
}
public int getMaxFetter(int level) {
var levelData = GameData.getHomeWorldLevelDataMap().get(level);
return levelData != null ? levelData.getHomeFetterExpStoreLimit() : 0;
}
} }

View File

@ -1107,6 +1107,9 @@ public class Player {
// Satiation // Satiation
this.getSatiationManager().reduceSatiation(); this.getSatiationManager().reduceSatiation();
// Home resources
this.getHome().updateHourlyResources(this);
} }
private synchronized void doDailyReset() { private synchronized void doDailyReset() {

View File

@ -0,0 +1,18 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketHomeResourceTakeFetterExpRsp;
@Opcodes(PacketOpcodes.HomeResourceTakeFetterExpReq)
public class HandlerHomeResourceTakeFetterExpReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
session.send(new PacketHomeResourceTakeFetterExpRsp(session.getPlayer()));
}
}

View File

@ -0,0 +1,18 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketHomeResourceTakeHomeCoinRsp;
@Opcodes(PacketOpcodes.HomeResourceTakeHomeCoinReq)
public class HandlerHomeResourceTakeHomeCoinReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
session.send(new PacketHomeResourceTakeHomeCoinRsp(session.getPlayer()));
}
}

View File

@ -0,0 +1,35 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.HomeResourceNotifyOuterClass;
import emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource;
public class PacketHomeResourceNotify extends BasePacket {
public PacketHomeResourceNotify(Player player) {
super(PacketOpcodes.HomeResourceNotify);
var home = player.getHome();
var level = home.getLevel();
HomeResource coin = HomeResource.newBuilder()
.setNextRefreshTime(home.getNextUpdateTime())
.setStoreLimit(home.getMaxCoin(level))
.setStoreValue(home.getStoredCoin())
.build();
HomeResource fetter = HomeResource.newBuilder()
.setNextRefreshTime(home.getNextUpdateTime())
.setStoreLimit(home.getMaxFetter(level))
.setStoreValue(home.getStoredFetterExp())
.build();
var notify = HomeResourceNotifyOuterClass.HomeResourceNotify.newBuilder()
.setFetterExp(fetter)
.setHomeCoin(coin)
.build();
this.setData(notify);
}
}

View File

@ -0,0 +1,29 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.HomeResourceTakeFetterExpRspOuterClass;
import emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource;
public class PacketHomeResourceTakeFetterExpRsp extends BasePacket {
public PacketHomeResourceTakeFetterExpRsp(Player player) {
super(PacketOpcodes.HomeResourceTakeFetterExpRsp);
var home = player.getHome();
home.takeHomeFetter(player);
var fetterExp = HomeResource.newBuilder()
.setNextRefreshTime(home.getNextUpdateTime())
.setStoreLimit(home.getMaxFetter(home.getLevel()))
.setStoreValue(0)
.build();
var proto = HomeResourceTakeFetterExpRspOuterClass.HomeResourceTakeFetterExpRsp.newBuilder()
.setFetterExp(fetterExp)
.build();
this.setData(proto);
}
}

View File

@ -0,0 +1,29 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.HomeResourceTakeHomeCoinRspOuterClass;
import emu.grasscutter.net.proto.HomeResourceOuterClass.HomeResource;
public class PacketHomeResourceTakeHomeCoinRsp extends BasePacket {
public PacketHomeResourceTakeHomeCoinRsp(Player player) {
super(PacketOpcodes.HomeResourceTakeHomeCoinRsp);
var home = player.getHome();
home.takeHomeCoin(player);
var coin = HomeResource.newBuilder()
.setNextRefreshTime(home.getNextUpdateTime())
.setStoreLimit(home.getMaxCoin(home.getLevel()))
.setStoreValue(0)
.build();
var proto = HomeResourceTakeHomeCoinRspOuterClass.HomeResourceTakeHomeCoinRsp.newBuilder()
.setHomeCoin(coin)
.build();
this.setData(proto);
}
}