Packet Pack: Misc first half (#152)

* Packet Pack: Misc first half

* Add what new multi protos I can

* Finish up multi protos for this pack.
It compiles!
This commit is contained in:
Nazrin 2024-09-09 13:41:55 -07:00 committed by GitHub
parent 788945509c
commit c925c878fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
36 changed files with 132 additions and 12707 deletions

View File

@ -1,771 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CardProductRewardNotify.proto
package emu.grasscutter.net.proto;
public final class CardProductRewardNotifyOuterClass {
private CardProductRewardNotifyOuterClass() {}
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 CardProductRewardNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:CardProductRewardNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 hcoin = 6;</code>
* @return The hcoin.
*/
int getHcoin();
/**
* <code>string product_id = 14;</code>
* @return The productId.
*/
java.lang.String getProductId();
/**
* <code>string product_id = 14;</code>
* @return The bytes for productId.
*/
com.google.protobuf.ByteString
getProductIdBytes();
/**
* <code>uint32 remain_days = 1;</code>
* @return The remainDays.
*/
int getRemainDays();
}
/**
* <pre>
* CmdId: 4107
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code CardProductRewardNotify}
*/
public static final class CardProductRewardNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:CardProductRewardNotify)
CardProductRewardNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CardProductRewardNotify.newBuilder() to construct.
private CardProductRewardNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CardProductRewardNotify() {
productId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CardProductRewardNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CardProductRewardNotify(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
remainDays_ = input.readUInt32();
break;
}
case 48: {
hcoin_ = input.readUInt32();
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
productId_ = s;
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.CardProductRewardNotifyOuterClass.internal_static_CardProductRewardNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.internal_static_CardProductRewardNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.class, emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.Builder.class);
}
public static final int HCOIN_FIELD_NUMBER = 6;
private int hcoin_;
/**
* <code>uint32 hcoin = 6;</code>
* @return The hcoin.
*/
@java.lang.Override
public int getHcoin() {
return hcoin_;
}
public static final int PRODUCT_ID_FIELD_NUMBER = 14;
private volatile java.lang.Object productId_;
/**
* <code>string product_id = 14;</code>
* @return The productId.
*/
@java.lang.Override
public java.lang.String getProductId() {
java.lang.Object ref = productId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
productId_ = s;
return s;
}
}
/**
* <code>string product_id = 14;</code>
* @return The bytes for productId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProductIdBytes() {
java.lang.Object ref = productId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
productId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMAIN_DAYS_FIELD_NUMBER = 1;
private int remainDays_;
/**
* <code>uint32 remain_days = 1;</code>
* @return The remainDays.
*/
@java.lang.Override
public int getRemainDays() {
return remainDays_;
}
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 (remainDays_ != 0) {
output.writeUInt32(1, remainDays_);
}
if (hcoin_ != 0) {
output.writeUInt32(6, hcoin_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, productId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (remainDays_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, remainDays_);
}
if (hcoin_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, hcoin_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, productId_);
}
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.CardProductRewardNotifyOuterClass.CardProductRewardNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify other = (emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify) obj;
if (getHcoin()
!= other.getHcoin()) return false;
if (!getProductId()
.equals(other.getProductId())) return false;
if (getRemainDays()
!= other.getRemainDays()) 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) + HCOIN_FIELD_NUMBER;
hash = (53 * hash) + getHcoin();
hash = (37 * hash) + PRODUCT_ID_FIELD_NUMBER;
hash = (53 * hash) + getProductId().hashCode();
hash = (37 * hash) + REMAIN_DAYS_FIELD_NUMBER;
hash = (53 * hash) + getRemainDays();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify 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.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify 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.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify 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.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify 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.CardProductRewardNotifyOuterClass.CardProductRewardNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify 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.CardProductRewardNotifyOuterClass.CardProductRewardNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 4107
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code CardProductRewardNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:CardProductRewardNotify)
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.internal_static_CardProductRewardNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.internal_static_CardProductRewardNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.class, emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
hcoin_ = 0;
productId_ = "";
remainDays_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.internal_static_CardProductRewardNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify build() {
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify buildPartial() {
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify result = new emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify(this);
result.hcoin_ = hcoin_;
result.productId_ = productId_;
result.remainDays_ = remainDays_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify) {
return mergeFrom((emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify other) {
if (other == emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify.getDefaultInstance()) return this;
if (other.getHcoin() != 0) {
setHcoin(other.getHcoin());
}
if (!other.getProductId().isEmpty()) {
productId_ = other.productId_;
onChanged();
}
if (other.getRemainDays() != 0) {
setRemainDays(other.getRemainDays());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int hcoin_ ;
/**
* <code>uint32 hcoin = 6;</code>
* @return The hcoin.
*/
@java.lang.Override
public int getHcoin() {
return hcoin_;
}
/**
* <code>uint32 hcoin = 6;</code>
* @param value The hcoin to set.
* @return This builder for chaining.
*/
public Builder setHcoin(int value) {
hcoin_ = value;
onChanged();
return this;
}
/**
* <code>uint32 hcoin = 6;</code>
* @return This builder for chaining.
*/
public Builder clearHcoin() {
hcoin_ = 0;
onChanged();
return this;
}
private java.lang.Object productId_ = "";
/**
* <code>string product_id = 14;</code>
* @return The productId.
*/
public java.lang.String getProductId() {
java.lang.Object ref = productId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
productId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string product_id = 14;</code>
* @return The bytes for productId.
*/
public com.google.protobuf.ByteString
getProductIdBytes() {
java.lang.Object ref = productId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
productId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string product_id = 14;</code>
* @param value The productId to set.
* @return This builder for chaining.
*/
public Builder setProductId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
productId_ = value;
onChanged();
return this;
}
/**
* <code>string product_id = 14;</code>
* @return This builder for chaining.
*/
public Builder clearProductId() {
productId_ = getDefaultInstance().getProductId();
onChanged();
return this;
}
/**
* <code>string product_id = 14;</code>
* @param value The bytes for productId to set.
* @return This builder for chaining.
*/
public Builder setProductIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
productId_ = value;
onChanged();
return this;
}
private int remainDays_ ;
/**
* <code>uint32 remain_days = 1;</code>
* @return The remainDays.
*/
@java.lang.Override
public int getRemainDays() {
return remainDays_;
}
/**
* <code>uint32 remain_days = 1;</code>
* @param value The remainDays to set.
* @return This builder for chaining.
*/
public Builder setRemainDays(int value) {
remainDays_ = value;
onChanged();
return this;
}
/**
* <code>uint32 remain_days = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRemainDays() {
remainDays_ = 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:CardProductRewardNotify)
}
// @@protoc_insertion_point(class_scope:CardProductRewardNotify)
private static final emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify();
}
public static emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CardProductRewardNotify>
PARSER = new com.google.protobuf.AbstractParser<CardProductRewardNotify>() {
@java.lang.Override
public CardProductRewardNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CardProductRewardNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<CardProductRewardNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CardProductRewardNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CardProductRewardNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_CardProductRewardNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035CardProductRewardNotify.proto\"Q\n\027CardP" +
"roductRewardNotify\022\r\n\005hcoin\030\006 \001(\r\022\022\n\npro" +
"duct_id\030\016 \001(\t\022\023\n\013remain_days\030\001 \001(\rB\033\n\031em" +
"u.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_CardProductRewardNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CardProductRewardNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CardProductRewardNotify_descriptor,
new java.lang.String[] { "Hcoin", "ProductId", "RemainDays", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,551 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ClientLockGameTimeNotify.proto
package emu.grasscutter.net.proto;
public final class ClientLockGameTimeNotifyOuterClass {
private ClientLockGameTimeNotifyOuterClass() {}
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 ClientLockGameTimeNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ClientLockGameTimeNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_lock = 5;</code>
* @return The isLock.
*/
boolean getIsLock();
}
/**
* <pre>
* CmdId: 114
* EnetChannelId: 0
* EnetIsReliable: true
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code ClientLockGameTimeNotify}
*/
public static final class ClientLockGameTimeNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ClientLockGameTimeNotify)
ClientLockGameTimeNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientLockGameTimeNotify.newBuilder() to construct.
private ClientLockGameTimeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientLockGameTimeNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientLockGameTimeNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientLockGameTimeNotify(
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 40: {
isLock_ = input.readBool();
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.ClientLockGameTimeNotifyOuterClass.internal_static_ClientLockGameTimeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.internal_static_ClientLockGameTimeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.class, emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.Builder.class);
}
public static final int IS_LOCK_FIELD_NUMBER = 5;
private boolean isLock_;
/**
* <code>bool is_lock = 5;</code>
* @return The isLock.
*/
@java.lang.Override
public boolean getIsLock() {
return isLock_;
}
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 (isLock_ != false) {
output.writeBool(5, isLock_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isLock_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isLock_);
}
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.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify other = (emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify) obj;
if (getIsLock()
!= other.getIsLock()) 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) + IS_LOCK_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsLock());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify 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.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify 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.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify 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.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify 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.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify 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.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 114
* EnetChannelId: 0
* EnetIsReliable: true
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code ClientLockGameTimeNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ClientLockGameTimeNotify)
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.internal_static_ClientLockGameTimeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.internal_static_ClientLockGameTimeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.class, emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isLock_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.internal_static_ClientLockGameTimeNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify build() {
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify buildPartial() {
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify result = new emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify(this);
result.isLock_ = isLock_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify) {
return mergeFrom((emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify other) {
if (other == emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify.getDefaultInstance()) return this;
if (other.getIsLock() != false) {
setIsLock(other.getIsLock());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean isLock_ ;
/**
* <code>bool is_lock = 5;</code>
* @return The isLock.
*/
@java.lang.Override
public boolean getIsLock() {
return isLock_;
}
/**
* <code>bool is_lock = 5;</code>
* @param value The isLock to set.
* @return This builder for chaining.
*/
public Builder setIsLock(boolean value) {
isLock_ = value;
onChanged();
return this;
}
/**
* <code>bool is_lock = 5;</code>
* @return This builder for chaining.
*/
public Builder clearIsLock() {
isLock_ = false;
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:ClientLockGameTimeNotify)
}
// @@protoc_insertion_point(class_scope:ClientLockGameTimeNotify)
private static final emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify();
}
public static emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ClientLockGameTimeNotify>
PARSER = new com.google.protobuf.AbstractParser<ClientLockGameTimeNotify>() {
@java.lang.Override
public ClientLockGameTimeNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientLockGameTimeNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ClientLockGameTimeNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ClientLockGameTimeNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ClientLockGameTimeNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ClientLockGameTimeNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\036ClientLockGameTimeNotify.proto\"+\n\030Clie" +
"ntLockGameTimeNotify\022\017\n\007is_lock\030\005 \001(\010B\033\n" +
"\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_ClientLockGameTimeNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ClientLockGameTimeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ClientLockGameTimeNotify_descriptor,
new java.lang.String[] { "IsLock", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,897 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ClientScriptEventNotify.proto
package emu.grasscutter.net.proto;
public final class ClientScriptEventNotifyOuterClass {
private ClientScriptEventNotifyOuterClass() {}
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 ClientScriptEventNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ClientScriptEventNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 source_entity_id = 14;</code>
* @return The sourceEntityId.
*/
int getSourceEntityId();
/**
* <code>uint32 event_type = 10;</code>
* @return The eventType.
*/
int getEventType();
/**
* <code>uint32 target_entity_id = 13;</code>
* @return The targetEntityId.
*/
int getTargetEntityId();
/**
* <code>repeated int32 param_list = 9;</code>
* @return A list containing the paramList.
*/
java.util.List<java.lang.Integer> getParamListList();
/**
* <code>repeated int32 param_list = 9;</code>
* @return The count of paramList.
*/
int getParamListCount();
/**
* <code>repeated int32 param_list = 9;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
int getParamList(int index);
}
/**
* <pre>
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 260;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code ClientScriptEventNotify}
*/
public static final class ClientScriptEventNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ClientScriptEventNotify)
ClientScriptEventNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientScriptEventNotify.newBuilder() to construct.
private ClientScriptEventNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientScriptEventNotify() {
paramList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientScriptEventNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientScriptEventNotify(
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 72: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
paramList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
paramList_.addInt(input.readInt32());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
paramList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
paramList_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 80: {
eventType_ = input.readUInt32();
break;
}
case 104: {
targetEntityId_ = input.readUInt32();
break;
}
case 112: {
sourceEntityId_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
paramList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.internal_static_ClientScriptEventNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.internal_static_ClientScriptEventNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.class, emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.Builder.class);
}
public static final int SOURCE_ENTITY_ID_FIELD_NUMBER = 14;
private int sourceEntityId_;
/**
* <code>uint32 source_entity_id = 14;</code>
* @return The sourceEntityId.
*/
@java.lang.Override
public int getSourceEntityId() {
return sourceEntityId_;
}
public static final int EVENT_TYPE_FIELD_NUMBER = 10;
private int eventType_;
/**
* <code>uint32 event_type = 10;</code>
* @return The eventType.
*/
@java.lang.Override
public int getEventType() {
return eventType_;
}
public static final int TARGET_ENTITY_ID_FIELD_NUMBER = 13;
private int targetEntityId_;
/**
* <code>uint32 target_entity_id = 13;</code>
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
public static final int PARAM_LIST_FIELD_NUMBER = 9;
private com.google.protobuf.Internal.IntList paramList_;
/**
* <code>repeated int32 param_list = 9;</code>
* @return A list containing the paramList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getParamListList() {
return paramList_;
}
/**
* <code>repeated int32 param_list = 9;</code>
* @return The count of paramList.
*/
public int getParamListCount() {
return paramList_.size();
}
/**
* <code>repeated int32 param_list = 9;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
public int getParamList(int index) {
return paramList_.getInt(index);
}
private int paramListMemoizedSerializedSize = -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 (getParamListList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(paramListMemoizedSerializedSize);
}
for (int i = 0; i < paramList_.size(); i++) {
output.writeInt32NoTag(paramList_.getInt(i));
}
if (eventType_ != 0) {
output.writeUInt32(10, eventType_);
}
if (targetEntityId_ != 0) {
output.writeUInt32(13, targetEntityId_);
}
if (sourceEntityId_ != 0) {
output.writeUInt32(14, sourceEntityId_);
}
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 < paramList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(paramList_.getInt(i));
}
size += dataSize;
if (!getParamListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
paramListMemoizedSerializedSize = dataSize;
}
if (eventType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, eventType_);
}
if (targetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, targetEntityId_);
}
if (sourceEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, sourceEntityId_);
}
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.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify other = (emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify) obj;
if (getSourceEntityId()
!= other.getSourceEntityId()) return false;
if (getEventType()
!= other.getEventType()) return false;
if (getTargetEntityId()
!= other.getTargetEntityId()) return false;
if (!getParamListList()
.equals(other.getParamListList())) 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) + SOURCE_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceEntityId();
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventType();
hash = (37 * hash) + TARGET_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getTargetEntityId();
if (getParamListCount() > 0) {
hash = (37 * hash) + PARAM_LIST_FIELD_NUMBER;
hash = (53 * hash) + getParamListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify 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.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify 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.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify 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.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify 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.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify 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.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* enum CmdId {
* option allow_alias = true;
* NONE = 0;
* CMD_ID = 260;
* ENET_CHANNEL_ID = 0;
* ENET_IS_RELIABLE = 1;
* IS_ALLOW_CLIENT = 1;
* }
* </pre>
*
* Protobuf type {@code ClientScriptEventNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ClientScriptEventNotify)
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.internal_static_ClientScriptEventNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.internal_static_ClientScriptEventNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.class, emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sourceEntityId_ = 0;
eventType_ = 0;
targetEntityId_ = 0;
paramList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.internal_static_ClientScriptEventNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify build() {
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify buildPartial() {
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify result = new emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify(this);
int from_bitField0_ = bitField0_;
result.sourceEntityId_ = sourceEntityId_;
result.eventType_ = eventType_;
result.targetEntityId_ = targetEntityId_;
if (((bitField0_ & 0x00000001) != 0)) {
paramList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paramList_ = paramList_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify) {
return mergeFrom((emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify other) {
if (other == emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify.getDefaultInstance()) return this;
if (other.getSourceEntityId() != 0) {
setSourceEntityId(other.getSourceEntityId());
}
if (other.getEventType() != 0) {
setEventType(other.getEventType());
}
if (other.getTargetEntityId() != 0) {
setTargetEntityId(other.getTargetEntityId());
}
if (!other.paramList_.isEmpty()) {
if (paramList_.isEmpty()) {
paramList_ = other.paramList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParamListIsMutable();
paramList_.addAll(other.paramList_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int sourceEntityId_ ;
/**
* <code>uint32 source_entity_id = 14;</code>
* @return The sourceEntityId.
*/
@java.lang.Override
public int getSourceEntityId() {
return sourceEntityId_;
}
/**
* <code>uint32 source_entity_id = 14;</code>
* @param value The sourceEntityId to set.
* @return This builder for chaining.
*/
public Builder setSourceEntityId(int value) {
sourceEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 source_entity_id = 14;</code>
* @return This builder for chaining.
*/
public Builder clearSourceEntityId() {
sourceEntityId_ = 0;
onChanged();
return this;
}
private int eventType_ ;
/**
* <code>uint32 event_type = 10;</code>
* @return The eventType.
*/
@java.lang.Override
public int getEventType() {
return eventType_;
}
/**
* <code>uint32 event_type = 10;</code>
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(int value) {
eventType_ = value;
onChanged();
return this;
}
/**
* <code>uint32 event_type = 10;</code>
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = 0;
onChanged();
return this;
}
private int targetEntityId_ ;
/**
* <code>uint32 target_entity_id = 13;</code>
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
/**
* <code>uint32 target_entity_id = 13;</code>
* @param value The targetEntityId to set.
* @return This builder for chaining.
*/
public Builder setTargetEntityId(int value) {
targetEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 target_entity_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearTargetEntityId() {
targetEntityId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList paramList_ = emptyIntList();
private void ensureParamListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paramList_ = mutableCopy(paramList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated int32 param_list = 9;</code>
* @return A list containing the paramList.
*/
public java.util.List<java.lang.Integer>
getParamListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(paramList_) : paramList_;
}
/**
* <code>repeated int32 param_list = 9;</code>
* @return The count of paramList.
*/
public int getParamListCount() {
return paramList_.size();
}
/**
* <code>repeated int32 param_list = 9;</code>
* @param index The index of the element to return.
* @return The paramList at the given index.
*/
public int getParamList(int index) {
return paramList_.getInt(index);
}
/**
* <code>repeated int32 param_list = 9;</code>
* @param index The index to set the value at.
* @param value The paramList to set.
* @return This builder for chaining.
*/
public Builder setParamList(
int index, int value) {
ensureParamListIsMutable();
paramList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 param_list = 9;</code>
* @param value The paramList to add.
* @return This builder for chaining.
*/
public Builder addParamList(int value) {
ensureParamListIsMutable();
paramList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated int32 param_list = 9;</code>
* @param values The paramList to add.
* @return This builder for chaining.
*/
public Builder addAllParamList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureParamListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paramList_);
onChanged();
return this;
}
/**
* <code>repeated int32 param_list = 9;</code>
* @return This builder for chaining.
*/
public Builder clearParamList() {
paramList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
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:ClientScriptEventNotify)
}
// @@protoc_insertion_point(class_scope:ClientScriptEventNotify)
private static final emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify();
}
public static emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ClientScriptEventNotify>
PARSER = new com.google.protobuf.AbstractParser<ClientScriptEventNotify>() {
@java.lang.Override
public ClientScriptEventNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientScriptEventNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ClientScriptEventNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ClientScriptEventNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ClientScriptEventNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ClientScriptEventNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035ClientScriptEventNotify.proto\"u\n\027Clien" +
"tScriptEventNotify\022\030\n\020source_entity_id\030\016" +
" \001(\r\022\022\n\nevent_type\030\n \001(\r\022\030\n\020target_entit" +
"y_id\030\r \001(\r\022\022\n\nparam_list\030\t \003(\005B\033\n\031emu.gr" +
"asscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_ClientScriptEventNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ClientScriptEventNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ClientScriptEventNotify_descriptor,
new java.lang.String[] { "SourceEntityId", "EventType", "TargetEntityId", "ParamList", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,480 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CloseCommonTipsNotify.proto
package emu.grasscutter.net.proto;
public final class CloseCommonTipsNotifyOuterClass {
private CloseCommonTipsNotifyOuterClass() {}
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 CloseCommonTipsNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:CloseCommonTipsNotify)
com.google.protobuf.MessageOrBuilder {
}
/**
* <pre>
* CmdId: 3194
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code CloseCommonTipsNotify}
*/
public static final class CloseCommonTipsNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:CloseCommonTipsNotify)
CloseCommonTipsNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CloseCommonTipsNotify.newBuilder() to construct.
private CloseCommonTipsNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CloseCommonTipsNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CloseCommonTipsNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CloseCommonTipsNotify(
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 (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().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.CloseCommonTipsNotifyOuterClass.internal_static_CloseCommonTipsNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.internal_static_CloseCommonTipsNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.class, emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify other = (emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify 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.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 3194
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code CloseCommonTipsNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:CloseCommonTipsNotify)
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.internal_static_CloseCommonTipsNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.internal_static_CloseCommonTipsNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.class, emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.internal_static_CloseCommonTipsNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify build() {
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify buildPartial() {
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify result = new emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) {
return mergeFrom((emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify other) {
if (other == emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:CloseCommonTipsNotify)
}
// @@protoc_insertion_point(class_scope:CloseCommonTipsNotify)
private static final emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify();
}
public static emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CloseCommonTipsNotify>
PARSER = new com.google.protobuf.AbstractParser<CloseCommonTipsNotify>() {
@java.lang.Override
public CloseCommonTipsNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CloseCommonTipsNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<CloseCommonTipsNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CloseCommonTipsNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CloseCommonTipsNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_CloseCommonTipsNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033CloseCommonTipsNotify.proto\"\027\n\025CloseCo" +
"mmonTipsNotifyB\033\n\031emu.grasscutter.net.pr" +
"otob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_CloseCommonTipsNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CloseCommonTipsNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CloseCommonTipsNotify_descriptor,
new java.lang.String[] { });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,999 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CutSceneBeginNotify.proto
package emu.grasscutter.net.proto;
public final class CutSceneBeginNotifyOuterClass {
private CutSceneBeginNotifyOuterClass() {}
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 CutSceneBeginNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:CutSceneBeginNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool is_wait_others = 9;</code>
* @return The isWaitOthers.
*/
boolean getIsWaitOthers();
/**
* <code>uint32 cutscene_id = 14;</code>
* @return The cutsceneId.
*/
int getCutsceneId();
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
java.util.List<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam>
getExtraParamListList();
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam getExtraParamList(int index);
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
int getExtraParamListCount();
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder>
getExtraParamListOrBuilderList();
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder getExtraParamListOrBuilder(
int index);
}
/**
* <pre>
* CmdId: 296
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code CutSceneBeginNotify}
*/
public static final class CutSceneBeginNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:CutSceneBeginNotify)
CutSceneBeginNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CutSceneBeginNotify.newBuilder() to construct.
private CutSceneBeginNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CutSceneBeginNotify() {
extraParamList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CutSceneBeginNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CutSceneBeginNotify(
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 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
extraParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam>();
mutable_bitField0_ |= 0x00000001;
}
extraParamList_.add(
input.readMessage(emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.parser(), extensionRegistry));
break;
}
case 72: {
isWaitOthers_ = input.readBool();
break;
}
case 112: {
cutsceneId_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
extraParamList_ = java.util.Collections.unmodifiableList(extraParamList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.internal_static_CutSceneBeginNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.internal_static_CutSceneBeginNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.class, emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.Builder.class);
}
public static final int IS_WAIT_OTHERS_FIELD_NUMBER = 9;
private boolean isWaitOthers_;
/**
* <code>bool is_wait_others = 9;</code>
* @return The isWaitOthers.
*/
@java.lang.Override
public boolean getIsWaitOthers() {
return isWaitOthers_;
}
public static final int CUTSCENE_ID_FIELD_NUMBER = 14;
private int cutsceneId_;
/**
* <code>uint32 cutscene_id = 14;</code>
* @return The cutsceneId.
*/
@java.lang.Override
public int getCutsceneId() {
return cutsceneId_;
}
public static final int EXTRA_PARAM_LIST_FIELD_NUMBER = 3;
private java.util.List<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam> extraParamList_;
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam> getExtraParamListList() {
return extraParamList_;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder>
getExtraParamListOrBuilderList() {
return extraParamList_;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
@java.lang.Override
public int getExtraParamListCount() {
return extraParamList_.size();
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam getExtraParamList(int index) {
return extraParamList_.get(index);
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder getExtraParamListOrBuilder(
int index) {
return extraParamList_.get(index);
}
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 {
for (int i = 0; i < extraParamList_.size(); i++) {
output.writeMessage(3, extraParamList_.get(i));
}
if (isWaitOthers_ != false) {
output.writeBool(9, isWaitOthers_);
}
if (cutsceneId_ != 0) {
output.writeUInt32(14, cutsceneId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < extraParamList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, extraParamList_.get(i));
}
if (isWaitOthers_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isWaitOthers_);
}
if (cutsceneId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, cutsceneId_);
}
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.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify other = (emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify) obj;
if (getIsWaitOthers()
!= other.getIsWaitOthers()) return false;
if (getCutsceneId()
!= other.getCutsceneId()) return false;
if (!getExtraParamListList()
.equals(other.getExtraParamListList())) 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) + IS_WAIT_OTHERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsWaitOthers());
hash = (37 * hash) + CUTSCENE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCutsceneId();
if (getExtraParamListCount() > 0) {
hash = (37 * hash) + EXTRA_PARAM_LIST_FIELD_NUMBER;
hash = (53 * hash) + getExtraParamListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify 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.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify 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.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify 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.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify 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.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify 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.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 296
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code CutSceneBeginNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:CutSceneBeginNotify)
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.internal_static_CutSceneBeginNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.internal_static_CutSceneBeginNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.class, emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExtraParamListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isWaitOthers_ = false;
cutsceneId_ = 0;
if (extraParamListBuilder_ == null) {
extraParamList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
extraParamListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.internal_static_CutSceneBeginNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify build() {
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify buildPartial() {
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify result = new emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify(this);
int from_bitField0_ = bitField0_;
result.isWaitOthers_ = isWaitOthers_;
result.cutsceneId_ = cutsceneId_;
if (extraParamListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
extraParamList_ = java.util.Collections.unmodifiableList(extraParamList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extraParamList_ = extraParamList_;
} else {
result.extraParamList_ = extraParamListBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify) {
return mergeFrom((emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify other) {
if (other == emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify.getDefaultInstance()) return this;
if (other.getIsWaitOthers() != false) {
setIsWaitOthers(other.getIsWaitOthers());
}
if (other.getCutsceneId() != 0) {
setCutsceneId(other.getCutsceneId());
}
if (extraParamListBuilder_ == null) {
if (!other.extraParamList_.isEmpty()) {
if (extraParamList_.isEmpty()) {
extraParamList_ = other.extraParamList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExtraParamListIsMutable();
extraParamList_.addAll(other.extraParamList_);
}
onChanged();
}
} else {
if (!other.extraParamList_.isEmpty()) {
if (extraParamListBuilder_.isEmpty()) {
extraParamListBuilder_.dispose();
extraParamListBuilder_ = null;
extraParamList_ = other.extraParamList_;
bitField0_ = (bitField0_ & ~0x00000001);
extraParamListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExtraParamListFieldBuilder() : null;
} else {
extraParamListBuilder_.addAllMessages(other.extraParamList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean isWaitOthers_ ;
/**
* <code>bool is_wait_others = 9;</code>
* @return The isWaitOthers.
*/
@java.lang.Override
public boolean getIsWaitOthers() {
return isWaitOthers_;
}
/**
* <code>bool is_wait_others = 9;</code>
* @param value The isWaitOthers to set.
* @return This builder for chaining.
*/
public Builder setIsWaitOthers(boolean value) {
isWaitOthers_ = value;
onChanged();
return this;
}
/**
* <code>bool is_wait_others = 9;</code>
* @return This builder for chaining.
*/
public Builder clearIsWaitOthers() {
isWaitOthers_ = false;
onChanged();
return this;
}
private int cutsceneId_ ;
/**
* <code>uint32 cutscene_id = 14;</code>
* @return The cutsceneId.
*/
@java.lang.Override
public int getCutsceneId() {
return cutsceneId_;
}
/**
* <code>uint32 cutscene_id = 14;</code>
* @param value The cutsceneId to set.
* @return This builder for chaining.
*/
public Builder setCutsceneId(int value) {
cutsceneId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cutscene_id = 14;</code>
* @return This builder for chaining.
*/
public Builder clearCutsceneId() {
cutsceneId_ = 0;
onChanged();
return this;
}
private java.util.List<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam> extraParamList_ =
java.util.Collections.emptyList();
private void ensureExtraParamListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
extraParamList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam>(extraParamList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder> extraParamListBuilder_;
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public java.util.List<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam> getExtraParamListList() {
if (extraParamListBuilder_ == null) {
return java.util.Collections.unmodifiableList(extraParamList_);
} else {
return extraParamListBuilder_.getMessageList();
}
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public int getExtraParamListCount() {
if (extraParamListBuilder_ == null) {
return extraParamList_.size();
} else {
return extraParamListBuilder_.getCount();
}
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam getExtraParamList(int index) {
if (extraParamListBuilder_ == null) {
return extraParamList_.get(index);
} else {
return extraParamListBuilder_.getMessage(index);
}
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder setExtraParamList(
int index, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam value) {
if (extraParamListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtraParamListIsMutable();
extraParamList_.set(index, value);
onChanged();
} else {
extraParamListBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder setExtraParamList(
int index, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder builderForValue) {
if (extraParamListBuilder_ == null) {
ensureExtraParamListIsMutable();
extraParamList_.set(index, builderForValue.build());
onChanged();
} else {
extraParamListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder addExtraParamList(emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam value) {
if (extraParamListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtraParamListIsMutable();
extraParamList_.add(value);
onChanged();
} else {
extraParamListBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder addExtraParamList(
int index, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam value) {
if (extraParamListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExtraParamListIsMutable();
extraParamList_.add(index, value);
onChanged();
} else {
extraParamListBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder addExtraParamList(
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder builderForValue) {
if (extraParamListBuilder_ == null) {
ensureExtraParamListIsMutable();
extraParamList_.add(builderForValue.build());
onChanged();
} else {
extraParamListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder addExtraParamList(
int index, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder builderForValue) {
if (extraParamListBuilder_ == null) {
ensureExtraParamListIsMutable();
extraParamList_.add(index, builderForValue.build());
onChanged();
} else {
extraParamListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder addAllExtraParamList(
java.lang.Iterable<? extends emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam> values) {
if (extraParamListBuilder_ == null) {
ensureExtraParamListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extraParamList_);
onChanged();
} else {
extraParamListBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder clearExtraParamList() {
if (extraParamListBuilder_ == null) {
extraParamList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
extraParamListBuilder_.clear();
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public Builder removeExtraParamList(int index) {
if (extraParamListBuilder_ == null) {
ensureExtraParamListIsMutable();
extraParamList_.remove(index);
onChanged();
} else {
extraParamListBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder getExtraParamListBuilder(
int index) {
return getExtraParamListFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder getExtraParamListOrBuilder(
int index) {
if (extraParamListBuilder_ == null) {
return extraParamList_.get(index); } else {
return extraParamListBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder>
getExtraParamListOrBuilderList() {
if (extraParamListBuilder_ != null) {
return extraParamListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(extraParamList_);
}
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder addExtraParamListBuilder() {
return getExtraParamListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.getDefaultInstance());
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder addExtraParamListBuilder(
int index) {
return getExtraParamListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.getDefaultInstance());
}
/**
* <code>repeated .CutSceneExtraParam extra_param_list = 3;</code>
*/
public java.util.List<emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder>
getExtraParamListBuilderList() {
return getExtraParamListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder>
getExtraParamListFieldBuilder() {
if (extraParamListBuilder_ == null) {
extraParamListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder>(
extraParamList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
extraParamList_ = null;
}
return extraParamListBuilder_;
}
@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:CutSceneBeginNotify)
}
// @@protoc_insertion_point(class_scope:CutSceneBeginNotify)
private static final emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify();
}
public static emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CutSceneBeginNotify>
PARSER = new com.google.protobuf.AbstractParser<CutSceneBeginNotify>() {
@java.lang.Override
public CutSceneBeginNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CutSceneBeginNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<CutSceneBeginNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CutSceneBeginNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CutSceneBeginNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_CutSceneBeginNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031CutSceneBeginNotify.proto\032\030CutSceneExt" +
"raParam.proto\"q\n\023CutSceneBeginNotify\022\026\n\016" +
"is_wait_others\030\t \001(\010\022\023\n\013cutscene_id\030\016 \001(" +
"\r\022-\n\020extra_param_list\030\003 \003(\0132\023.CutSceneEx" +
"traParamB\033\n\031emu.grasscutter.net.protob\006p" +
"roto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.getDescriptor(),
});
internal_static_CutSceneBeginNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CutSceneBeginNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CutSceneBeginNotify_descriptor,
new java.lang.String[] { "IsWaitOthers", "CutsceneId", "ExtraParamList", });
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,660 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CutSceneExtraParam.proto
package emu.grasscutter.net.proto;
public final class CutSceneExtraParamOuterClass {
private CutSceneExtraParamOuterClass() {}
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 CutSceneExtraParamOrBuilder extends
// @@protoc_insertion_point(interface_extends:CutSceneExtraParam)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated double detail_param_list = 1;</code>
* @return A list containing the detailParamList.
*/
java.util.List<java.lang.Double> getDetailParamListList();
/**
* <code>repeated double detail_param_list = 1;</code>
* @return The count of detailParamList.
*/
int getDetailParamListCount();
/**
* <code>repeated double detail_param_list = 1;</code>
* @param index The index of the element to return.
* @return The detailParamList at the given index.
*/
double getDetailParamList(int index);
}
/**
* Protobuf type {@code CutSceneExtraParam}
*/
public static final class CutSceneExtraParam extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:CutSceneExtraParam)
CutSceneExtraParamOrBuilder {
private static final long serialVersionUID = 0L;
// Use CutSceneExtraParam.newBuilder() to construct.
private CutSceneExtraParam(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CutSceneExtraParam() {
detailParamList_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CutSceneExtraParam();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CutSceneExtraParam(
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 9: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
detailParamList_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
detailParamList_.addDouble(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
detailParamList_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
detailParamList_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
detailParamList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.internal_static_CutSceneExtraParam_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.internal_static_CutSceneExtraParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.class, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder.class);
}
public static final int DETAIL_PARAM_LIST_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.DoubleList detailParamList_;
/**
* <code>repeated double detail_param_list = 1;</code>
* @return A list containing the detailParamList.
*/
@java.lang.Override
public java.util.List<java.lang.Double>
getDetailParamListList() {
return detailParamList_;
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @return The count of detailParamList.
*/
public int getDetailParamListCount() {
return detailParamList_.size();
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @param index The index of the element to return.
* @return The detailParamList at the given index.
*/
public double getDetailParamList(int index) {
return detailParamList_.getDouble(index);
}
private int detailParamListMemoizedSerializedSize = -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 (getDetailParamListList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(detailParamListMemoizedSerializedSize);
}
for (int i = 0; i < detailParamList_.size(); i++) {
output.writeDoubleNoTag(detailParamList_.getDouble(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getDetailParamListList().size();
size += dataSize;
if (!getDetailParamListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
detailParamListMemoizedSerializedSize = dataSize;
}
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.CutSceneExtraParamOuterClass.CutSceneExtraParam)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam other = (emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam) obj;
if (!getDetailParamListList()
.equals(other.getDetailParamListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDetailParamListCount() > 0) {
hash = (37 * hash) + DETAIL_PARAM_LIST_FIELD_NUMBER;
hash = (53 * hash) + getDetailParamListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam 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.CutSceneExtraParamOuterClass.CutSceneExtraParam parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam 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.CutSceneExtraParamOuterClass.CutSceneExtraParam parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam 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.CutSceneExtraParamOuterClass.CutSceneExtraParam parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam 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.CutSceneExtraParamOuterClass.CutSceneExtraParam parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam 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.CutSceneExtraParamOuterClass.CutSceneExtraParam prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code CutSceneExtraParam}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:CutSceneExtraParam)
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.internal_static_CutSceneExtraParam_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.internal_static_CutSceneExtraParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.class, emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.Builder.class);
}
// Construct using emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
detailParamList_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.internal_static_CutSceneExtraParam_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam getDefaultInstanceForType() {
return emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam build() {
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam buildPartial() {
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam result = new emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
detailParamList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.detailParamList_ = detailParamList_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam) {
return mergeFrom((emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam other) {
if (other == emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam.getDefaultInstance()) return this;
if (!other.detailParamList_.isEmpty()) {
if (detailParamList_.isEmpty()) {
detailParamList_ = other.detailParamList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDetailParamListIsMutable();
detailParamList_.addAll(other.detailParamList_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.DoubleList detailParamList_ = emptyDoubleList();
private void ensureDetailParamListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
detailParamList_ = mutableCopy(detailParamList_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @return A list containing the detailParamList.
*/
public java.util.List<java.lang.Double>
getDetailParamListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(detailParamList_) : detailParamList_;
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @return The count of detailParamList.
*/
public int getDetailParamListCount() {
return detailParamList_.size();
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @param index The index of the element to return.
* @return The detailParamList at the given index.
*/
public double getDetailParamList(int index) {
return detailParamList_.getDouble(index);
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @param index The index to set the value at.
* @param value The detailParamList to set.
* @return This builder for chaining.
*/
public Builder setDetailParamList(
int index, double value) {
ensureDetailParamListIsMutable();
detailParamList_.setDouble(index, value);
onChanged();
return this;
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @param value The detailParamList to add.
* @return This builder for chaining.
*/
public Builder addDetailParamList(double value) {
ensureDetailParamListIsMutable();
detailParamList_.addDouble(value);
onChanged();
return this;
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @param values The detailParamList to add.
* @return This builder for chaining.
*/
public Builder addAllDetailParamList(
java.lang.Iterable<? extends java.lang.Double> values) {
ensureDetailParamListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, detailParamList_);
onChanged();
return this;
}
/**
* <code>repeated double detail_param_list = 1;</code>
* @return This builder for chaining.
*/
public Builder clearDetailParamList() {
detailParamList_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
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:CutSceneExtraParam)
}
// @@protoc_insertion_point(class_scope:CutSceneExtraParam)
private static final emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam();
}
public static emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<CutSceneExtraParam>
PARSER = new com.google.protobuf.AbstractParser<CutSceneExtraParam>() {
@java.lang.Override
public CutSceneExtraParam parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CutSceneExtraParam(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<CutSceneExtraParam> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<CutSceneExtraParam> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.CutSceneExtraParamOuterClass.CutSceneExtraParam getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_CutSceneExtraParam_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_CutSceneExtraParam_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030CutSceneExtraParam.proto\"/\n\022CutSceneEx" +
"traParam\022\031\n\021detail_param_list\030\001 \003(\001B\033\n\031e" +
"mu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_CutSceneExtraParam_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_CutSceneExtraParam_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_CutSceneExtraParam_descriptor,
new java.lang.String[] { "DetailParamList", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,478 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EndCameraSceneLookNotify.proto
package emu.grasscutter.net.proto;
public final class EndCameraSceneLookNotifyOuterClass {
private EndCameraSceneLookNotifyOuterClass() {}
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 EndCameraSceneLookNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:EndCameraSceneLookNotify)
com.google.protobuf.MessageOrBuilder {
}
/**
* <pre>
* CmdId: 217
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code EndCameraSceneLookNotify}
*/
public static final class EndCameraSceneLookNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:EndCameraSceneLookNotify)
EndCameraSceneLookNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use EndCameraSceneLookNotify.newBuilder() to construct.
private EndCameraSceneLookNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EndCameraSceneLookNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EndCameraSceneLookNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EndCameraSceneLookNotify(
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.EndCameraSceneLookNotifyOuterClass.internal_static_EndCameraSceneLookNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.internal_static_EndCameraSceneLookNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.class, emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify other = (emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify) 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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify 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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify 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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify 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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify 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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify 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.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 217
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code EndCameraSceneLookNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:EndCameraSceneLookNotify)
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.internal_static_EndCameraSceneLookNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.internal_static_EndCameraSceneLookNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.class, emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.internal_static_EndCameraSceneLookNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify build() {
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify buildPartial() {
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify result = new emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify) {
return mergeFrom((emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify other) {
if (other == emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:EndCameraSceneLookNotify)
}
// @@protoc_insertion_point(class_scope:EndCameraSceneLookNotify)
private static final emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify();
}
public static emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<EndCameraSceneLookNotify>
PARSER = new com.google.protobuf.AbstractParser<EndCameraSceneLookNotify>() {
@java.lang.Override
public EndCameraSceneLookNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EndCameraSceneLookNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<EndCameraSceneLookNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<EndCameraSceneLookNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_EndCameraSceneLookNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_EndCameraSceneLookNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\036EndCameraSceneLookNotify.proto\"\032\n\030EndC" +
"ameraSceneLookNotifyB\033\n\031emu.grasscutter." +
"net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_EndCameraSceneLookNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_EndCameraSceneLookNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_EndCameraSceneLookNotify_descriptor,
new java.lang.String[] { });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,620 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EnterWorldAreaReq.proto
package emu.grasscutter.net.proto;
public final class EnterWorldAreaReqOuterClass {
private EnterWorldAreaReqOuterClass() {}
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 EnterWorldAreaReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:EnterWorldAreaReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 area_type = 8;</code>
* @return The areaType.
*/
int getAreaType();
/**
* <code>uint32 area_id = 1;</code>
* @return The areaId.
*/
int getAreaId();
}
/**
* <pre>
* CmdId: 250
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code EnterWorldAreaReq}
*/
public static final class EnterWorldAreaReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:EnterWorldAreaReq)
EnterWorldAreaReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnterWorldAreaReq.newBuilder() to construct.
private EnterWorldAreaReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EnterWorldAreaReq() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnterWorldAreaReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnterWorldAreaReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
areaId_ = input.readUInt32();
break;
}
case 64: {
areaType_ = 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.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.class, emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.Builder.class);
}
public static final int AREA_TYPE_FIELD_NUMBER = 8;
private int areaType_;
/**
* <code>uint32 area_type = 8;</code>
* @return The areaType.
*/
@java.lang.Override
public int getAreaType() {
return areaType_;
}
public static final int AREA_ID_FIELD_NUMBER = 1;
private int areaId_;
/**
* <code>uint32 area_id = 1;</code>
* @return The areaId.
*/
@java.lang.Override
public int getAreaId() {
return areaId_;
}
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 (areaId_ != 0) {
output.writeUInt32(1, areaId_);
}
if (areaType_ != 0) {
output.writeUInt32(8, areaType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (areaId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, areaId_);
}
if (areaType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, areaType_);
}
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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq other = (emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq) obj;
if (getAreaType()
!= other.getAreaType()) return false;
if (getAreaId()
!= other.getAreaId()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + AREA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getAreaType();
hash = (37 * hash) + AREA_ID_FIELD_NUMBER;
hash = (53 * hash) + getAreaId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq 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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq 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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq 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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq 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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq 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.EnterWorldAreaReqOuterClass.EnterWorldAreaReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 250
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code EnterWorldAreaReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:EnterWorldAreaReq)
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.class, emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.Builder.class);
}
// Construct using emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
areaType_ = 0;
areaId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.internal_static_EnterWorldAreaReq_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq getDefaultInstanceForType() {
return emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq build() {
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq buildPartial() {
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq result = new emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq(this);
result.areaType_ = areaType_;
result.areaId_ = areaId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq) {
return mergeFrom((emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq other) {
if (other == emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq.getDefaultInstance()) return this;
if (other.getAreaType() != 0) {
setAreaType(other.getAreaType());
}
if (other.getAreaId() != 0) {
setAreaId(other.getAreaId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int areaType_ ;
/**
* <code>uint32 area_type = 8;</code>
* @return The areaType.
*/
@java.lang.Override
public int getAreaType() {
return areaType_;
}
/**
* <code>uint32 area_type = 8;</code>
* @param value The areaType to set.
* @return This builder for chaining.
*/
public Builder setAreaType(int value) {
areaType_ = value;
onChanged();
return this;
}
/**
* <code>uint32 area_type = 8;</code>
* @return This builder for chaining.
*/
public Builder clearAreaType() {
areaType_ = 0;
onChanged();
return this;
}
private int areaId_ ;
/**
* <code>uint32 area_id = 1;</code>
* @return The areaId.
*/
@java.lang.Override
public int getAreaId() {
return areaId_;
}
/**
* <code>uint32 area_id = 1;</code>
* @param value The areaId to set.
* @return This builder for chaining.
*/
public Builder setAreaId(int value) {
areaId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 area_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearAreaId() {
areaId_ = 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:EnterWorldAreaReq)
}
// @@protoc_insertion_point(class_scope:EnterWorldAreaReq)
private static final emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq();
}
public static emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<EnterWorldAreaReq>
PARSER = new com.google.protobuf.AbstractParser<EnterWorldAreaReq>() {
@java.lang.Override
public EnterWorldAreaReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EnterWorldAreaReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<EnterWorldAreaReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<EnterWorldAreaReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_EnterWorldAreaReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_EnterWorldAreaReq_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027EnterWorldAreaReq.proto\"7\n\021EnterWorldA" +
"reaReq\022\021\n\tarea_type\030\010 \001(\r\022\017\n\007area_id\030\001 \001" +
"(\rB\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_EnterWorldAreaReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_EnterWorldAreaReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_EnterWorldAreaReq_descriptor,
new java.lang.String[] { "AreaType", "AreaId", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,691 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EnterWorldAreaRsp.proto
package emu.grasscutter.net.proto;
public final class EnterWorldAreaRspOuterClass {
private EnterWorldAreaRspOuterClass() {}
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 EnterWorldAreaRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:EnterWorldAreaRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 area_type = 1;</code>
* @return The areaType.
*/
int getAreaType();
/**
* <code>uint32 area_id = 7;</code>
* @return The areaId.
*/
int getAreaId();
/**
* <code>int32 retcode = 9;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
* CmdId: 243
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code EnterWorldAreaRsp}
*/
public static final class EnterWorldAreaRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:EnterWorldAreaRsp)
EnterWorldAreaRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnterWorldAreaRsp.newBuilder() to construct.
private EnterWorldAreaRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EnterWorldAreaRsp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnterWorldAreaRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnterWorldAreaRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
areaType_ = input.readUInt32();
break;
}
case 56: {
areaId_ = input.readUInt32();
break;
}
case 72: {
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.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.class, emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.Builder.class);
}
public static final int AREA_TYPE_FIELD_NUMBER = 1;
private int areaType_;
/**
* <code>uint32 area_type = 1;</code>
* @return The areaType.
*/
@java.lang.Override
public int getAreaType() {
return areaType_;
}
public static final int AREA_ID_FIELD_NUMBER = 7;
private int areaId_;
/**
* <code>uint32 area_id = 7;</code>
* @return The areaId.
*/
@java.lang.Override
public int getAreaId() {
return areaId_;
}
public static final int RETCODE_FIELD_NUMBER = 9;
private int retcode_;
/**
* <code>int32 retcode = 9;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (areaType_ != 0) {
output.writeUInt32(1, areaType_);
}
if (areaId_ != 0) {
output.writeUInt32(7, areaId_);
}
if (retcode_ != 0) {
output.writeInt32(9, retcode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (areaType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, areaType_);
}
if (areaId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, areaId_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, 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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp other = (emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp) obj;
if (getAreaType()
!= other.getAreaType()) return false;
if (getAreaId()
!= other.getAreaId()) 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) + AREA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getAreaType();
hash = (37 * hash) + AREA_ID_FIELD_NUMBER;
hash = (53 * hash) + getAreaId();
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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp 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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp 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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp 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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp 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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp 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.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 243
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code EnterWorldAreaRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:EnterWorldAreaRsp)
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.class, emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
areaType_ = 0;
areaId_ = 0;
retcode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.internal_static_EnterWorldAreaRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp build() {
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp buildPartial() {
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp result = new emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp(this);
result.areaType_ = areaType_;
result.areaId_ = areaId_;
result.retcode_ = retcode_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp) {
return mergeFrom((emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp other) {
if (other == emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp.getDefaultInstance()) return this;
if (other.getAreaType() != 0) {
setAreaType(other.getAreaType());
}
if (other.getAreaId() != 0) {
setAreaId(other.getAreaId());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int areaType_ ;
/**
* <code>uint32 area_type = 1;</code>
* @return The areaType.
*/
@java.lang.Override
public int getAreaType() {
return areaType_;
}
/**
* <code>uint32 area_type = 1;</code>
* @param value The areaType to set.
* @return This builder for chaining.
*/
public Builder setAreaType(int value) {
areaType_ = value;
onChanged();
return this;
}
/**
* <code>uint32 area_type = 1;</code>
* @return This builder for chaining.
*/
public Builder clearAreaType() {
areaType_ = 0;
onChanged();
return this;
}
private int areaId_ ;
/**
* <code>uint32 area_id = 7;</code>
* @return The areaId.
*/
@java.lang.Override
public int getAreaId() {
return areaId_;
}
/**
* <code>uint32 area_id = 7;</code>
* @param value The areaId to set.
* @return This builder for chaining.
*/
public Builder setAreaId(int value) {
areaId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 area_id = 7;</code>
* @return This builder for chaining.
*/
public Builder clearAreaId() {
areaId_ = 0;
onChanged();
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 9;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 9;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 9;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:EnterWorldAreaRsp)
}
// @@protoc_insertion_point(class_scope:EnterWorldAreaRsp)
private static final emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp();
}
public static emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<EnterWorldAreaRsp>
PARSER = new com.google.protobuf.AbstractParser<EnterWorldAreaRsp>() {
@java.lang.Override
public EnterWorldAreaRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EnterWorldAreaRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<EnterWorldAreaRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<EnterWorldAreaRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_EnterWorldAreaRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_EnterWorldAreaRsp_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027EnterWorldAreaRsp.proto\"H\n\021EnterWorldA" +
"reaRsp\022\021\n\tarea_type\030\001 \001(\r\022\017\n\007area_id\030\007 \001" +
"(\r\022\017\n\007retcode\030\t \001(\005B\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_EnterWorldAreaRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_EnterWorldAreaRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_EnterWorldAreaRsp_descriptor,
new java.lang.String[] { "AreaType", "AreaId", "Retcode", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,762 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ExecuteGadgetLuaReq.proto
package emu.grasscutter.net.proto;
public final class ExecuteGadgetLuaReqOuterClass {
private ExecuteGadgetLuaReqOuterClass() {}
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 ExecuteGadgetLuaReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:ExecuteGadgetLuaReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 source_entity_id = 12;</code>
* @return The sourceEntityId.
*/
int getSourceEntityId();
/**
* <code>int32 param3 = 1;</code>
* @return The param3.
*/
int getParam3();
/**
* <code>int32 param1 = 5;</code>
* @return The param1.
*/
int getParam1();
/**
* <code>int32 param2 = 14;</code>
* @return The param2.
*/
int getParam2();
}
/**
* <pre>
* CmdId: 269
* EnetChannelId: 0
* EnetIsReliable: true
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code ExecuteGadgetLuaReq}
*/
public static final class ExecuteGadgetLuaReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ExecuteGadgetLuaReq)
ExecuteGadgetLuaReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteGadgetLuaReq.newBuilder() to construct.
private ExecuteGadgetLuaReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ExecuteGadgetLuaReq() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteGadgetLuaReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteGadgetLuaReq(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
param3_ = input.readInt32();
break;
}
case 40: {
param1_ = input.readInt32();
break;
}
case 96: {
sourceEntityId_ = input.readUInt32();
break;
}
case 112: {
param2_ = 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.ExecuteGadgetLuaReqOuterClass.internal_static_ExecuteGadgetLuaReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.internal_static_ExecuteGadgetLuaReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.class, emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.Builder.class);
}
public static final int SOURCE_ENTITY_ID_FIELD_NUMBER = 12;
private int sourceEntityId_;
/**
* <code>uint32 source_entity_id = 12;</code>
* @return The sourceEntityId.
*/
@java.lang.Override
public int getSourceEntityId() {
return sourceEntityId_;
}
public static final int PARAM3_FIELD_NUMBER = 1;
private int param3_;
/**
* <code>int32 param3 = 1;</code>
* @return The param3.
*/
@java.lang.Override
public int getParam3() {
return param3_;
}
public static final int PARAM1_FIELD_NUMBER = 5;
private int param1_;
/**
* <code>int32 param1 = 5;</code>
* @return The param1.
*/
@java.lang.Override
public int getParam1() {
return param1_;
}
public static final int PARAM2_FIELD_NUMBER = 14;
private int param2_;
/**
* <code>int32 param2 = 14;</code>
* @return The param2.
*/
@java.lang.Override
public int getParam2() {
return param2_;
}
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 (param3_ != 0) {
output.writeInt32(1, param3_);
}
if (param1_ != 0) {
output.writeInt32(5, param1_);
}
if (sourceEntityId_ != 0) {
output.writeUInt32(12, sourceEntityId_);
}
if (param2_ != 0) {
output.writeInt32(14, param2_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (param3_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, param3_);
}
if (param1_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, param1_);
}
if (sourceEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, sourceEntityId_);
}
if (param2_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, param2_);
}
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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq other = (emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) obj;
if (getSourceEntityId()
!= other.getSourceEntityId()) return false;
if (getParam3()
!= other.getParam3()) return false;
if (getParam1()
!= other.getParam1()) return false;
if (getParam2()
!= other.getParam2()) 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) + SOURCE_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceEntityId();
hash = (37 * hash) + PARAM3_FIELD_NUMBER;
hash = (53 * hash) + getParam3();
hash = (37 * hash) + PARAM1_FIELD_NUMBER;
hash = (53 * hash) + getParam1();
hash = (37 * hash) + PARAM2_FIELD_NUMBER;
hash = (53 * hash) + getParam2();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq 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.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 269
* EnetChannelId: 0
* EnetIsReliable: true
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code ExecuteGadgetLuaReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ExecuteGadgetLuaReq)
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.internal_static_ExecuteGadgetLuaReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.internal_static_ExecuteGadgetLuaReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.class, emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sourceEntityId_ = 0;
param3_ = 0;
param1_ = 0;
param2_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.internal_static_ExecuteGadgetLuaReq_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq build() {
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq buildPartial() {
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq result = new emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq(this);
result.sourceEntityId_ = sourceEntityId_;
result.param3_ = param3_;
result.param1_ = param1_;
result.param2_ = param2_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) {
return mergeFrom((emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq other) {
if (other == emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq.getDefaultInstance()) return this;
if (other.getSourceEntityId() != 0) {
setSourceEntityId(other.getSourceEntityId());
}
if (other.getParam3() != 0) {
setParam3(other.getParam3());
}
if (other.getParam1() != 0) {
setParam1(other.getParam1());
}
if (other.getParam2() != 0) {
setParam2(other.getParam2());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sourceEntityId_ ;
/**
* <code>uint32 source_entity_id = 12;</code>
* @return The sourceEntityId.
*/
@java.lang.Override
public int getSourceEntityId() {
return sourceEntityId_;
}
/**
* <code>uint32 source_entity_id = 12;</code>
* @param value The sourceEntityId to set.
* @return This builder for chaining.
*/
public Builder setSourceEntityId(int value) {
sourceEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 source_entity_id = 12;</code>
* @return This builder for chaining.
*/
public Builder clearSourceEntityId() {
sourceEntityId_ = 0;
onChanged();
return this;
}
private int param3_ ;
/**
* <code>int32 param3 = 1;</code>
* @return The param3.
*/
@java.lang.Override
public int getParam3() {
return param3_;
}
/**
* <code>int32 param3 = 1;</code>
* @param value The param3 to set.
* @return This builder for chaining.
*/
public Builder setParam3(int value) {
param3_ = value;
onChanged();
return this;
}
/**
* <code>int32 param3 = 1;</code>
* @return This builder for chaining.
*/
public Builder clearParam3() {
param3_ = 0;
onChanged();
return this;
}
private int param1_ ;
/**
* <code>int32 param1 = 5;</code>
* @return The param1.
*/
@java.lang.Override
public int getParam1() {
return param1_;
}
/**
* <code>int32 param1 = 5;</code>
* @param value The param1 to set.
* @return This builder for chaining.
*/
public Builder setParam1(int value) {
param1_ = value;
onChanged();
return this;
}
/**
* <code>int32 param1 = 5;</code>
* @return This builder for chaining.
*/
public Builder clearParam1() {
param1_ = 0;
onChanged();
return this;
}
private int param2_ ;
/**
* <code>int32 param2 = 14;</code>
* @return The param2.
*/
@java.lang.Override
public int getParam2() {
return param2_;
}
/**
* <code>int32 param2 = 14;</code>
* @param value The param2 to set.
* @return This builder for chaining.
*/
public Builder setParam2(int value) {
param2_ = value;
onChanged();
return this;
}
/**
* <code>int32 param2 = 14;</code>
* @return This builder for chaining.
*/
public Builder clearParam2() {
param2_ = 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:ExecuteGadgetLuaReq)
}
// @@protoc_insertion_point(class_scope:ExecuteGadgetLuaReq)
private static final emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq();
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ExecuteGadgetLuaReq>
PARSER = new com.google.protobuf.AbstractParser<ExecuteGadgetLuaReq>() {
@java.lang.Override
public ExecuteGadgetLuaReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteGadgetLuaReq(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ExecuteGadgetLuaReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ExecuteGadgetLuaReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ExecuteGadgetLuaReq_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ExecuteGadgetLuaReq_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031ExecuteGadgetLuaReq.proto\"_\n\023ExecuteGa" +
"dgetLuaReq\022\030\n\020source_entity_id\030\014 \001(\r\022\016\n\006" +
"param3\030\001 \001(\005\022\016\n\006param1\030\005 \001(\005\022\016\n\006param2\030\016" +
" \001(\005B\033\n\031emu.grasscutter.net.protob\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_ExecuteGadgetLuaReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ExecuteGadgetLuaReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ExecuteGadgetLuaReq_descriptor,
new java.lang.String[] { "SourceEntityId", "Param3", "Param1", "Param2", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,548 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ExecuteGadgetLuaRsp.proto
package emu.grasscutter.net.proto;
public final class ExecuteGadgetLuaRspOuterClass {
private ExecuteGadgetLuaRspOuterClass() {}
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 ExecuteGadgetLuaRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:ExecuteGadgetLuaRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 retcode = 12;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* <pre>
* CmdId: 210
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code ExecuteGadgetLuaRsp}
*/
public static final class ExecuteGadgetLuaRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ExecuteGadgetLuaRsp)
ExecuteGadgetLuaRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecuteGadgetLuaRsp.newBuilder() to construct.
private ExecuteGadgetLuaRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ExecuteGadgetLuaRsp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecuteGadgetLuaRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecuteGadgetLuaRsp(
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 96: {
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.ExecuteGadgetLuaRspOuterClass.internal_static_ExecuteGadgetLuaRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.class, emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.Builder.class);
}
public static final int RETCODE_FIELD_NUMBER = 12;
private int retcode_;
/**
* <code>int32 retcode = 12;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (retcode_ != 0) {
output.writeInt32(12, 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(12, 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp other = (emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp 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.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 210
* EnetChannelId: 0
* EnetIsReliable: true
* </pre>
*
* Protobuf type {@code ExecuteGadgetLuaRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ExecuteGadgetLuaRsp)
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.internal_static_ExecuteGadgetLuaRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.class, emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
retcode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.internal_static_ExecuteGadgetLuaRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp build() {
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp buildPartial() {
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp result = new emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp(this);
result.retcode_ = retcode_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) {
return mergeFrom((emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp other) {
if (other == emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp.getDefaultInstance()) return this;
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 12;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 12;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 12;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ExecuteGadgetLuaRsp)
}
// @@protoc_insertion_point(class_scope:ExecuteGadgetLuaRsp)
private static final emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp();
}
public static emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ExecuteGadgetLuaRsp>
PARSER = new com.google.protobuf.AbstractParser<ExecuteGadgetLuaRsp>() {
@java.lang.Override
public ExecuteGadgetLuaRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecuteGadgetLuaRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ExecuteGadgetLuaRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ExecuteGadgetLuaRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ExecuteGadgetLuaRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031ExecuteGadgetLuaRsp.proto\"&\n\023ExecuteGa" +
"dgetLuaRsp\022\017\n\007retcode\030\014 \001(\005B\033\n\031emu.grass" +
"cutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_ExecuteGadgetLuaRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ExecuteGadgetLuaRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ExecuteGadgetLuaRsp_descriptor,
new java.lang.String[] { "Retcode", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,692 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GetWorldMpInfoRsp.proto
package emu.grasscutter.net.proto;
public final class GetWorldMpInfoRspOuterClass {
private GetWorldMpInfoRspOuterClass() {}
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 GetWorldMpInfoRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetWorldMpInfoRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 retcode = 12;</code>
* @return The retcode.
*/
int getRetcode();
/**
* <code>bool is_in_mp_mode = 1;</code>
* @return The isInMpMode.
*/
boolean getIsInMpMode();
/**
* <code>uint32 quit_mp_valid_time = 9;</code>
* @return The quitMpValidTime.
*/
int getQuitMpValidTime();
}
/**
* <pre>
* CmdId: 3320
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code GetWorldMpInfoRsp}
*/
public static final class GetWorldMpInfoRsp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetWorldMpInfoRsp)
GetWorldMpInfoRspOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetWorldMpInfoRsp.newBuilder() to construct.
private GetWorldMpInfoRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GetWorldMpInfoRsp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetWorldMpInfoRsp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetWorldMpInfoRsp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
isInMpMode_ = input.readBool();
break;
}
case 72: {
quitMpValidTime_ = input.readUInt32();
break;
}
case 96: {
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.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.class, emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.Builder.class);
}
public static final int RETCODE_FIELD_NUMBER = 12;
private int retcode_;
/**
* <code>int32 retcode = 12;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int IS_IN_MP_MODE_FIELD_NUMBER = 1;
private boolean isInMpMode_;
/**
* <code>bool is_in_mp_mode = 1;</code>
* @return The isInMpMode.
*/
@java.lang.Override
public boolean getIsInMpMode() {
return isInMpMode_;
}
public static final int QUIT_MP_VALID_TIME_FIELD_NUMBER = 9;
private int quitMpValidTime_;
/**
* <code>uint32 quit_mp_valid_time = 9;</code>
* @return The quitMpValidTime.
*/
@java.lang.Override
public int getQuitMpValidTime() {
return quitMpValidTime_;
}
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 (isInMpMode_ != false) {
output.writeBool(1, isInMpMode_);
}
if (quitMpValidTime_ != 0) {
output.writeUInt32(9, quitMpValidTime_);
}
if (retcode_ != 0) {
output.writeInt32(12, retcode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isInMpMode_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isInMpMode_);
}
if (quitMpValidTime_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, quitMpValidTime_);
}
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, 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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp other = (emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp) obj;
if (getRetcode()
!= other.getRetcode()) return false;
if (getIsInMpMode()
!= other.getIsInMpMode()) return false;
if (getQuitMpValidTime()
!= other.getQuitMpValidTime()) 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 = (37 * hash) + IS_IN_MP_MODE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsInMpMode());
hash = (37 * hash) + QUIT_MP_VALID_TIME_FIELD_NUMBER;
hash = (53 * hash) + getQuitMpValidTime();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp 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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp 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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp 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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp 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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp 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.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 3320
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code GetWorldMpInfoRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:GetWorldMpInfoRsp)
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.class, emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.Builder.class);
}
// Construct using emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
retcode_ = 0;
isInMpMode_ = false;
quitMpValidTime_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.internal_static_GetWorldMpInfoRsp_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp getDefaultInstanceForType() {
return emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp build() {
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp buildPartial() {
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp result = new emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp(this);
result.retcode_ = retcode_;
result.isInMpMode_ = isInMpMode_;
result.quitMpValidTime_ = quitMpValidTime_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp) {
return mergeFrom((emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp other) {
if (other == emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp.getDefaultInstance()) return this;
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
if (other.getIsInMpMode() != false) {
setIsInMpMode(other.getIsInMpMode());
}
if (other.getQuitMpValidTime() != 0) {
setQuitMpValidTime(other.getQuitMpValidTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int retcode_ ;
/**
* <code>int32 retcode = 12;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>int32 retcode = 12;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* <code>int32 retcode = 12;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private boolean isInMpMode_ ;
/**
* <code>bool is_in_mp_mode = 1;</code>
* @return The isInMpMode.
*/
@java.lang.Override
public boolean getIsInMpMode() {
return isInMpMode_;
}
/**
* <code>bool is_in_mp_mode = 1;</code>
* @param value The isInMpMode to set.
* @return This builder for chaining.
*/
public Builder setIsInMpMode(boolean value) {
isInMpMode_ = value;
onChanged();
return this;
}
/**
* <code>bool is_in_mp_mode = 1;</code>
* @return This builder for chaining.
*/
public Builder clearIsInMpMode() {
isInMpMode_ = false;
onChanged();
return this;
}
private int quitMpValidTime_ ;
/**
* <code>uint32 quit_mp_valid_time = 9;</code>
* @return The quitMpValidTime.
*/
@java.lang.Override
public int getQuitMpValidTime() {
return quitMpValidTime_;
}
/**
* <code>uint32 quit_mp_valid_time = 9;</code>
* @param value The quitMpValidTime to set.
* @return This builder for chaining.
*/
public Builder setQuitMpValidTime(int value) {
quitMpValidTime_ = value;
onChanged();
return this;
}
/**
* <code>uint32 quit_mp_valid_time = 9;</code>
* @return This builder for chaining.
*/
public Builder clearQuitMpValidTime() {
quitMpValidTime_ = 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:GetWorldMpInfoRsp)
}
// @@protoc_insertion_point(class_scope:GetWorldMpInfoRsp)
private static final emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp();
}
public static emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<GetWorldMpInfoRsp>
PARSER = new com.google.protobuf.AbstractParser<GetWorldMpInfoRsp>() {
@java.lang.Override
public GetWorldMpInfoRsp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetWorldMpInfoRsp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<GetWorldMpInfoRsp> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<GetWorldMpInfoRsp> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetWorldMpInfoRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetWorldMpInfoRsp_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\027GetWorldMpInfoRsp.proto\"W\n\021GetWorldMpI" +
"nfoRsp\022\017\n\007retcode\030\014 \001(\005\022\025\n\ris_in_mp_mode" +
"\030\001 \001(\010\022\032\n\022quit_mp_valid_time\030\t \001(\rB\033\n\031em" +
"u.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_GetWorldMpInfoRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GetWorldMpInfoRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetWorldMpInfoRsp_descriptor,
new java.lang.String[] { "Retcode", "IsInMpMode", "QuitMpValidTime", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,885 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: H5ActivityIdsNotify.proto
package emu.grasscutter.net.proto;
public final class H5ActivityIdsNotifyOuterClass {
private H5ActivityIdsNotifyOuterClass() {}
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 H5ActivityIdsNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:H5ActivityIdsNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 client_red_dot_timestamp = 1;</code>
* @return The clientRedDotTimestamp.
*/
int getClientRedDotTimestamp();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
int getH5ActivityMapCount();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
boolean containsH5ActivityMap(
int key);
/**
* Use {@link #getH5ActivityMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.Integer, java.lang.Integer>
getH5ActivityMap();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getH5ActivityMapMap();
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
int getH5ActivityMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
int getH5ActivityMapOrThrow(
int key);
}
/**
* <pre>
* CmdId: 5675
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code H5ActivityIdsNotify}
*/
public static final class H5ActivityIdsNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:H5ActivityIdsNotify)
H5ActivityIdsNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use H5ActivityIdsNotify.newBuilder() to construct.
private H5ActivityIdsNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private H5ActivityIdsNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new H5ActivityIdsNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private H5ActivityIdsNotify(
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: {
clientRedDotTimestamp_ = input.readUInt32();
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
h5ActivityMap_ = com.google.protobuf.MapField.newMapField(
H5ActivityMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
h5ActivityMap__ = input.readMessage(
H5ActivityMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
h5ActivityMap_.getMutableMap().put(
h5ActivityMap__.getKey(), h5ActivityMap__.getValue());
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.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 12:
return internalGetH5ActivityMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.class, emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.Builder.class);
}
public static final int CLIENT_RED_DOT_TIMESTAMP_FIELD_NUMBER = 1;
private int clientRedDotTimestamp_;
/**
* <code>uint32 client_red_dot_timestamp = 1;</code>
* @return The clientRedDotTimestamp.
*/
@java.lang.Override
public int getClientRedDotTimestamp() {
return clientRedDotTimestamp_;
}
public static final int H5_ACTIVITY_MAP_FIELD_NUMBER = 12;
private static final class H5ActivityMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> h5ActivityMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetH5ActivityMap() {
if (h5ActivityMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
H5ActivityMapDefaultEntryHolder.defaultEntry);
}
return h5ActivityMap_;
}
public int getH5ActivityMapCount() {
return internalGetH5ActivityMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public boolean containsH5ActivityMap(
int key) {
return internalGetH5ActivityMap().getMap().containsKey(key);
}
/**
* Use {@link #getH5ActivityMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMap() {
return getH5ActivityMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMapMap() {
return internalGetH5ActivityMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public int getH5ActivityMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetH5ActivityMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public int getH5ActivityMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetH5ActivityMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (clientRedDotTimestamp_ != 0) {
output.writeUInt32(1, clientRedDotTimestamp_);
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetH5ActivityMap(),
H5ActivityMapDefaultEntryHolder.defaultEntry,
12);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (clientRedDotTimestamp_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, clientRedDotTimestamp_);
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetH5ActivityMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
h5ActivityMap__ = H5ActivityMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, h5ActivityMap__);
}
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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify other = (emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) obj;
if (getClientRedDotTimestamp()
!= other.getClientRedDotTimestamp()) return false;
if (!internalGetH5ActivityMap().equals(
other.internalGetH5ActivityMap())) 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) + CLIENT_RED_DOT_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getClientRedDotTimestamp();
if (!internalGetH5ActivityMap().getMap().isEmpty()) {
hash = (37 * hash) + H5_ACTIVITY_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetH5ActivityMap().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify 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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify 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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify 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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify 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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify 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.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 5675
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code H5ActivityIdsNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:H5ActivityIdsNotify)
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 12:
return internalGetH5ActivityMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 12:
return internalGetMutableH5ActivityMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.class, emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clientRedDotTimestamp_ = 0;
internalGetMutableH5ActivityMap().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.internal_static_H5ActivityIdsNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify build() {
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify buildPartial() {
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify result = new emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify(this);
int from_bitField0_ = bitField0_;
result.clientRedDotTimestamp_ = clientRedDotTimestamp_;
result.h5ActivityMap_ = internalGetH5ActivityMap();
result.h5ActivityMap_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) {
return mergeFrom((emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify other) {
if (other == emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify.getDefaultInstance()) return this;
if (other.getClientRedDotTimestamp() != 0) {
setClientRedDotTimestamp(other.getClientRedDotTimestamp());
}
internalGetMutableH5ActivityMap().mergeFrom(
other.internalGetH5ActivityMap());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int clientRedDotTimestamp_ ;
/**
* <code>uint32 client_red_dot_timestamp = 1;</code>
* @return The clientRedDotTimestamp.
*/
@java.lang.Override
public int getClientRedDotTimestamp() {
return clientRedDotTimestamp_;
}
/**
* <code>uint32 client_red_dot_timestamp = 1;</code>
* @param value The clientRedDotTimestamp to set.
* @return This builder for chaining.
*/
public Builder setClientRedDotTimestamp(int value) {
clientRedDotTimestamp_ = value;
onChanged();
return this;
}
/**
* <code>uint32 client_red_dot_timestamp = 1;</code>
* @return This builder for chaining.
*/
public Builder clearClientRedDotTimestamp() {
clientRedDotTimestamp_ = 0;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> h5ActivityMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetH5ActivityMap() {
if (h5ActivityMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
H5ActivityMapDefaultEntryHolder.defaultEntry);
}
return h5ActivityMap_;
}
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetMutableH5ActivityMap() {
onChanged();;
if (h5ActivityMap_ == null) {
h5ActivityMap_ = com.google.protobuf.MapField.newMapField(
H5ActivityMapDefaultEntryHolder.defaultEntry);
}
if (!h5ActivityMap_.isMutable()) {
h5ActivityMap_ = h5ActivityMap_.copy();
}
return h5ActivityMap_;
}
public int getH5ActivityMapCount() {
return internalGetH5ActivityMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public boolean containsH5ActivityMap(
int key) {
return internalGetH5ActivityMap().getMap().containsKey(key);
}
/**
* Use {@link #getH5ActivityMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMap() {
return getH5ActivityMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getH5ActivityMapMap() {
return internalGetH5ActivityMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public int getH5ActivityMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetH5ActivityMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
@java.lang.Override
public int getH5ActivityMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetH5ActivityMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearH5ActivityMap() {
internalGetMutableH5ActivityMap().getMutableMap()
.clear();
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
public Builder removeH5ActivityMap(
int key) {
internalGetMutableH5ActivityMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer>
getMutableH5ActivityMap() {
return internalGetMutableH5ActivityMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
public Builder putH5ActivityMap(
int key,
int value) {
internalGetMutableH5ActivityMap().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; h5_activity_map = 12;</code>
*/
public Builder putAllH5ActivityMap(
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
internalGetMutableH5ActivityMap().getMutableMap()
.putAll(values);
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:H5ActivityIdsNotify)
}
// @@protoc_insertion_point(class_scope:H5ActivityIdsNotify)
private static final emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify();
}
public static emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<H5ActivityIdsNotify>
PARSER = new com.google.protobuf.AbstractParser<H5ActivityIdsNotify>() {
@java.lang.Override
public H5ActivityIdsNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new H5ActivityIdsNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<H5ActivityIdsNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<H5ActivityIdsNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_H5ActivityIdsNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_H5ActivityIdsNotify_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031H5ActivityIdsNotify.proto\"\257\001\n\023H5Activi" +
"tyIdsNotify\022 \n\030client_red_dot_timestamp\030" +
"\001 \001(\r\022@\n\017h5_activity_map\030\014 \003(\0132\'.H5Activ" +
"ityIdsNotify.H5ActivityMapEntry\0324\n\022H5Act" +
"ivityMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(" +
"\r:\0028\001B\033\n\031emu.grasscutter.net.protob\006prot" +
"o3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_H5ActivityIdsNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_H5ActivityIdsNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_H5ActivityIdsNotify_descriptor,
new java.lang.String[] { "ClientRedDotTimestamp", "H5ActivityMap", });
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor =
internal_static_H5ActivityIdsNotify_descriptor.getNestedTypes().get(0);
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_H5ActivityIdsNotify_H5ActivityMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,960 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HitTreeNotify.proto
package emu.grasscutter.net.proto;
public final class HitTreeNotifyOuterClass {
private HitTreeNotifyOuterClass() {}
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 HitTreeNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:HitTreeNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 tree_type = 11;</code>
* @return The treeType.
*/
int getTreeType();
/**
* <code>.Vector tree_pos = 2;</code>
* @return Whether the treePos field is set.
*/
boolean hasTreePos();
/**
* <code>.Vector tree_pos = 2;</code>
* @return The treePos.
*/
emu.grasscutter.net.proto.VectorOuterClass.Vector getTreePos();
/**
* <code>.Vector tree_pos = 2;</code>
*/
emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getTreePosOrBuilder();
/**
* <code>.Vector drop_pos = 8;</code>
* @return Whether the dropPos field is set.
*/
boolean hasDropPos();
/**
* <code>.Vector drop_pos = 8;</code>
* @return The dropPos.
*/
emu.grasscutter.net.proto.VectorOuterClass.Vector getDropPos();
/**
* <code>.Vector drop_pos = 8;</code>
*/
emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getDropPosOrBuilder();
}
/**
* <pre>
* CmdId: 3019
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code HitTreeNotify}
*/
public static final class HitTreeNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HitTreeNotify)
HitTreeNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use HitTreeNotify.newBuilder() to construct.
private HitTreeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HitTreeNotify() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HitTreeNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HitTreeNotify(
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 18: {
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null;
if (treePos_ != null) {
subBuilder = treePos_.toBuilder();
}
treePos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(treePos_);
treePos_ = subBuilder.buildPartial();
}
break;
}
case 66: {
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder subBuilder = null;
if (dropPos_ != null) {
subBuilder = dropPos_.toBuilder();
}
dropPos_ = input.readMessage(emu.grasscutter.net.proto.VectorOuterClass.Vector.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dropPos_);
dropPos_ = subBuilder.buildPartial();
}
break;
}
case 88: {
treeType_ = 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.HitTreeNotifyOuterClass.internal_static_HitTreeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HitTreeNotifyOuterClass.internal_static_HitTreeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.class, emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.Builder.class);
}
public static final int TREE_TYPE_FIELD_NUMBER = 11;
private int treeType_;
/**
* <code>uint32 tree_type = 11;</code>
* @return The treeType.
*/
@java.lang.Override
public int getTreeType() {
return treeType_;
}
public static final int TREE_POS_FIELD_NUMBER = 2;
private emu.grasscutter.net.proto.VectorOuterClass.Vector treePos_;
/**
* <code>.Vector tree_pos = 2;</code>
* @return Whether the treePos field is set.
*/
@java.lang.Override
public boolean hasTreePos() {
return treePos_ != null;
}
/**
* <code>.Vector tree_pos = 2;</code>
* @return The treePos.
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.Vector getTreePos() {
return treePos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : treePos_;
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getTreePosOrBuilder() {
return getTreePos();
}
public static final int DROP_POS_FIELD_NUMBER = 8;
private emu.grasscutter.net.proto.VectorOuterClass.Vector dropPos_;
/**
* <code>.Vector drop_pos = 8;</code>
* @return Whether the dropPos field is set.
*/
@java.lang.Override
public boolean hasDropPos() {
return dropPos_ != null;
}
/**
* <code>.Vector drop_pos = 8;</code>
* @return The dropPos.
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.Vector getDropPos() {
return dropPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : dropPos_;
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getDropPosOrBuilder() {
return getDropPos();
}
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 (treePos_ != null) {
output.writeMessage(2, getTreePos());
}
if (dropPos_ != null) {
output.writeMessage(8, getDropPos());
}
if (treeType_ != 0) {
output.writeUInt32(11, treeType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (treePos_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTreePos());
}
if (dropPos_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getDropPos());
}
if (treeType_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, treeType_);
}
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.HitTreeNotifyOuterClass.HitTreeNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify other = (emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify) obj;
if (getTreeType()
!= other.getTreeType()) return false;
if (hasTreePos() != other.hasTreePos()) return false;
if (hasTreePos()) {
if (!getTreePos()
.equals(other.getTreePos())) return false;
}
if (hasDropPos() != other.hasDropPos()) return false;
if (hasDropPos()) {
if (!getDropPos()
.equals(other.getDropPos())) 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) + TREE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getTreeType();
if (hasTreePos()) {
hash = (37 * hash) + TREE_POS_FIELD_NUMBER;
hash = (53 * hash) + getTreePos().hashCode();
}
if (hasDropPos()) {
hash = (37 * hash) + DROP_POS_FIELD_NUMBER;
hash = (53 * hash) + getDropPos().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify 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.HitTreeNotifyOuterClass.HitTreeNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify 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.HitTreeNotifyOuterClass.HitTreeNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify 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.HitTreeNotifyOuterClass.HitTreeNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify 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.HitTreeNotifyOuterClass.HitTreeNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify 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.HitTreeNotifyOuterClass.HitTreeNotify prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* CmdId: 3019
* EnetChannelId: 0
* EnetIsReliable: false
* IsAllowClient: true
* </pre>
*
* Protobuf type {@code HitTreeNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HitTreeNotify)
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HitTreeNotifyOuterClass.internal_static_HitTreeNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HitTreeNotifyOuterClass.internal_static_HitTreeNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.class, emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
treeType_ = 0;
if (treePosBuilder_ == null) {
treePos_ = null;
} else {
treePos_ = null;
treePosBuilder_ = null;
}
if (dropPosBuilder_ == null) {
dropPos_ = null;
} else {
dropPos_ = null;
dropPosBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HitTreeNotifyOuterClass.internal_static_HitTreeNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify build() {
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify buildPartial() {
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify result = new emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify(this);
result.treeType_ = treeType_;
if (treePosBuilder_ == null) {
result.treePos_ = treePos_;
} else {
result.treePos_ = treePosBuilder_.build();
}
if (dropPosBuilder_ == null) {
result.dropPos_ = dropPos_;
} else {
result.dropPos_ = dropPosBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify) {
return mergeFrom((emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify other) {
if (other == emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify.getDefaultInstance()) return this;
if (other.getTreeType() != 0) {
setTreeType(other.getTreeType());
}
if (other.hasTreePos()) {
mergeTreePos(other.getTreePos());
}
if (other.hasDropPos()) {
mergeDropPos(other.getDropPos());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int treeType_ ;
/**
* <code>uint32 tree_type = 11;</code>
* @return The treeType.
*/
@java.lang.Override
public int getTreeType() {
return treeType_;
}
/**
* <code>uint32 tree_type = 11;</code>
* @param value The treeType to set.
* @return This builder for chaining.
*/
public Builder setTreeType(int value) {
treeType_ = value;
onChanged();
return this;
}
/**
* <code>uint32 tree_type = 11;</code>
* @return This builder for chaining.
*/
public Builder clearTreeType() {
treeType_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.VectorOuterClass.Vector treePos_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> treePosBuilder_;
/**
* <code>.Vector tree_pos = 2;</code>
* @return Whether the treePos field is set.
*/
public boolean hasTreePos() {
return treePosBuilder_ != null || treePos_ != null;
}
/**
* <code>.Vector tree_pos = 2;</code>
* @return The treePos.
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector getTreePos() {
if (treePosBuilder_ == null) {
return treePos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : treePos_;
} else {
return treePosBuilder_.getMessage();
}
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
public Builder setTreePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (treePosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
treePos_ = value;
onChanged();
} else {
treePosBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
public Builder setTreePos(
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
if (treePosBuilder_ == null) {
treePos_ = builderForValue.build();
onChanged();
} else {
treePosBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
public Builder mergeTreePos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (treePosBuilder_ == null) {
if (treePos_ != null) {
treePos_ =
emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(treePos_).mergeFrom(value).buildPartial();
} else {
treePos_ = value;
}
onChanged();
} else {
treePosBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
public Builder clearTreePos() {
if (treePosBuilder_ == null) {
treePos_ = null;
onChanged();
} else {
treePos_ = null;
treePosBuilder_ = null;
}
return this;
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getTreePosBuilder() {
onChanged();
return getTreePosFieldBuilder().getBuilder();
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getTreePosOrBuilder() {
if (treePosBuilder_ != null) {
return treePosBuilder_.getMessageOrBuilder();
} else {
return treePos_ == null ?
emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : treePos_;
}
}
/**
* <code>.Vector tree_pos = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>
getTreePosFieldBuilder() {
if (treePosBuilder_ == null) {
treePosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
getTreePos(),
getParentForChildren(),
isClean());
treePos_ = null;
}
return treePosBuilder_;
}
private emu.grasscutter.net.proto.VectorOuterClass.Vector dropPos_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder> dropPosBuilder_;
/**
* <code>.Vector drop_pos = 8;</code>
* @return Whether the dropPos field is set.
*/
public boolean hasDropPos() {
return dropPosBuilder_ != null || dropPos_ != null;
}
/**
* <code>.Vector drop_pos = 8;</code>
* @return The dropPos.
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector getDropPos() {
if (dropPosBuilder_ == null) {
return dropPos_ == null ? emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : dropPos_;
} else {
return dropPosBuilder_.getMessage();
}
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
public Builder setDropPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (dropPosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dropPos_ = value;
onChanged();
} else {
dropPosBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
public Builder setDropPos(
emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder builderForValue) {
if (dropPosBuilder_ == null) {
dropPos_ = builderForValue.build();
onChanged();
} else {
dropPosBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
public Builder mergeDropPos(emu.grasscutter.net.proto.VectorOuterClass.Vector value) {
if (dropPosBuilder_ == null) {
if (dropPos_ != null) {
dropPos_ =
emu.grasscutter.net.proto.VectorOuterClass.Vector.newBuilder(dropPos_).mergeFrom(value).buildPartial();
} else {
dropPos_ = value;
}
onChanged();
} else {
dropPosBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
public Builder clearDropPos() {
if (dropPosBuilder_ == null) {
dropPos_ = null;
onChanged();
} else {
dropPos_ = null;
dropPosBuilder_ = null;
}
return this;
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder getDropPosBuilder() {
onChanged();
return getDropPosFieldBuilder().getBuilder();
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
public emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder getDropPosOrBuilder() {
if (dropPosBuilder_ != null) {
return dropPosBuilder_.getMessageOrBuilder();
} else {
return dropPos_ == null ?
emu.grasscutter.net.proto.VectorOuterClass.Vector.getDefaultInstance() : dropPos_;
}
}
/**
* <code>.Vector drop_pos = 8;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>
getDropPosFieldBuilder() {
if (dropPosBuilder_ == null) {
dropPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.VectorOuterClass.Vector, emu.grasscutter.net.proto.VectorOuterClass.Vector.Builder, emu.grasscutter.net.proto.VectorOuterClass.VectorOrBuilder>(
getDropPos(),
getParentForChildren(),
isClean());
dropPos_ = null;
}
return dropPosBuilder_;
}
@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:HitTreeNotify)
}
// @@protoc_insertion_point(class_scope:HitTreeNotify)
private static final emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify();
}
public static emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HitTreeNotify>
PARSER = new com.google.protobuf.AbstractParser<HitTreeNotify>() {
@java.lang.Override
public HitTreeNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HitTreeNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HitTreeNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HitTreeNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HitTreeNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HitTreeNotify_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023HitTreeNotify.proto\032\014Vector.proto\"X\n\rH" +
"itTreeNotify\022\021\n\ttree_type\030\013 \001(\r\022\031\n\010tree_" +
"pos\030\002 \001(\0132\007.Vector\022\031\n\010drop_pos\030\010 \001(\0132\007.V" +
"ectorB\033\n\031emu.grasscutter.net.protob\006prot" +
"o3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.VectorOuterClass.getDescriptor(),
});
internal_static_HitTreeNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HitTreeNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HitTreeNotify_descriptor,
new java.lang.String[] { "TreeType", "TreePos", "DropPos", });
emu.grasscutter.net.proto.VectorOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -1,19 +1,18 @@
package emu.grasscutter.game.managers.deforestation;
import java.util.ArrayList;
import java.util.HashMap;
import dev.morphia.annotations.Transient;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.data.GameData;
import emu.grasscutter.game.entity.EntityItem;
import emu.grasscutter.game.player.BasePlayerManager;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.game.world.Scene;
import emu.grasscutter.net.proto.HitTreeNotifyOuterClass;
import emu.grasscutter.net.proto.VectorOuterClass;
import org.anime_game_servers.multi_proto.gi.messages.scene.HitTreeNotify;
import org.anime_game_servers.multi_proto.gi.messages.general.Vector;
import emu.grasscutter.utils.Position;
import java.util.ArrayList;
import java.util.HashMap;
public class DeforestationManager extends BasePlayerManager {
final static int RECORD_EXPIRED_SECONDS = 60*5; // 5 min
final static int RECORD_MAX_TIMES = 3; // max number of wood
@ -52,10 +51,11 @@ public class DeforestationManager extends BasePlayerManager {
currentRecord.clear();
}
}
public void onDeforestationInvoke(HitTreeNotifyOuterClass.HitTreeNotify hit) {
public void onDeforestationInvoke(HitTreeNotify hit) {
synchronized (currentRecord) {
//Grasscutter.getLogger().info("onDeforestationInvoke! Wood records {}", currentRecord);
VectorOuterClass.Vector hitPosition = hit.getTreePos();
Vector hitPosition = hit.getTreePos();
int woodType = hit.getTreeType();
if (ColliderTypeToWoodItemID.containsKey(woodType)) {// is a available wood type
Scene scene = player.getScene();

View File

@ -1,22 +1,14 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.proto.ClientLockGameTimeNotifyOuterClass.ClientLockGameTimeNotify;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import lombok.val;
@Opcodes(PacketOpcodes.ClientLockGameTimeNotify)
public class HandlerClientLockGameTimeNotify extends PacketHandler {
import org.anime_game_servers.multi_proto.gi.messages.player.game_time.ClientLockGameTimeNotify;
public class HandlerClientLockGameTimeNotify extends TypedPacketHandler<ClientLockGameTimeNotify> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
val req = ClientLockGameTimeNotify.parseFrom(payload);
Grasscutter.getLogger().error("LOCKING GAMETIME: {}", req.getIsLock());
public void handle(GameSession session, byte[] header, ClientLockGameTimeNotify req) throws Exception {
Grasscutter.getLogger().error("LOCKING GAMETIME: {}", req.isLock());
//session.getPlayer().getWorld().setGameTimeLocked(req.getIsLock());
}
}

View File

@ -1,36 +1,31 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ClientScriptEventNotifyOuterClass.ClientScriptEventNotify;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import lombok.val;
import org.anime_game_servers.gi_lua.models.ScriptArgs;
import org.anime_game_servers.gi_lua.models.constants.EventType;
import org.anime_game_servers.multi_proto.gi.messages.scene.script.ClientScriptEventNotify;
@Opcodes(PacketOpcodes.ClientScriptEventNotify)
public class HandlerClientScriptEventNotify extends PacketHandler {
public class HandlerClientScriptEventNotify extends TypedPacketHandler<ClientScriptEventNotify> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
val data = ClientScriptEventNotify.parseFrom(payload);
Grasscutter.getLogger().info("called ClientScriptEventNotify with type {}", data.getEventType());
public void handle(GameSession session, byte[] header, ClientScriptEventNotify req) throws Exception {
Grasscutter.getLogger().info("called ClientScriptEventNotify with type {}", req.getEventType());
val scriptManager = session.getPlayer().getScene().getScriptManager();
val args = new ScriptArgs(0, data.getEventType())
.setSourceEntityId(data.getSourceEntityId())
.setTargetEntityId(data.getTargetEntityId());
val args = new ScriptArgs(0, req.getEventType())
.setSourceEntityId(req.getSourceEntityId())
.setTargetEntityId(req.getTargetEntityId());
for (int i = 0; i < data.getParamListCount(); i++) {
for (int i = 0; i < req.getParamList().size(); i++) {
switch (i) {
case 0 -> args.setParam1(data.getParamList(i));
case 1 -> args.setParam2(data.getParamList(i));
case 2 -> args.setParam3(data.getParamList(i));
case 0 -> args.setParam1(req.getParamList().get(i));
case 1 -> args.setParam2(req.getParamList().get(i));
case 2 -> args.setParam3(req.getParamList().get(i));
}
}
if(data.getEventType() == EventType.EVENT_AVATAR_NEAR_PLATFORM){
val entity = scriptManager.getScene().getEntityById(data.getSourceEntityId());
if (req.getEventType() == EventType.EVENT_AVATAR_NEAR_PLATFORM) {
val entity = scriptManager.getScene().getEntityById(req.getSourceEntityId());
if(entity != null){
args.setParam1(entity.getConfigId());
}
@ -38,5 +33,4 @@ public class HandlerClientScriptEventNotify extends PacketHandler {
scriptManager.callEvent(args);
}
}

View File

@ -1,16 +1,12 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.game.managers.SotSManager;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import org.anime_game_servers.multi_proto.gi.messages.scene.EnterTransPointRegionNotify;
@Opcodes(PacketOpcodes.EnterTransPointRegionNotify)
public class HandlerEnterTransPointRegionNotify extends PacketHandler {
public class HandlerEnterTransPointRegionNotify extends TypedPacketHandler<EnterTransPointRegionNotify> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception{
public void handle(GameSession session, byte[] header, EnterTransPointRegionNotify req) throws Exception {
session.getPlayer().getSotsManager().handleEnterTransPointRegionNotify();
}
}

View File

@ -1,23 +1,16 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.net.proto.PacketHeadOuterClass.PacketHead;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketEnterWorldAreaRsp;
import org.anime_game_servers.multi_proto.gi.messages.scene.EnterWorldAreaReq;
@Opcodes(PacketOpcodes.EnterWorldAreaReq)
public class HandlerEnterWorldAreaReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
public class HandlerEnterWorldAreaReq extends TypedPacketHandler<EnterWorldAreaReq> {
@Override
public void handle(GameSession session, byte[] header, EnterWorldAreaReq req) throws Exception {
PacketHead head = PacketHead.parseFrom(header);
EnterWorldAreaReq enterWorld = EnterWorldAreaReq.parseFrom(payload);
session.send(new PacketEnterWorldAreaRsp(head.getClientSequenceId(), enterWorld));
session.send(new PacketEnterWorldAreaRsp(head.getClientSequenceId(), req));
//session.send(new PacketScenePlayerLocationNotify(session.getPlayer()));
}
}

View File

@ -1,23 +1,16 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.game.entity.EntityGadget;
import emu.grasscutter.game.entity.GameEntity;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ExecuteGadgetLuaReqOuterClass.ExecuteGadgetLuaReq;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketExecuteGadgetLuaRsp;
import org.anime_game_servers.multi_proto.gi.messages.scene.script.ExecuteGadgetLuaReq;
@Opcodes(PacketOpcodes.ExecuteGadgetLuaReq)
public class HandlerExecuteGadgetLuaReq extends PacketHandler {
public class HandlerExecuteGadgetLuaReq extends TypedPacketHandler<ExecuteGadgetLuaReq> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
ExecuteGadgetLuaReq req = ExecuteGadgetLuaReq.parseFrom(payload);
public void handle(GameSession session, byte[] header, ExecuteGadgetLuaReq req) throws Exception {
Player player = session.getPlayer();
GameEntity entity = player.getScene().getEntities().get(req.getSourceEntityId());
@ -26,5 +19,4 @@ public class HandlerExecuteGadgetLuaReq extends PacketHandler {
player.sendPacket(new PacketExecuteGadgetLuaRsp(result));
}
}

View File

@ -1,17 +1,12 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.game.managers.SotSManager;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import org.anime_game_servers.multi_proto.gi.messages.scene.ExitTransPointRegionNotify;
@Opcodes(PacketOpcodes.ExitTransPointRegionNotify)
public class HandlerExitTransPointRegionNotify extends PacketHandler {
public class HandlerExitTransPointRegionNotify extends TypedPacketHandler<ExitTransPointRegionNotify> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception{
public void handle(GameSession session, byte[] header, ExitTransPointRegionNotify req) throws Exception {
session.getPlayer().getSotsManager().handleExitTransPointRegionNotify();
}
}

View File

@ -1,17 +1,13 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketH5ActivityIdsNotify;
import org.anime_game_servers.multi_proto.gi.messages.web_event.GetAllH5ActivityInfoReq;
@Opcodes(PacketOpcodes.GetAllH5ActivityInfoReq)
public class HandlerGetAllH5ActivityInfoReq extends PacketHandler {
public class HandlerGetAllH5ActivityInfoReq extends TypedPacketHandler<GetAllH5ActivityInfoReq> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
public void handle(GameSession session, byte[] header, GetAllH5ActivityInfoReq req) throws Exception {
session.send(new PacketH5ActivityIdsNotify());
}
}

View File

@ -1,16 +1,12 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import org.anime_game_servers.multi_proto.gi.messages.activity.water_spirit.region_search.GetRegionSearchReq;
@Opcodes(PacketOpcodes.GetRegionSearchReq)
public class HandlerGetRegionSearchReq extends PacketHandler {
public class HandlerGetRegionSearchReq extends TypedPacketHandler<GetRegionSearchReq> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
public void handle(GameSession session, byte[] header, GetRegionSearchReq req) throws Exception {
// Auto template
}
}

View File

@ -1,17 +1,13 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import emu.grasscutter.server.packet.send.PacketGetWorldMpInfoRsp;
import org.anime_game_servers.multi_proto.gi.messages.scene.GetWorldMpInfoReq;
@Opcodes(PacketOpcodes.GetWorldMpInfoReq)
public class HandlerGetWorldMpInfoReq extends PacketHandler {
public class HandlerGetWorldMpInfoReq extends TypedPacketHandler<GetWorldMpInfoReq> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
public void handle(GameSession session, byte[] header, GetWorldMpInfoReq req) throws Exception {
session.send(new PacketGetWorldMpInfoRsp(session.getPlayer().getWorld()));
}
}

View File

@ -1,21 +1,15 @@
package emu.grasscutter.server.packet.recv;
import java.math.BigInteger;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.HitTreeNotifyOuterClass.HitTreeNotify;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import org.anime_game_servers.multi_proto.gi.messages.scene.HitTreeNotify;
/**
* Implement Deforestation Function
*/
@Opcodes(PacketOpcodes.HitTreeNotify)
public class HandlerHitTreeNotify extends PacketHandler {
public class HandlerHitTreeNotify extends TypedPacketHandler<HitTreeNotify> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
HitTreeNotify hit = HitTreeNotify.parseFrom(payload);
session.getPlayer().getDeforestationManager().onDeforestationInvoke(hit);
public void handle(GameSession session, byte[] header, HitTreeNotify req) throws Exception {
session.getPlayer().getDeforestationManager().onDeforestationInvoke(req);
}
}
}

View File

@ -1,16 +1,12 @@
package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.Opcodes;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.packet.PacketHandler;
import emu.grasscutter.net.packet.TypedPacketHandler;
import emu.grasscutter.server.game.GameSession;
import org.anime_game_servers.multi_proto.gi.messages.scene.entity.MonsterAIConfigHashNotify;
@Opcodes(PacketOpcodes.MonsterAIConfigHashNotify)
public class HandlerMonsterAIConfigHashNotify extends PacketHandler {
public class HandlerMonsterAIConfigHashNotify extends TypedPacketHandler<MonsterAIConfigHashNotify> {
@Override
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
public void handle(GameSession session, byte[] header, MonsterAIConfigHashNotify req) throws Exception {
// Auto template
}
}

View File

@ -1,36 +1,38 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.BeginCameraSceneLookNotifyOuterClass.BeginCameraSceneLookNotify;
import emu.grasscutter.net.packet.BaseTypedPacket;
import emu.grasscutter.utils.Position;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.val;
import org.anime_game_servers.multi_proto.gi.messages.scene.camera.BeginCameraSceneLookNotify;
import java.util.ArrayList;
import java.util.Collection;
public class PacketBeginCameraSceneLookNotify extends BasePacket {
public class PacketBeginCameraSceneLookNotify extends BaseTypedPacket<BeginCameraSceneLookNotify> {
public PacketBeginCameraSceneLookNotify(CameraSceneLookNotify parameters) {
super(PacketOpcodes.BeginCameraSceneLookNotify);
val builder = BeginCameraSceneLookNotify.newBuilder()
.setLookPos(parameters.lookPos.toProtoOld())
.setFollowPos(parameters.followPos.toProtoOld())
.setDuration(parameters.duration)
.setIsAllowInput(parameters.isAllowInput)
.setIsSetFollowPos(parameters.setFollowPos)
.setIsSetScreenXy(parameters.isScreenXY)
.setIsRecoverKeepCurrent(parameters.recoverKeepCurrent)
.setIsChangePlayMode(parameters.isChangePlayMode)
.setScreenY(parameters.screenY)
.setScreenX(parameters.screenX)
.setIsForce(parameters.isForce)
.setIsForce(parameters.isForceWalk)
.setEntityId(parameters.entityId)
.addAllOtherParams(parameters.otherParams);
this.setData(builder);
super(new BeginCameraSceneLookNotify());
proto.setLookPos(parameters.lookPos.toProto());
proto.setFollowPos(parameters.followPos.toProto());
proto.setDuration(parameters.duration);
proto.setAllowInput(parameters.isAllowInput);
proto.setSetFollowPos(parameters.setFollowPos);
proto.setSetScreenXy(parameters.isScreenXY);
proto.setRecoverKeepCurrent(parameters.recoverKeepCurrent);
proto.setChangePlayMode(parameters.isChangePlayMode);
proto.setScreenY(parameters.screenY);
proto.setScreenX(parameters.screenX);
proto.setForce(parameters.isForce);
proto.setForceWalk(parameters.isForceWalk);
proto.setEntityId(parameters.entityId);
proto.setOtherParams(parameters.otherParams.stream().toList());
//proto.setKeepRotType(); //KeepRotType
//proto.setCustomRadius(); //Float
//proto.setBlendType(); //Int
//proto.setAbsFollowPos(); //Boolean
//proto.setDisableProtect(); //Int
//proto.setBlendDuration(); //Float
}
// TODO check default values

View File

@ -1,24 +1,16 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.CardProductRewardNotifyOuterClass.CardProductRewardNotify;
public class PacketCardProductRewardNotify extends BasePacket {
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.shop.micro_transaction.CardProductRewardNotify;
public class PacketCardProductRewardNotify extends BaseTypedPacket<CardProductRewardNotify> {
public PacketCardProductRewardNotify(int remainsDay) {
super(PacketOpcodes.CardProductRewardNotify);
CardProductRewardNotify proto = CardProductRewardNotify.newBuilder()
.setProductId("ys_chn_blessofmoon_tier5")
.setHcoin(90)
.setRemainDays(remainsDay)
.build();
super(new CardProductRewardNotify());
proto.setProductId("ys_chn_blessofmoon_tier5");
proto.setHcoin(90);
proto.setRemainDays(remainsDay);
// Hard code Product id keep cool 😎
this.setData(proto);
}
}

View File

@ -1,13 +1,10 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.CloseCommonTipsNotifyOuterClass.CloseCommonTipsNotify;
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.scene.CloseCommonTipsNotify;
public class PacketCloseCommonTipsNotify extends BasePacket {
public class PacketCloseCommonTipsNotify extends BaseTypedPacket<CloseCommonTipsNotify> {
public PacketCloseCommonTipsNotify() {
super(PacketOpcodes.CloseCommonTipsNotify);
this.setData(CloseCommonTipsNotify.newBuilder().build());
super(new CloseCommonTipsNotify());
}
}

View File

@ -1,16 +1,11 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.CutSceneBeginNotifyOuterClass.CutSceneBeginNotify;
public class PacketCutsceneBeginNotify extends BasePacket {
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.scene.cutscene.CutSceneBeginNotify;
public class PacketCutsceneBeginNotify extends BaseTypedPacket<CutSceneBeginNotify> {
public PacketCutsceneBeginNotify(int cutsceneId) {
super(PacketOpcodes.CutSceneBeginNotify);
setData(CutSceneBeginNotify.newBuilder()
.setCutsceneId(cutsceneId));
super(new CutSceneBeginNotify());
proto.setCutsceneId(cutsceneId);
}
}

View File

@ -1,14 +1,10 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.EndCameraSceneLookNotifyOuterClass.EndCameraSceneLookNotify;
public class PacketEndCameraSceneLookNotify extends BasePacket {
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.scene.camera.EndCameraSceneLookNotify;
public class PacketEndCameraSceneLookNotify extends BaseTypedPacket<EndCameraSceneLookNotify> {
public PacketEndCameraSceneLookNotify() {
super(PacketOpcodes.EndCameraSceneLookNotify);
this.setData(EndCameraSceneLookNotify.newBuilder());
super(new EndCameraSceneLookNotify());
}
}

View File

@ -1,20 +1,14 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.EnterWorldAreaReqOuterClass.EnterWorldAreaReq;
import emu.grasscutter.net.proto.EnterWorldAreaRspOuterClass.EnterWorldAreaRsp;
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.scene.EnterWorldAreaReq;
import org.anime_game_servers.multi_proto.gi.messages.scene.EnterWorldAreaRsp;
public class PacketEnterWorldAreaRsp extends BasePacket {
public class PacketEnterWorldAreaRsp extends BaseTypedPacket<EnterWorldAreaRsp> {
public PacketEnterWorldAreaRsp(int clientSequence, EnterWorldAreaReq enterWorld) {
super(PacketOpcodes.EnterWorldAreaRsp, clientSequence);
EnterWorldAreaRsp p = EnterWorldAreaRsp.newBuilder()
.setAreaType(enterWorld.getAreaType())
.setAreaId(enterWorld.getAreaId())
.build();
this.setData(p.toByteArray());
super(new EnterWorldAreaRsp(), clientSequence);
proto.setAreaType(enterWorld.getAreaType());
proto.setAreaId(enterWorld.getAreaId());
}
}

View File

@ -1,19 +1,12 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ExecuteGadgetLuaRspOuterClass.ExecuteGadgetLuaRsp;
public class PacketExecuteGadgetLuaRsp extends BasePacket {
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.scene.script.ExecuteGadgetLuaRsp;
public class PacketExecuteGadgetLuaRsp extends BaseTypedPacket<ExecuteGadgetLuaRsp> {
public PacketExecuteGadgetLuaRsp(int result) {
super(PacketOpcodes.ExecuteGadgetLuaRsp, true);
ExecuteGadgetLuaRsp proto = ExecuteGadgetLuaRsp.newBuilder()
.setRetcode(result)
.build();
this.setData(proto);
super(new ExecuteGadgetLuaRsp(), true);
proto.setRetcode(result);
}
}

View File

@ -1,19 +1,12 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.world.World;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.GetWorldMpInfoRspOuterClass.GetWorldMpInfoRsp;
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.scene.GetWorldMpInfoRsp;
public class PacketGetWorldMpInfoRsp extends BasePacket {
public class PacketGetWorldMpInfoRsp extends BaseTypedPacket<GetWorldMpInfoRsp> {
public PacketGetWorldMpInfoRsp(World world) {
super(PacketOpcodes.GetWorldMpInfoRsp);
GetWorldMpInfoRsp proto = GetWorldMpInfoRsp.newBuilder()
.setIsInMpMode(world.isMultiplayer())
.build();
this.setData(proto);
super(new GetWorldMpInfoRsp());
proto.setInMpMode(world.isMultiplayer());
}
}

View File

@ -1,17 +1,10 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.H5ActivityIdsNotifyOuterClass.H5ActivityIdsNotify;
import emu.grasscutter.net.packet.BaseTypedPacket;
import org.anime_game_servers.multi_proto.gi.messages.web_event.H5ActivityIdsNotify;
public class PacketH5ActivityIdsNotify extends BasePacket {
public class PacketH5ActivityIdsNotify extends BaseTypedPacket<H5ActivityIdsNotify> {
public PacketH5ActivityIdsNotify() {
super(PacketOpcodes.H5ActivityIdsNotify);
H5ActivityIdsNotify proto = H5ActivityIdsNotify.newBuilder()
.build();
this.setData(proto);
super(new H5ActivityIdsNotify());
}
}