mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-05 13:53:37 +08:00
Add new protocol definitions
This commit is contained in:
+106
-106
@@ -19,36 +19,36 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>uint32 entity_id = 13;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
int getEntityId();
|
||||
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
* @return Whether the entity field is set.
|
||||
*/
|
||||
boolean hasEntity();
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
* @return The entity.
|
||||
*/
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo getEntity();
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfoOrBuilder getEntityOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 3;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
int getRetcode();
|
||||
|
||||
/**
|
||||
* <code>uint32 entity_id = 5;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
int getEntityId();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 205
|
||||
* Obf: LKHMIBMGCHL
|
||||
* CmdId: 3079
|
||||
* Obf: PHIOAGPDFCP
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SceneCreateEntityRsp}
|
||||
@@ -95,7 +95,12 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 66: {
|
||||
case 24: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.Builder subBuilder = null;
|
||||
if (entity_ != null) {
|
||||
subBuilder = entity_.toBuilder();
|
||||
@@ -108,12 +113,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
|
||||
retcode_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 104: {
|
||||
case 40: {
|
||||
|
||||
entityId_ = input.readUInt32();
|
||||
break;
|
||||
@@ -150,21 +150,10 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp.class, emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp.Builder.class);
|
||||
}
|
||||
|
||||
public static final int ENTITY_ID_FIELD_NUMBER = 13;
|
||||
private int entityId_;
|
||||
/**
|
||||
* <code>uint32 entity_id = 13;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
public static final int ENTITY_FIELD_NUMBER = 8;
|
||||
public static final int ENTITY_FIELD_NUMBER = 4;
|
||||
private emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo entity_;
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
* @return Whether the entity field is set.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -172,7 +161,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return entity_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
* @return The entity.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -180,17 +169,17 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return entity_ == null ? emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.getDefaultInstance() : entity_;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfoOrBuilder getEntityOrBuilder() {
|
||||
return getEntity();
|
||||
}
|
||||
|
||||
public static final int RETCODE_FIELD_NUMBER = 10;
|
||||
public static final int RETCODE_FIELD_NUMBER = 3;
|
||||
private int retcode_;
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 3;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -198,6 +187,17 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
|
||||
public static final int ENTITY_ID_FIELD_NUMBER = 5;
|
||||
private int entityId_;
|
||||
/**
|
||||
* <code>uint32 entity_id = 5;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@@ -212,14 +212,14 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (entity_ != null) {
|
||||
output.writeMessage(8, getEntity());
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
output.writeInt32(10, retcode_);
|
||||
output.writeInt32(3, retcode_);
|
||||
}
|
||||
if (entity_ != null) {
|
||||
output.writeMessage(4, getEntity());
|
||||
}
|
||||
if (entityId_ != 0) {
|
||||
output.writeUInt32(13, entityId_);
|
||||
output.writeUInt32(5, entityId_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
@@ -230,17 +230,17 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (entity_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(8, getEntity());
|
||||
}
|
||||
if (retcode_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(10, retcode_);
|
||||
.computeInt32Size(3, retcode_);
|
||||
}
|
||||
if (entity_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(4, getEntity());
|
||||
}
|
||||
if (entityId_ != 0) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeUInt32Size(13, entityId_);
|
||||
.computeUInt32Size(5, entityId_);
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
@@ -257,8 +257,6 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp other = (emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp) obj;
|
||||
|
||||
if (getEntityId()
|
||||
!= other.getEntityId()) return false;
|
||||
if (hasEntity() != other.hasEntity()) return false;
|
||||
if (hasEntity()) {
|
||||
if (!getEntity()
|
||||
@@ -266,6 +264,8 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
if (getRetcode()
|
||||
!= other.getRetcode()) return false;
|
||||
if (getEntityId()
|
||||
!= other.getEntityId()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -277,14 +277,14 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getEntityId();
|
||||
if (hasEntity()) {
|
||||
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getEntity().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getRetcode();
|
||||
hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getEntityId();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@@ -382,8 +382,8 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* CmdId: 205
|
||||
* Obf: LKHMIBMGCHL
|
||||
* CmdId: 3079
|
||||
* Obf: PHIOAGPDFCP
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code SceneCreateEntityRsp}
|
||||
@@ -423,8 +423,6 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
entityId_ = 0;
|
||||
|
||||
if (entityBuilder_ == null) {
|
||||
entity_ = null;
|
||||
} else {
|
||||
@@ -433,6 +431,8 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
retcode_ = 0;
|
||||
|
||||
entityId_ = 0;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -459,13 +459,13 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
@java.lang.Override
|
||||
public emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp buildPartial() {
|
||||
emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp result = new emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp(this);
|
||||
result.entityId_ = entityId_;
|
||||
if (entityBuilder_ == null) {
|
||||
result.entity_ = entity_;
|
||||
} else {
|
||||
result.entity_ = entityBuilder_.build();
|
||||
}
|
||||
result.retcode_ = retcode_;
|
||||
result.entityId_ = entityId_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@@ -514,15 +514,15 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
|
||||
public Builder mergeFrom(emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp other) {
|
||||
if (other == emu.grasscutter.net.proto.SceneCreateEntityRspOuterClass.SceneCreateEntityRsp.getDefaultInstance()) return this;
|
||||
if (other.getEntityId() != 0) {
|
||||
setEntityId(other.getEntityId());
|
||||
}
|
||||
if (other.hasEntity()) {
|
||||
mergeEntity(other.getEntity());
|
||||
}
|
||||
if (other.getRetcode() != 0) {
|
||||
setRetcode(other.getRetcode());
|
||||
}
|
||||
if (other.getEntityId() != 0) {
|
||||
setEntityId(other.getEntityId());
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@@ -552,49 +552,18 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
|
||||
private int entityId_ ;
|
||||
/**
|
||||
* <code>uint32 entity_id = 13;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 13;</code>
|
||||
* @param value The entityId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setEntityId(int value) {
|
||||
|
||||
entityId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 13;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEntityId() {
|
||||
|
||||
entityId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo entity_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo, emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.Builder, emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfoOrBuilder> entityBuilder_;
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
* @return Whether the entity field is set.
|
||||
*/
|
||||
public boolean hasEntity() {
|
||||
return entityBuilder_ != null || entity_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
* @return The entity.
|
||||
*/
|
||||
public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo getEntity() {
|
||||
@@ -605,7 +574,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
public Builder setEntity(emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo value) {
|
||||
if (entityBuilder_ == null) {
|
||||
@@ -621,7 +590,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
public Builder setEntity(
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.Builder builderForValue) {
|
||||
@@ -635,7 +604,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
public Builder mergeEntity(emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo value) {
|
||||
if (entityBuilder_ == null) {
|
||||
@@ -653,7 +622,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
public Builder clearEntity() {
|
||||
if (entityBuilder_ == null) {
|
||||
@@ -667,7 +636,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.Builder getEntityBuilder() {
|
||||
|
||||
@@ -675,7 +644,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return getEntityFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
public emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfoOrBuilder getEntityOrBuilder() {
|
||||
if (entityBuilder_ != null) {
|
||||
@@ -686,7 +655,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.CreateEntityInfo entity = 8;</code>
|
||||
* <code>.CreateEntityInfo entity = 4;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo, emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfo.Builder, emu.grasscutter.net.proto.CreateEntityInfoOuterClass.CreateEntityInfoOrBuilder>
|
||||
@@ -704,7 +673,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
|
||||
private int retcode_ ;
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 3;</code>
|
||||
* @return The retcode.
|
||||
*/
|
||||
@java.lang.Override
|
||||
@@ -712,7 +681,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return retcode_;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 3;</code>
|
||||
* @param value The retcode to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
@@ -723,7 +692,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>int32 retcode = 10;</code>
|
||||
* <code>int32 retcode = 3;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearRetcode() {
|
||||
@@ -732,6 +701,37 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private int entityId_ ;
|
||||
/**
|
||||
* <code>uint32 entity_id = 5;</code>
|
||||
* @return The entityId.
|
||||
*/
|
||||
@java.lang.Override
|
||||
public int getEntityId() {
|
||||
return entityId_;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 5;</code>
|
||||
* @param value The entityId to set.
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder setEntityId(int value) {
|
||||
|
||||
entityId_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>uint32 entity_id = 5;</code>
|
||||
* @return This builder for chaining.
|
||||
*/
|
||||
public Builder clearEntityId() {
|
||||
|
||||
entityId_ = 0;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@@ -800,9 +800,9 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\032SceneCreateEntityRsp.proto\032\026CreateEnti" +
|
||||
"tyInfo.proto\"]\n\024SceneCreateEntityRsp\022\021\n\t" +
|
||||
"entity_id\030\r \001(\r\022!\n\006entity\030\010 \001(\0132\021.Create" +
|
||||
"EntityInfo\022\017\n\007retcode\030\n \001(\005B\033\n\031emu.grass" +
|
||||
"tyInfo.proto\"]\n\024SceneCreateEntityRsp\022!\n\006" +
|
||||
"entity\030\004 \001(\0132\021.CreateEntityInfo\022\017\n\007retco" +
|
||||
"de\030\003 \001(\005\022\021\n\tentity_id\030\005 \001(\rB\033\n\031emu.grass" +
|
||||
"cutter.net.protob\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
@@ -815,7 +815,7 @@ public final class SceneCreateEntityRspOuterClass {
|
||||
internal_static_SceneCreateEntityRsp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_SceneCreateEntityRsp_descriptor,
|
||||
new java.lang.String[] { "EntityId", "Entity", "Retcode", });
|
||||
new java.lang.String[] { "Entity", "Retcode", "EntityId", });
|
||||
emu.grasscutter.net.proto.CreateEntityInfoOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user