From 712d17631f95ab14e7a332645fe0f7cf1e4fafbd Mon Sep 17 00:00:00 2001 From: GanyusLeftHorn <1244229+GanyusLeftHorn@users.noreply.github.com> Date: Thu, 1 Sep 2022 02:21:47 +0200 Subject: [PATCH] Custom Teams (#1731) * Add support for creating and deleting custom teams. * Add support for creating and deleting custom teams. * Move some logic to TeamInfo::toProto --- .../net/proto/AddCustomTeamReqOuterClass.java | 480 +++++++ .../net/proto/AddCustomTeamRspOuterClass.java | 548 ++++++++ .../net/proto/AvatarDataNotifyOuterClass.java | 192 ++- .../proto/CustomTeamListNotifyOuterClass.java | 1203 +++++++++++++++++ .../proto/RemoveCustomTeamReqOuterClass.java | 550 ++++++++ .../proto/RemoveCustomTeamRspOuterClass.java | 618 +++++++++ .../java/emu/grasscutter/GameConstants.java | 3 +- .../emu/grasscutter/game/player/TeamInfo.java | 13 + .../grasscutter/game/player/TeamManager.java | 50 +- .../grasscutter/net/packet/PacketOpcodes.java | 10 +- .../packet/recv/HandlerAddCustomTeamReq.java | 14 + .../recv/HandlerRemoveCustomTeamReq.java | 16 + .../packet/send/PacketAddCustomTeamRsp.java | 22 + .../packet/send/PacketAvatarDataNotify.java | 17 +- .../send/PacketAvatarTeamUpdateNotify.java | 10 +- .../send/PacketCustomTeamListNotify.java | 34 + .../send/PacketRemoveCustomTeamRsp.java | 23 + 17 files changed, 3678 insertions(+), 125 deletions(-) create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/AddCustomTeamReqOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/AddCustomTeamRspOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/CustomTeamListNotifyOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/RemoveCustomTeamReqOuterClass.java create mode 100644 src/generated/main/java/emu/grasscutter/net/proto/RemoveCustomTeamRspOuterClass.java create mode 100644 src/main/java/emu/grasscutter/server/packet/recv/HandlerAddCustomTeamReq.java create mode 100644 src/main/java/emu/grasscutter/server/packet/recv/HandlerRemoveCustomTeamReq.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketAddCustomTeamRsp.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketCustomTeamListNotify.java create mode 100644 src/main/java/emu/grasscutter/server/packet/send/PacketRemoveCustomTeamRsp.java diff --git a/src/generated/main/java/emu/grasscutter/net/proto/AddCustomTeamReqOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/AddCustomTeamReqOuterClass.java new file mode 100644 index 000000000..d1df3d8df --- /dev/null +++ b/src/generated/main/java/emu/grasscutter/net/proto/AddCustomTeamReqOuterClass.java @@ -0,0 +1,480 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AddCustomTeamReq.proto + +package emu.grasscutter.net.proto; + +public final class AddCustomTeamReqOuterClass { + private AddCustomTeamReqOuterClass() {} + 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 AddCustomTeamReqOrBuilder extends + // @@protoc_insertion_point(interface_extends:AddCustomTeamReq) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+ * CmdId: 1687 + * EnetChannelId: 0 + * EnetIsReliable: true + * IsAllowClient: true + *+ * + * Protobuf type {@code AddCustomTeamReq} + */ + public static final class AddCustomTeamReq extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AddCustomTeamReq) + AddCustomTeamReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddCustomTeamReq.newBuilder() to construct. + private AddCustomTeamReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AddCustomTeamReq() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AddCustomTeamReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddCustomTeamReq( + 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.AddCustomTeamReqOuterClass.internal_static_AddCustomTeamReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.internal_static_AddCustomTeamReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq.class, emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq.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.AddCustomTeamReqOuterClass.AddCustomTeamReq)) { + return super.equals(obj); + } + emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq other = (emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq) 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.AddCustomTeamReqOuterClass.AddCustomTeamReq parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq 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.AddCustomTeamReqOuterClass.AddCustomTeamReq parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq 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.AddCustomTeamReqOuterClass.AddCustomTeamReq parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq 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.AddCustomTeamReqOuterClass.AddCustomTeamReq parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq 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.AddCustomTeamReqOuterClass.AddCustomTeamReq parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static emu.grasscutter.net.proto.AddCustomTeamReqOuterClass.AddCustomTeamReq 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.AddCustomTeamReqOuterClass.AddCustomTeamReq 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; + } + /** + *
+ * CmdId: 1687 + * EnetChannelId: 0 + * EnetIsReliable: true + * IsAllowClient: true + *+ * + * Protobuf type {@code AddCustomTeamReq} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
int32 retcode = 4;
+ * @return The retcode.
+ */
+ int getRetcode();
+ }
+ /**
+ * + * CmdId: 1735 + * EnetChannelId: 0 + * EnetIsReliable: true + *+ * + * Protobuf type {@code AddCustomTeamRsp} + */ + public static final class AddCustomTeamRsp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AddCustomTeamRsp) + AddCustomTeamRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddCustomTeamRsp.newBuilder() to construct. + private AddCustomTeamRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AddCustomTeamRsp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AddCustomTeamRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddCustomTeamRsp( + 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 32: { + + retcode_ = input.readInt32(); + 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.AddCustomTeamRspOuterClass.internal_static_AddCustomTeamRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.internal_static_AddCustomTeamRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp.class, emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp.Builder.class); + } + + public static final int RETCODE_FIELD_NUMBER = 4; + private int retcode_; + /** + *
int32 retcode = 4;
+ * @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(4, retcode_);
+ }
+ 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(4, retcode_);
+ }
+ 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp other = (emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp) obj;
+
+ 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();
+ 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp 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.AddCustomTeamRspOuterClass.AddCustomTeamRsp 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;
+ }
+ /**
+ * + * CmdId: 1735 + * EnetChannelId: 0 + * EnetIsReliable: true + *+ * + * Protobuf type {@code AddCustomTeamRsp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
int32 retcode = 4;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 4;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 4;
+ * @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:AddCustomTeamRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:AddCustomTeamRsp)
+ private static final emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp();
+ }
+
+ public static emu.grasscutter.net.proto.AddCustomTeamRspOuterClass.AddCustomTeamRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @return A list containing the unk3000NIGPICLBHMA.
+ * repeated uint32 custom_team_ids = 9;
+ * @return A list containing the customTeamIds.
*/
- java.util.Listrepeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @return The count of unk3000NIGPICLBHMA.
+ * repeated uint32 custom_team_ids = 9;
+ * @return The count of customTeamIds.
*/
- int getUnk3000NIGPICLBHMACount();
+ int getCustomTeamIdsCount();
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
+ * repeated uint32 custom_team_ids = 9;
* @param index The index of the element to return.
- * @return The unk3000NIGPICLBHMA at the given index.
+ * @return The customTeamIds at the given index.
*/
- int getUnk3000NIGPICLBHMA(int index);
+ int getCustomTeamIds(int index);
/**
* repeated uint64 temp_avatar_guid_list = 12;
@@ -160,8 +160,7 @@ public final class AvatarDataNotifyOuterClass {
* * CmdId: 1633 * EnetChannelId: 0 - * EnetIsReliable: false - * IsAllowClient: true + * EnetIsReliable: true ** * Protobuf type {@code AvatarDataNotify} @@ -177,7 +176,7 @@ public final class AvatarDataNotifyOuterClass { } private AvatarDataNotify() { ownedCostumeList_ = emptyIntList(); - unk3000NIGPICLBHMA_ = emptyIntList(); + customTeamIds_ = emptyIntList(); tempAvatarGuidList_ = emptyLongList(); ownedFlycloakList_ = emptyIntList(); avatarList_ = java.util.Collections.emptyList(); @@ -269,21 +268,21 @@ public final class AvatarDataNotifyOuterClass { } case 72: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { - unk3000NIGPICLBHMA_ = newIntList(); + customTeamIds_ = newIntList(); mutable_bitField0_ |= 0x00000004; } - unk3000NIGPICLBHMA_.addInt(input.readUInt32()); + customTeamIds_.addInt(input.readUInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { - unk3000NIGPICLBHMA_ = newIntList(); + customTeamIds_ = newIntList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { - unk3000NIGPICLBHMA_.addInt(input.readUInt32()); + customTeamIds_.addInt(input.readUInt32()); } input.popLimit(limit); break; @@ -352,7 +351,7 @@ public final class AvatarDataNotifyOuterClass { avatarList_ = java.util.Collections.unmodifiableList(avatarList_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { - unk3000NIGPICLBHMA_.makeImmutable(); // C + customTeamIds_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000001) != 0)) { ownedCostumeList_.makeImmutable(); // C @@ -509,33 +508,33 @@ public final class AvatarDataNotifyOuterClass { return map.get(key); } - public static final int UNK3000_NIGPICLBHMA_FIELD_NUMBER = 9; - private com.google.protobuf.Internal.IntList unk3000NIGPICLBHMA_; + public static final int CUSTOM_TEAM_IDS_FIELD_NUMBER = 9; + private com.google.protobuf.Internal.IntList customTeamIds_; /** - *
repeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @return A list containing the unk3000NIGPICLBHMA.
+ * repeated uint32 custom_team_ids = 9;
+ * @return A list containing the customTeamIds.
*/
@java.lang.Override
public java.util.Listrepeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @return The count of unk3000NIGPICLBHMA.
+ * repeated uint32 custom_team_ids = 9;
+ * @return The count of customTeamIds.
*/
- public int getUnk3000NIGPICLBHMACount() {
- return unk3000NIGPICLBHMA_.size();
+ public int getCustomTeamIdsCount() {
+ return customTeamIds_.size();
}
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
+ * repeated uint32 custom_team_ids = 9;
* @param index The index of the element to return.
- * @return The unk3000NIGPICLBHMA at the given index.
+ * @return The customTeamIds at the given index.
*/
- public int getUnk3000NIGPICLBHMA(int index) {
- return unk3000NIGPICLBHMA_.getInt(index);
+ public int getCustomTeamIds(int index) {
+ return customTeamIds_.getInt(index);
}
- private int unk3000NIGPICLBHMAMemoizedSerializedSize = -1;
+ private int customTeamIdsMemoizedSerializedSize = -1;
public static final int TEMP_AVATAR_GUID_LIST_FIELD_NUMBER = 12;
private com.google.protobuf.Internal.LongList tempAvatarGuidList_;
@@ -681,12 +680,12 @@ public final class AvatarDataNotifyOuterClass {
if (chooseAvatarGuid_ != 0L) {
output.writeUInt64(8, chooseAvatarGuid_);
}
- if (getUnk3000NIGPICLBHMAList().size() > 0) {
+ if (getCustomTeamIdsList().size() > 0) {
output.writeUInt32NoTag(74);
- output.writeUInt32NoTag(unk3000NIGPICLBHMAMemoizedSerializedSize);
+ output.writeUInt32NoTag(customTeamIdsMemoizedSerializedSize);
}
- for (int i = 0; i < unk3000NIGPICLBHMA_.size(); i++) {
- output.writeUInt32NoTag(unk3000NIGPICLBHMA_.getInt(i));
+ for (int i = 0; i < customTeamIds_.size(); i++) {
+ output.writeUInt32NoTag(customTeamIds_.getInt(i));
}
if (getOwnedCostumeListList().size() > 0) {
output.writeUInt32NoTag(90);
@@ -749,17 +748,17 @@ public final class AvatarDataNotifyOuterClass {
}
{
int dataSize = 0;
- for (int i = 0; i < unk3000NIGPICLBHMA_.size(); i++) {
+ for (int i = 0; i < customTeamIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(unk3000NIGPICLBHMA_.getInt(i));
+ .computeUInt32SizeNoTag(customTeamIds_.getInt(i));
}
size += dataSize;
- if (!getUnk3000NIGPICLBHMAList().isEmpty()) {
+ if (!getCustomTeamIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
- unk3000NIGPICLBHMAMemoizedSerializedSize = dataSize;
+ customTeamIdsMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
@@ -810,8 +809,8 @@ public final class AvatarDataNotifyOuterClass {
!= other.getChooseAvatarGuid()) return false;
if (!internalGetAvatarTeamMap().equals(
other.internalGetAvatarTeamMap())) return false;
- if (!getUnk3000NIGPICLBHMAList()
- .equals(other.getUnk3000NIGPICLBHMAList())) return false;
+ if (!getCustomTeamIdsList()
+ .equals(other.getCustomTeamIdsList())) return false;
if (!getTempAvatarGuidListList()
.equals(other.getTempAvatarGuidListList())) return false;
if (!getOwnedFlycloakListList()
@@ -842,9 +841,9 @@ public final class AvatarDataNotifyOuterClass {
hash = (37 * hash) + AVATAR_TEAM_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetAvatarTeamMap().hashCode();
}
- if (getUnk3000NIGPICLBHMACount() > 0) {
- hash = (37 * hash) + UNK3000_NIGPICLBHMA_FIELD_NUMBER;
- hash = (53 * hash) + getUnk3000NIGPICLBHMAList().hashCode();
+ if (getCustomTeamIdsCount() > 0) {
+ hash = (37 * hash) + CUSTOM_TEAM_IDS_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomTeamIdsList().hashCode();
}
if (getTempAvatarGuidListCount() > 0) {
hash = (37 * hash) + TEMP_AVATAR_GUID_LIST_FIELD_NUMBER;
@@ -959,8 +958,7 @@ public final class AvatarDataNotifyOuterClass {
* * CmdId: 1633 * EnetChannelId: 0 - * EnetIsReliable: false - * IsAllowClient: true + * EnetIsReliable: true ** * Protobuf type {@code AvatarDataNotify} @@ -1028,7 +1026,7 @@ public final class AvatarDataNotifyOuterClass { chooseAvatarGuid_ = 0L; internalGetMutableAvatarTeamMap().clear(); - unk3000NIGPICLBHMA_ = emptyIntList(); + customTeamIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); tempAvatarGuidList_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1078,10 +1076,10 @@ public final class AvatarDataNotifyOuterClass { result.avatarTeamMap_ = internalGetAvatarTeamMap(); result.avatarTeamMap_.makeImmutable(); if (((bitField0_ & 0x00000004) != 0)) { - unk3000NIGPICLBHMA_.makeImmutable(); + customTeamIds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } - result.unk3000NIGPICLBHMA_ = unk3000NIGPICLBHMA_; + result.customTeamIds_ = customTeamIds_; if (((bitField0_ & 0x00000008) != 0)) { tempAvatarGuidList_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000008); @@ -1165,13 +1163,13 @@ public final class AvatarDataNotifyOuterClass { } internalGetMutableAvatarTeamMap().mergeFrom( other.internalGetAvatarTeamMap()); - if (!other.unk3000NIGPICLBHMA_.isEmpty()) { - if (unk3000NIGPICLBHMA_.isEmpty()) { - unk3000NIGPICLBHMA_ = other.unk3000NIGPICLBHMA_; + if (!other.customTeamIds_.isEmpty()) { + if (customTeamIds_.isEmpty()) { + customTeamIds_ = other.customTeamIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { - ensureUnk3000NIGPICLBHMAIsMutable(); - unk3000NIGPICLBHMA_.addAll(other.unk3000NIGPICLBHMA_); + ensureCustomTeamIdsIsMutable(); + customTeamIds_.addAll(other.customTeamIds_); } onChanged(); } @@ -1492,80 +1490,80 @@ public final class AvatarDataNotifyOuterClass { return this; } - private com.google.protobuf.Internal.IntList unk3000NIGPICLBHMA_ = emptyIntList(); - private void ensureUnk3000NIGPICLBHMAIsMutable() { + private com.google.protobuf.Internal.IntList customTeamIds_ = emptyIntList(); + private void ensureCustomTeamIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - unk3000NIGPICLBHMA_ = mutableCopy(unk3000NIGPICLBHMA_); + customTeamIds_ = mutableCopy(customTeamIds_); bitField0_ |= 0x00000004; } } /** - *
repeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @return A list containing the unk3000NIGPICLBHMA.
+ * repeated uint32 custom_team_ids = 9;
+ * @return A list containing the customTeamIds.
*/
public java.util.Listrepeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @return The count of unk3000NIGPICLBHMA.
+ * repeated uint32 custom_team_ids = 9;
+ * @return The count of customTeamIds.
*/
- public int getUnk3000NIGPICLBHMACount() {
- return unk3000NIGPICLBHMA_.size();
+ public int getCustomTeamIdsCount() {
+ return customTeamIds_.size();
}
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
+ * repeated uint32 custom_team_ids = 9;
* @param index The index of the element to return.
- * @return The unk3000NIGPICLBHMA at the given index.
+ * @return The customTeamIds at the given index.
*/
- public int getUnk3000NIGPICLBHMA(int index) {
- return unk3000NIGPICLBHMA_.getInt(index);
+ public int getCustomTeamIds(int index) {
+ return customTeamIds_.getInt(index);
}
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
+ * repeated uint32 custom_team_ids = 9;
* @param index The index to set the value at.
- * @param value The unk3000NIGPICLBHMA to set.
+ * @param value The customTeamIds to set.
* @return This builder for chaining.
*/
- public Builder setUnk3000NIGPICLBHMA(
+ public Builder setCustomTeamIds(
int index, int value) {
- ensureUnk3000NIGPICLBHMAIsMutable();
- unk3000NIGPICLBHMA_.setInt(index, value);
+ ensureCustomTeamIdsIsMutable();
+ customTeamIds_.setInt(index, value);
onChanged();
return this;
}
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @param value The unk3000NIGPICLBHMA to add.
+ * repeated uint32 custom_team_ids = 9;
+ * @param value The customTeamIds to add.
* @return This builder for chaining.
*/
- public Builder addUnk3000NIGPICLBHMA(int value) {
- ensureUnk3000NIGPICLBHMAIsMutable();
- unk3000NIGPICLBHMA_.addInt(value);
+ public Builder addCustomTeamIds(int value) {
+ ensureCustomTeamIdsIsMutable();
+ customTeamIds_.addInt(value);
onChanged();
return this;
}
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
- * @param values The unk3000NIGPICLBHMA to add.
+ * repeated uint32 custom_team_ids = 9;
+ * @param values The customTeamIds to add.
* @return This builder for chaining.
*/
- public Builder addAllUnk3000NIGPICLBHMA(
+ public Builder addAllCustomTeamIds(
java.lang.Iterable extends java.lang.Integer> values) {
- ensureUnk3000NIGPICLBHMAIsMutable();
+ ensureCustomTeamIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, unk3000NIGPICLBHMA_);
+ values, customTeamIds_);
onChanged();
return this;
}
/**
- * repeated uint32 Unk3000_NIGPICLBHMA = 9;
+ * repeated uint32 custom_team_ids = 9;
* @return This builder for chaining.
*/
- public Builder clearUnk3000NIGPICLBHMA() {
- unk3000NIGPICLBHMA_ = emptyIntList();
+ public Builder clearCustomTeamIds() {
+ customTeamIds_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
@@ -2072,17 +2070,17 @@ public final class AvatarDataNotifyOuterClass {
static {
java.lang.String[] descriptorData = {
"\n\026AvatarDataNotify.proto\032\020AvatarInfo.pro" +
- "to\032\020AvatarTeam.proto\"\343\002\n\020AvatarDataNotif" +
+ "to\032\020AvatarTeam.proto\"\337\002\n\020AvatarDataNotif" +
"y\022\032\n\022owned_costume_list\030\013 \003(\r\022\032\n\022choose_" +
"avatar_guid\030\010 \001(\004\022=\n\017avatar_team_map\030\007 \003" +
"(\0132$.AvatarDataNotify.AvatarTeamMapEntry" +
- "\022\033\n\023Unk3000_NIGPICLBHMA\030\t \003(\r\022\035\n\025temp_av" +
- "atar_guid_list\030\014 \003(\004\022\033\n\023owned_flycloak_l" +
- "ist\030\001 \003(\r\022 \n\013avatar_list\030\006 \003(\0132\013.AvatarI" +
- "nfo\022\032\n\022cur_avatar_team_id\030\002 \001(\r\032A\n\022Avata" +
- "rTeamMapEntry\022\013\n\003key\030\001 \001(\r\022\032\n\005value\030\002 \001(" +
- "\0132\013.AvatarTeam:\0028\001B\033\n\031emu.grasscutter.ne" +
- "t.protob\006proto3"
+ "\022\027\n\017custom_team_ids\030\t \003(\r\022\035\n\025temp_avatar" +
+ "_guid_list\030\014 \003(\004\022\033\n\023owned_flycloak_list\030" +
+ "\001 \003(\r\022 \n\013avatar_list\030\006 \003(\0132\013.AvatarInfo\022" +
+ "\032\n\022cur_avatar_team_id\030\002 \001(\r\032A\n\022AvatarTea" +
+ "mMapEntry\022\013\n\003key\030\001 \001(\r\022\032\n\005value\030\002 \001(\0132\013." +
+ "AvatarTeam:\0028\001B\033\n\031emu.grasscutter.net.pr" +
+ "otob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -2095,7 +2093,7 @@ public final class AvatarDataNotifyOuterClass {
internal_static_AvatarDataNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_AvatarDataNotify_descriptor,
- new java.lang.String[] { "OwnedCostumeList", "ChooseAvatarGuid", "AvatarTeamMap", "Unk3000NIGPICLBHMA", "TempAvatarGuidList", "OwnedFlycloakList", "AvatarList", "CurAvatarTeamId", });
+ new java.lang.String[] { "OwnedCostumeList", "ChooseAvatarGuid", "AvatarTeamMap", "CustomTeamIds", "TempAvatarGuidList", "OwnedFlycloakList", "AvatarList", "CurAvatarTeamId", });
internal_static_AvatarDataNotify_AvatarTeamMapEntry_descriptor =
internal_static_AvatarDataNotify_descriptor.getNestedTypes().get(0);
internal_static_AvatarDataNotify_AvatarTeamMapEntry_fieldAccessorTable = new
diff --git a/src/generated/main/java/emu/grasscutter/net/proto/CustomTeamListNotifyOuterClass.java b/src/generated/main/java/emu/grasscutter/net/proto/CustomTeamListNotifyOuterClass.java
new file mode 100644
index 000000000..04e9d770e
--- /dev/null
+++ b/src/generated/main/java/emu/grasscutter/net/proto/CustomTeamListNotifyOuterClass.java
@@ -0,0 +1,1203 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: CustomTeamListNotify.proto
+
+package emu.grasscutter.net.proto;
+
+public final class CustomTeamListNotifyOuterClass {
+ private CustomTeamListNotifyOuterClass() {}
+ 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 CustomTeamListNotifyOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:CustomTeamListNotify)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @return A list containing the tempAvatarGuidList.
+ */
+ java.util.Listrepeated uint64 temp_avatar_guid_list = 6;
+ * @return The count of tempAvatarGuidList.
+ */
+ int getTempAvatarGuidListCount();
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @param index The index of the element to return.
+ * @return The tempAvatarGuidList at the given index.
+ */
+ long getTempAvatarGuidList(int index);
+
+ /**
+ * map<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ int getAvatarTeamMapCount();
+ /**
+ * map<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ boolean containsAvatarTeamMap(
+ int key);
+ /**
+ * Use {@link #getAvatarTeamMapMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+
+ emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault(
+ int key,
+ emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue);
+ /**
+ * map<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+
+ emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow(
+ int key);
+
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @return A list containing the customTeamIds.
+ */
+ java.util.Listrepeated uint32 custom_team_ids = 1;
+ * @return The count of customTeamIds.
+ */
+ int getCustomTeamIdsCount();
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @param index The index of the element to return.
+ * @return The customTeamIds at the given index.
+ */
+ int getCustomTeamIds(int index);
+ }
+ /**
+ * + * CmdId: 1749 + * EnetChannelId: 0 + * EnetIsReliable: true + *+ * + * Protobuf type {@code CustomTeamListNotify} + */ + public static final class CustomTeamListNotify extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CustomTeamListNotify) + CustomTeamListNotifyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomTeamListNotify.newBuilder() to construct. + private CustomTeamListNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private CustomTeamListNotify() { + tempAvatarGuidList_ = emptyLongList(); + customTeamIds_ = emptyIntList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CustomTeamListNotify(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CustomTeamListNotify( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customTeamIds_ = newIntList(); + mutable_bitField0_ |= 0x00000004; + } + customTeamIds_.addInt(input.readUInt32()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { + customTeamIds_ = newIntList(); + mutable_bitField0_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + customTeamIds_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + avatarTeamMap_ = com.google.protobuf.MapField.newMapField( + AvatarTeamMapDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry
repeated uint64 temp_avatar_guid_list = 6;
+ * @return A list containing the tempAvatarGuidList.
+ */
+ @java.lang.Override
+ public java.util.Listrepeated uint64 temp_avatar_guid_list = 6;
+ * @return The count of tempAvatarGuidList.
+ */
+ public int getTempAvatarGuidListCount() {
+ return tempAvatarGuidList_.size();
+ }
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @param index The index of the element to return.
+ * @return The tempAvatarGuidList at the given index.
+ */
+ public long getTempAvatarGuidList(int index) {
+ return tempAvatarGuidList_.getLong(index);
+ }
+ private int tempAvatarGuidListMemoizedSerializedSize = -1;
+
+ public static final int AVATAR_TEAM_MAP_FIELD_NUMBER = 3;
+ private static final class AvatarTeamMapDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+
+ @java.lang.Override
+ public boolean containsAvatarTeamMap(
+ int key) {
+
+ return internalGetAvatarTeamMap().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAvatarTeamMapMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ @java.lang.Override
+
+ public java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ @java.lang.Override
+
+ public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault(
+ int key,
+ emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) {
+
+ java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ @java.lang.Override
+
+ public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow(
+ int key) {
+
+ java.util.Maprepeated uint32 custom_team_ids = 1;
+ * @return A list containing the customTeamIds.
+ */
+ @java.lang.Override
+ public java.util.Listrepeated uint32 custom_team_ids = 1;
+ * @return The count of customTeamIds.
+ */
+ public int getCustomTeamIdsCount() {
+ return customTeamIds_.size();
+ }
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @param index The index of the element to return.
+ * @return The customTeamIds at the given index.
+ */
+ public int getCustomTeamIds(int index) {
+ return customTeamIds_.getInt(index);
+ }
+ private int customTeamIdsMemoizedSerializedSize = -1;
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (getCustomTeamIdsList().size() > 0) {
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(customTeamIdsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < customTeamIds_.size(); i++) {
+ output.writeUInt32NoTag(customTeamIds_.getInt(i));
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeIntegerMapTo(
+ output,
+ internalGetAvatarTeamMap(),
+ AvatarTeamMapDefaultEntryHolder.defaultEntry,
+ 3);
+ if (getTempAvatarGuidListList().size() > 0) {
+ output.writeUInt32NoTag(50);
+ output.writeUInt32NoTag(tempAvatarGuidListMemoizedSerializedSize);
+ }
+ for (int i = 0; i < tempAvatarGuidList_.size(); i++) {
+ output.writeUInt64NoTag(tempAvatarGuidList_.getLong(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < customTeamIds_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(customTeamIds_.getInt(i));
+ }
+ size += dataSize;
+ if (!getCustomTeamIdsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32SizeNoTag(dataSize);
+ }
+ customTeamIdsMemoizedSerializedSize = dataSize;
+ }
+ for (java.util.Map.Entry+ * CmdId: 1749 + * EnetChannelId: 0 + * EnetIsReliable: true + *+ * + * Protobuf type {@code CustomTeamListNotify} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
repeated uint64 temp_avatar_guid_list = 6;
+ * @return A list containing the tempAvatarGuidList.
+ */
+ public java.util.Listrepeated uint64 temp_avatar_guid_list = 6;
+ * @return The count of tempAvatarGuidList.
+ */
+ public int getTempAvatarGuidListCount() {
+ return tempAvatarGuidList_.size();
+ }
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @param index The index of the element to return.
+ * @return The tempAvatarGuidList at the given index.
+ */
+ public long getTempAvatarGuidList(int index) {
+ return tempAvatarGuidList_.getLong(index);
+ }
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @param index The index to set the value at.
+ * @param value The tempAvatarGuidList to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTempAvatarGuidList(
+ int index, long value) {
+ ensureTempAvatarGuidListIsMutable();
+ tempAvatarGuidList_.setLong(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @param value The tempAvatarGuidList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTempAvatarGuidList(long value) {
+ ensureTempAvatarGuidListIsMutable();
+ tempAvatarGuidList_.addLong(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @param values The tempAvatarGuidList to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTempAvatarGuidList(
+ java.lang.Iterable extends java.lang.Long> values) {
+ ensureTempAvatarGuidListIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, tempAvatarGuidList_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint64 temp_avatar_guid_list = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearTempAvatarGuidList() {
+ tempAvatarGuidList_ = emptyLongList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.Integer, emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam> avatarTeamMap_;
+ private com.google.protobuf.MapFieldmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+
+ @java.lang.Override
+ public boolean containsAvatarTeamMap(
+ int key) {
+
+ return internalGetAvatarTeamMap().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAvatarTeamMapMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ @java.lang.Override
+
+ public java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ @java.lang.Override
+
+ public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrDefault(
+ int key,
+ emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam defaultValue) {
+
+ java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ @java.lang.Override
+
+ public emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam getAvatarTeamMapOrThrow(
+ int key) {
+
+ java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+
+ public Builder removeAvatarTeamMap(
+ int key) {
+
+ internalGetMutableAvatarTeamMap().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+ public Builder putAvatarTeamMap(
+ int key,
+ emu.grasscutter.net.proto.AvatarTeamOuterClass.AvatarTeam value) {
+
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAvatarTeamMap().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<uint32, .AvatarTeam> avatar_team_map = 3;
+ */
+
+ public Builder putAllAvatarTeamMap(
+ java.util.Maprepeated uint32 custom_team_ids = 1;
+ * @return A list containing the customTeamIds.
+ */
+ public java.util.Listrepeated uint32 custom_team_ids = 1;
+ * @return The count of customTeamIds.
+ */
+ public int getCustomTeamIdsCount() {
+ return customTeamIds_.size();
+ }
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @param index The index of the element to return.
+ * @return The customTeamIds at the given index.
+ */
+ public int getCustomTeamIds(int index) {
+ return customTeamIds_.getInt(index);
+ }
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @param index The index to set the value at.
+ * @param value The customTeamIds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomTeamIds(
+ int index, int value) {
+ ensureCustomTeamIdsIsMutable();
+ customTeamIds_.setInt(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @param value The customTeamIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCustomTeamIds(int value) {
+ ensureCustomTeamIdsIsMutable();
+ customTeamIds_.addInt(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @param values The customTeamIds to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllCustomTeamIds(
+ java.lang.Iterable extends java.lang.Integer> values) {
+ ensureCustomTeamIdsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, customTeamIds_);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated uint32 custom_team_ids = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomTeamIds() {
+ customTeamIds_ = emptyIntList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ 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:CustomTeamListNotify)
+ }
+
+ // @@protoc_insertion_point(class_scope:CustomTeamListNotify)
+ private static final emu.grasscutter.net.proto.CustomTeamListNotifyOuterClass.CustomTeamListNotify DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CustomTeamListNotifyOuterClass.CustomTeamListNotify();
+ }
+
+ public static emu.grasscutter.net.proto.CustomTeamListNotifyOuterClass.CustomTeamListNotify getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint32 id = 4;
+ * @return The id.
+ */
+ int getId();
+ }
+ /**
+ * + * CmdId: 1731 + * EnetChannelId: 0 + * EnetIsReliable: true + * IsAllowClient: true + *+ * + * Protobuf type {@code RemoveCustomTeamReq} + */ + public static final class RemoveCustomTeamReq extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RemoveCustomTeamReq) + RemoveCustomTeamReqOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveCustomTeamReq.newBuilder() to construct. + private RemoveCustomTeamReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private RemoveCustomTeamReq() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RemoveCustomTeamReq(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemoveCustomTeamReq( + 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 32: { + + id_ = 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.RemoveCustomTeamReqOuterClass.internal_static_RemoveCustomTeamReq_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.internal_static_RemoveCustomTeamReq_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq.class, emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 4; + private int id_; + /** + *
uint32 id = 4;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+
+ 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 (id_ != 0) {
+ output.writeUInt32(4, id_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (id_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, id_);
+ }
+ 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.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq other = (emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq) obj;
+
+ if (getId()
+ != other.getId()) 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) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq 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.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq 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.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq 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.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq 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.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq 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.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq 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;
+ }
+ /**
+ * + * CmdId: 1731 + * EnetChannelId: 0 + * EnetIsReliable: true + * IsAllowClient: true + *+ * + * Protobuf type {@code RemoveCustomTeamReq} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
uint32 id = 4;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+ /**
+ * uint32 id = 4;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(int value) {
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 id = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = 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:RemoveCustomTeamReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:RemoveCustomTeamReq)
+ private static final emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq();
+ }
+
+ public static emu.grasscutter.net.proto.RemoveCustomTeamReqOuterClass.RemoveCustomTeamReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseruint32 id = 15;
+ * @return The id.
+ */
+ int getId();
+
+ /**
+ * int32 retcode = 4;
+ * @return The retcode.
+ */
+ int getRetcode();
+ }
+ /**
+ * + * CmdId: 1729 + * EnetChannelId: 0 + * EnetIsReliable: true + *+ * + * Protobuf type {@code RemoveCustomTeamRsp} + */ + public static final class RemoveCustomTeamRsp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:RemoveCustomTeamRsp) + RemoveCustomTeamRspOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveCustomTeamRsp.newBuilder() to construct. + private RemoveCustomTeamRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private RemoveCustomTeamRsp() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RemoveCustomTeamRsp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RemoveCustomTeamRsp( + 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 32: { + + retcode_ = input.readInt32(); + break; + } + case 120: { + + id_ = 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.RemoveCustomTeamRspOuterClass.internal_static_RemoveCustomTeamRsp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.internal_static_RemoveCustomTeamRsp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp.class, emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 15; + private int id_; + /** + *
uint32 id = 15;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+
+ public static final int RETCODE_FIELD_NUMBER = 4;
+ private int retcode_;
+ /**
+ * int32 retcode = 4;
+ * @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(4, retcode_);
+ }
+ if (id_ != 0) {
+ output.writeUInt32(15, id_);
+ }
+ 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(4, retcode_);
+ }
+ if (id_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(15, id_);
+ }
+ 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp)) {
+ return super.equals(obj);
+ }
+ emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp other = (emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp) obj;
+
+ if (getId()
+ != other.getId()) 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();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId();
+ 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp 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.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp 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;
+ }
+ /**
+ * + * CmdId: 1729 + * EnetChannelId: 0 + * EnetIsReliable: true + *+ * + * Protobuf type {@code RemoveCustomTeamRsp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
uint32 id = 15;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+ /**
+ * uint32 id = 15;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(int value) {
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 id = 15;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int retcode_ ;
+ /**
+ * int32 retcode = 4;
+ * @return The retcode.
+ */
+ @java.lang.Override
+ public int getRetcode() {
+ return retcode_;
+ }
+ /**
+ * int32 retcode = 4;
+ * @param value The retcode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRetcode(int value) {
+
+ retcode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 retcode = 4;
+ * @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:RemoveCustomTeamRsp)
+ }
+
+ // @@protoc_insertion_point(class_scope:RemoveCustomTeamRsp)
+ private static final emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp();
+ }
+
+ public static emu.grasscutter.net.proto.RemoveCustomTeamRspOuterClass.RemoveCustomTeamRsp getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser