Add new protocol definitions

This commit is contained in:
KingRainbow44
2023-08-14 18:57:07 -04:00
Unverified
parent 1bcb79840c
commit ceeaf3748a
3772 changed files with 448618 additions and 1108926 deletions
@@ -19,30 +19,30 @@ public final class TakeHuntingOfferReqOuterClass {
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 city_id = 6;</code>
* @return The cityId.
*/
int getCityId();
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
* @return Whether the huntingPair field is set.
*/
boolean hasHuntingPair();
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
* @return The huntingPair.
*/
emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair getHuntingPair();
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPairOrBuilder getHuntingPairOrBuilder();
/**
* <code>uint32 city_id = 14;</code>
* @return The cityId.
*/
int getCityId();
}
/**
* <pre>
* CmdId: 4328
* Obf: MMAJFKAOMBD
* CmdId: 26500
* Obf: MEJFENDLGBH
* </pre>
*
* Protobuf type {@code TakeHuntingOfferReq}
@@ -89,7 +89,7 @@ public final class TakeHuntingOfferReqOuterClass {
case 0:
done = true;
break;
case 34: {
case 58: {
emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair.Builder subBuilder = null;
if (huntingPair_ != null) {
subBuilder = huntingPair_.toBuilder();
@@ -102,7 +102,7 @@ public final class TakeHuntingOfferReqOuterClass {
break;
}
case 48: {
case 112: {
cityId_ = input.readUInt32();
break;
@@ -139,21 +139,10 @@ public final class TakeHuntingOfferReqOuterClass {
emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq.class, emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq.Builder.class);
}
public static final int CITY_ID_FIELD_NUMBER = 6;
private int cityId_;
/**
* <code>uint32 city_id = 6;</code>
* @return The cityId.
*/
@java.lang.Override
public int getCityId() {
return cityId_;
}
public static final int HUNTING_PAIR_FIELD_NUMBER = 4;
public static final int HUNTING_PAIR_FIELD_NUMBER = 7;
private emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair huntingPair_;
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
* @return Whether the huntingPair field is set.
*/
@java.lang.Override
@@ -161,7 +150,7 @@ public final class TakeHuntingOfferReqOuterClass {
return huntingPair_ != null;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
* @return The huntingPair.
*/
@java.lang.Override
@@ -169,13 +158,24 @@ public final class TakeHuntingOfferReqOuterClass {
return huntingPair_ == null ? emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair.getDefaultInstance() : huntingPair_;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPairOrBuilder getHuntingPairOrBuilder() {
return getHuntingPair();
}
public static final int CITY_ID_FIELD_NUMBER = 14;
private int cityId_;
/**
* <code>uint32 city_id = 14;</code>
* @return The cityId.
*/
@java.lang.Override
public int getCityId() {
return cityId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -191,10 +191,10 @@ public final class TakeHuntingOfferReqOuterClass {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (huntingPair_ != null) {
output.writeMessage(4, getHuntingPair());
output.writeMessage(7, getHuntingPair());
}
if (cityId_ != 0) {
output.writeUInt32(6, cityId_);
output.writeUInt32(14, cityId_);
}
unknownFields.writeTo(output);
}
@@ -207,11 +207,11 @@ public final class TakeHuntingOfferReqOuterClass {
size = 0;
if (huntingPair_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getHuntingPair());
.computeMessageSize(7, getHuntingPair());
}
if (cityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, cityId_);
.computeUInt32Size(14, cityId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -228,13 +228,13 @@ public final class TakeHuntingOfferReqOuterClass {
}
emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq other = (emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq) obj;
if (getCityId()
!= other.getCityId()) return false;
if (hasHuntingPair() != other.hasHuntingPair()) return false;
if (hasHuntingPair()) {
if (!getHuntingPair()
.equals(other.getHuntingPair())) return false;
}
if (getCityId()
!= other.getCityId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -246,12 +246,12 @@ public final class TakeHuntingOfferReqOuterClass {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getCityId();
if (hasHuntingPair()) {
hash = (37 * hash) + HUNTING_PAIR_FIELD_NUMBER;
hash = (53 * hash) + getHuntingPair().hashCode();
}
hash = (37 * hash) + CITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getCityId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -349,8 +349,8 @@ public final class TakeHuntingOfferReqOuterClass {
}
/**
* <pre>
* CmdId: 4328
* Obf: MMAJFKAOMBD
* CmdId: 26500
* Obf: MEJFENDLGBH
* </pre>
*
* Protobuf type {@code TakeHuntingOfferReq}
@@ -390,14 +390,14 @@ public final class TakeHuntingOfferReqOuterClass {
@java.lang.Override
public Builder clear() {
super.clear();
cityId_ = 0;
if (huntingPairBuilder_ == null) {
huntingPair_ = null;
} else {
huntingPair_ = null;
huntingPairBuilder_ = null;
}
cityId_ = 0;
return this;
}
@@ -424,12 +424,12 @@ public final class TakeHuntingOfferReqOuterClass {
@java.lang.Override
public emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq buildPartial() {
emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq result = new emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq(this);
result.cityId_ = cityId_;
if (huntingPairBuilder_ == null) {
result.huntingPair_ = huntingPair_;
} else {
result.huntingPair_ = huntingPairBuilder_.build();
}
result.cityId_ = cityId_;
onBuilt();
return result;
}
@@ -478,12 +478,12 @@ public final class TakeHuntingOfferReqOuterClass {
public Builder mergeFrom(emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq other) {
if (other == emu.grasscutter.net.proto.TakeHuntingOfferReqOuterClass.TakeHuntingOfferReq.getDefaultInstance()) return this;
if (other.getCityId() != 0) {
setCityId(other.getCityId());
}
if (other.hasHuntingPair()) {
mergeHuntingPair(other.getHuntingPair());
}
if (other.getCityId() != 0) {
setCityId(other.getCityId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -513,49 +513,18 @@ public final class TakeHuntingOfferReqOuterClass {
return this;
}
private int cityId_ ;
/**
* <code>uint32 city_id = 6;</code>
* @return The cityId.
*/
@java.lang.Override
public int getCityId() {
return cityId_;
}
/**
* <code>uint32 city_id = 6;</code>
* @param value The cityId to set.
* @return This builder for chaining.
*/
public Builder setCityId(int value) {
cityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 city_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearCityId() {
cityId_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair huntingPair_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair, emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair.Builder, emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPairOrBuilder> huntingPairBuilder_;
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
* @return Whether the huntingPair field is set.
*/
public boolean hasHuntingPair() {
return huntingPairBuilder_ != null || huntingPair_ != null;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
* @return The huntingPair.
*/
public emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair getHuntingPair() {
@@ -566,7 +535,7 @@ public final class TakeHuntingOfferReqOuterClass {
}
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
public Builder setHuntingPair(emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair value) {
if (huntingPairBuilder_ == null) {
@@ -582,7 +551,7 @@ public final class TakeHuntingOfferReqOuterClass {
return this;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
public Builder setHuntingPair(
emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair.Builder builderForValue) {
@@ -596,7 +565,7 @@ public final class TakeHuntingOfferReqOuterClass {
return this;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
public Builder mergeHuntingPair(emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair value) {
if (huntingPairBuilder_ == null) {
@@ -614,7 +583,7 @@ public final class TakeHuntingOfferReqOuterClass {
return this;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
public Builder clearHuntingPair() {
if (huntingPairBuilder_ == null) {
@@ -628,7 +597,7 @@ public final class TakeHuntingOfferReqOuterClass {
return this;
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
public emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair.Builder getHuntingPairBuilder() {
@@ -636,7 +605,7 @@ public final class TakeHuntingOfferReqOuterClass {
return getHuntingPairFieldBuilder().getBuilder();
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
public emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPairOrBuilder getHuntingPairOrBuilder() {
if (huntingPairBuilder_ != null) {
@@ -647,7 +616,7 @@ public final class TakeHuntingOfferReqOuterClass {
}
}
/**
* <code>.HuntingPair hunting_pair = 4;</code>
* <code>.HuntingPair hunting_pair = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair, emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPair.Builder, emu.grasscutter.net.proto.HuntingPairOuterClass.HuntingPairOrBuilder>
@@ -662,6 +631,37 @@ public final class TakeHuntingOfferReqOuterClass {
}
return huntingPairBuilder_;
}
private int cityId_ ;
/**
* <code>uint32 city_id = 14;</code>
* @return The cityId.
*/
@java.lang.Override
public int getCityId() {
return cityId_;
}
/**
* <code>uint32 city_id = 14;</code>
* @param value The cityId to set.
* @return This builder for chaining.
*/
public Builder setCityId(int value) {
cityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 city_id = 14;</code>
* @return This builder for chaining.
*/
public Builder clearCityId() {
cityId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -730,9 +730,9 @@ public final class TakeHuntingOfferReqOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\031TakeHuntingOfferReq.proto\032\021HuntingPair" +
".proto\"J\n\023TakeHuntingOfferReq\022\017\n\007city_id" +
"\030\006 \001(\r\022\"\n\014hunting_pair\030\004 \001(\0132\014.HuntingPa" +
"irB\033\n\031emu.grasscutter.net.protob\006proto3"
".proto\"J\n\023TakeHuntingOfferReq\022\"\n\014hunting" +
"_pair\030\007 \001(\0132\014.HuntingPair\022\017\n\007city_id\030\016 \001" +
"(\rB\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -744,7 +744,7 @@ public final class TakeHuntingOfferReqOuterClass {
internal_static_TakeHuntingOfferReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_TakeHuntingOfferReq_descriptor,
new java.lang.String[] { "CityId", "HuntingPair", });
new java.lang.String[] { "HuntingPair", "CityId", });
emu.grasscutter.net.proto.HuntingPairOuterClass.getDescriptor();
}