mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-23 04:29:42 +00:00
parent
88f0c4d6e1
commit
76c45ba3a7
File diff suppressed because it is too large
Load Diff
@ -1,748 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: CompoundQueueData.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class CompoundQueueDataOuterClass {
|
|
||||||
private CompoundQueueDataOuterClass() {}
|
|
||||||
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 CompoundQueueDataOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:CompoundQueueData)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_count = 1;</code>
|
|
||||||
* @return The outputCount.
|
|
||||||
*/
|
|
||||||
int getOutputCount();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 4;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
int getCompoundId();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_time = 14;</code>
|
|
||||||
* @return The outputTime.
|
|
||||||
*/
|
|
||||||
int getOutputTime();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 wait_count = 8;</code>
|
|
||||||
* @return The waitCount.
|
|
||||||
*/
|
|
||||||
int getWaitCount();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Protobuf type {@code CompoundQueueData}
|
|
||||||
*/
|
|
||||||
public static final class CompoundQueueData extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:CompoundQueueData)
|
|
||||||
CompoundQueueDataOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use CompoundQueueData.newBuilder() to construct.
|
|
||||||
private CompoundQueueData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private CompoundQueueData() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new CompoundQueueData();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private CompoundQueueData(
|
|
||||||
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: {
|
|
||||||
|
|
||||||
outputCount_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 32: {
|
|
||||||
|
|
||||||
compoundId_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 64: {
|
|
||||||
|
|
||||||
waitCount_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 112: {
|
|
||||||
|
|
||||||
outputTime_ = 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.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.class, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int OUTPUT_COUNT_FIELD_NUMBER = 1;
|
|
||||||
private int outputCount_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_count = 1;</code>
|
|
||||||
* @return The outputCount.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getOutputCount() {
|
|
||||||
return outputCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COMPOUND_ID_FIELD_NUMBER = 4;
|
|
||||||
private int compoundId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 4;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundId() {
|
|
||||||
return compoundId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int OUTPUT_TIME_FIELD_NUMBER = 14;
|
|
||||||
private int outputTime_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_time = 14;</code>
|
|
||||||
* @return The outputTime.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getOutputTime() {
|
|
||||||
return outputTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int WAIT_COUNT_FIELD_NUMBER = 8;
|
|
||||||
private int waitCount_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 wait_count = 8;</code>
|
|
||||||
* @return The waitCount.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getWaitCount() {
|
|
||||||
return waitCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (outputCount_ != 0) {
|
|
||||||
output.writeUInt32(1, outputCount_);
|
|
||||||
}
|
|
||||||
if (compoundId_ != 0) {
|
|
||||||
output.writeUInt32(4, compoundId_);
|
|
||||||
}
|
|
||||||
if (waitCount_ != 0) {
|
|
||||||
output.writeUInt32(8, waitCount_);
|
|
||||||
}
|
|
||||||
if (outputTime_ != 0) {
|
|
||||||
output.writeUInt32(14, outputTime_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (outputCount_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(1, outputCount_);
|
|
||||||
}
|
|
||||||
if (compoundId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(4, compoundId_);
|
|
||||||
}
|
|
||||||
if (waitCount_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(8, waitCount_);
|
|
||||||
}
|
|
||||||
if (outputTime_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(14, outputTime_);
|
|
||||||
}
|
|
||||||
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.CompoundQueueDataOuterClass.CompoundQueueData)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData other = (emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData) obj;
|
|
||||||
|
|
||||||
if (getOutputCount()
|
|
||||||
!= other.getOutputCount()) return false;
|
|
||||||
if (getCompoundId()
|
|
||||||
!= other.getCompoundId()) return false;
|
|
||||||
if (getOutputTime()
|
|
||||||
!= other.getOutputTime()) return false;
|
|
||||||
if (getWaitCount()
|
|
||||||
!= other.getWaitCount()) 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) + OUTPUT_COUNT_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getOutputCount();
|
|
||||||
hash = (37 * hash) + COMPOUND_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCompoundId();
|
|
||||||
hash = (37 * hash) + OUTPUT_TIME_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getOutputTime();
|
|
||||||
hash = (37 * hash) + WAIT_COUNT_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getWaitCount();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData 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.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData 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.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData 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.CompoundQueueDataOuterClass.CompoundQueueData parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData 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.CompoundQueueDataOuterClass.CompoundQueueData parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData 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.CompoundQueueDataOuterClass.CompoundQueueData 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 CompoundQueueData}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:CompoundQueueData)
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.class, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.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();
|
|
||||||
outputCount_ = 0;
|
|
||||||
|
|
||||||
compoundId_ = 0;
|
|
||||||
|
|
||||||
outputTime_ = 0;
|
|
||||||
|
|
||||||
waitCount_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.internal_static_CompoundQueueData_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData build() {
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData result = new emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData(this);
|
|
||||||
result.outputCount_ = outputCount_;
|
|
||||||
result.compoundId_ = compoundId_;
|
|
||||||
result.outputTime_ = outputTime_;
|
|
||||||
result.waitCount_ = waitCount_;
|
|
||||||
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.CompoundQueueDataOuterClass.CompoundQueueData) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance()) return this;
|
|
||||||
if (other.getOutputCount() != 0) {
|
|
||||||
setOutputCount(other.getOutputCount());
|
|
||||||
}
|
|
||||||
if (other.getCompoundId() != 0) {
|
|
||||||
setCompoundId(other.getCompoundId());
|
|
||||||
}
|
|
||||||
if (other.getOutputTime() != 0) {
|
|
||||||
setOutputTime(other.getOutputTime());
|
|
||||||
}
|
|
||||||
if (other.getWaitCount() != 0) {
|
|
||||||
setWaitCount(other.getWaitCount());
|
|
||||||
}
|
|
||||||
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.CompoundQueueDataOuterClass.CompoundQueueData parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int outputCount_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_count = 1;</code>
|
|
||||||
* @return The outputCount.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getOutputCount() {
|
|
||||||
return outputCount_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_count = 1;</code>
|
|
||||||
* @param value The outputCount to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setOutputCount(int value) {
|
|
||||||
|
|
||||||
outputCount_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_count = 1;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearOutputCount() {
|
|
||||||
|
|
||||||
outputCount_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int compoundId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 4;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundId() {
|
|
||||||
return compoundId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 4;</code>
|
|
||||||
* @param value The compoundId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setCompoundId(int value) {
|
|
||||||
|
|
||||||
compoundId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 4;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearCompoundId() {
|
|
||||||
|
|
||||||
compoundId_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int outputTime_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_time = 14;</code>
|
|
||||||
* @return The outputTime.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getOutputTime() {
|
|
||||||
return outputTime_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_time = 14;</code>
|
|
||||||
* @param value The outputTime to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setOutputTime(int value) {
|
|
||||||
|
|
||||||
outputTime_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 output_time = 14;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearOutputTime() {
|
|
||||||
|
|
||||||
outputTime_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int waitCount_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 wait_count = 8;</code>
|
|
||||||
* @return The waitCount.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getWaitCount() {
|
|
||||||
return waitCount_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 wait_count = 8;</code>
|
|
||||||
* @param value The waitCount to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setWaitCount(int value) {
|
|
||||||
|
|
||||||
waitCount_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 wait_count = 8;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearWaitCount() {
|
|
||||||
|
|
||||||
waitCount_ = 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:CompoundQueueData)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:CompoundQueueData)
|
|
||||||
private static final emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<CompoundQueueData>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<CompoundQueueData>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public CompoundQueueData parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new CompoundQueueData(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<CompoundQueueData> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<CompoundQueueData> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_CompoundQueueData_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_CompoundQueueData_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\027CompoundQueueData.proto\"g\n\021CompoundQue" +
|
|
||||||
"ueData\022\024\n\014output_count\030\001 \001(\r\022\023\n\013compound" +
|
|
||||||
"_id\030\004 \001(\r\022\023\n\013output_time\030\016 \001(\r\022\022\n\nwait_c" +
|
|
||||||
"ount\030\010 \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_CompoundQueueData_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_CompoundQueueData_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_CompoundQueueData_descriptor,
|
|
||||||
new java.lang.String[] { "OutputCount", "CompoundId", "OutputTime", "WaitCount", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,928 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: CookDataNotify.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class CookDataNotifyOuterClass {
|
|
||||||
private CookDataNotifyOuterClass() {}
|
|
||||||
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 CookDataNotifyOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:CookDataNotify)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
java.util.List<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData>
|
|
||||||
getRecipeDataListList();
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeDataList(int index);
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
int getRecipeDataListCount();
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
java.util.List<? extends emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>
|
|
||||||
getRecipeDataListOrBuilderList();
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataListOrBuilder(
|
|
||||||
int index);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 grade = 11;</code>
|
|
||||||
* @return The grade.
|
|
||||||
*/
|
|
||||||
int getGrade();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 195
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code CookDataNotify}
|
|
||||||
*/
|
|
||||||
public static final class CookDataNotify extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:CookDataNotify)
|
|
||||||
CookDataNotifyOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use CookDataNotify.newBuilder() to construct.
|
|
||||||
private CookDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private CookDataNotify() {
|
|
||||||
recipeDataList_ = java.util.Collections.emptyList();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new CookDataNotify();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private CookDataNotify(
|
|
||||||
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 18: {
|
|
||||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
|
||||||
recipeDataList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData>();
|
|
||||||
mutable_bitField0_ |= 0x00000001;
|
|
||||||
}
|
|
||||||
recipeDataList_.add(
|
|
||||||
input.readMessage(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.parser(), extensionRegistry));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 88: {
|
|
||||||
|
|
||||||
grade_ = 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)) {
|
|
||||||
recipeDataList_ = java.util.Collections.unmodifiableList(recipeDataList_);
|
|
||||||
}
|
|
||||||
this.unknownFields = unknownFields.build();
|
|
||||||
makeExtensionsImmutable();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.class, emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RECIPE_DATA_LIST_FIELD_NUMBER = 2;
|
|
||||||
private java.util.List<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData> recipeDataList_;
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public java.util.List<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData> getRecipeDataListList() {
|
|
||||||
return recipeDataList_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public java.util.List<? extends emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>
|
|
||||||
getRecipeDataListOrBuilderList() {
|
|
||||||
return recipeDataList_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeDataListCount() {
|
|
||||||
return recipeDataList_.size();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeDataList(int index) {
|
|
||||||
return recipeDataList_.get(index);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataListOrBuilder(
|
|
||||||
int index) {
|
|
||||||
return recipeDataList_.get(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int GRADE_FIELD_NUMBER = 11;
|
|
||||||
private int grade_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 grade = 11;</code>
|
|
||||||
* @return The grade.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getGrade() {
|
|
||||||
return grade_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 < recipeDataList_.size(); i++) {
|
|
||||||
output.writeMessage(2, recipeDataList_.get(i));
|
|
||||||
}
|
|
||||||
if (grade_ != 0) {
|
|
||||||
output.writeUInt32(11, grade_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
for (int i = 0; i < recipeDataList_.size(); i++) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeMessageSize(2, recipeDataList_.get(i));
|
|
||||||
}
|
|
||||||
if (grade_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(11, grade_);
|
|
||||||
}
|
|
||||||
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.CookDataNotifyOuterClass.CookDataNotify)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify other = (emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify) obj;
|
|
||||||
|
|
||||||
if (!getRecipeDataListList()
|
|
||||||
.equals(other.getRecipeDataListList())) return false;
|
|
||||||
if (getGrade()
|
|
||||||
!= other.getGrade()) 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 (getRecipeDataListCount() > 0) {
|
|
||||||
hash = (37 * hash) + RECIPE_DATA_LIST_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getRecipeDataListList().hashCode();
|
|
||||||
}
|
|
||||||
hash = (37 * hash) + GRADE_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getGrade();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify 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.CookDataNotifyOuterClass.CookDataNotify parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify 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.CookDataNotifyOuterClass.CookDataNotify parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify 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.CookDataNotifyOuterClass.CookDataNotify parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify 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.CookDataNotifyOuterClass.CookDataNotify parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify 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.CookDataNotifyOuterClass.CookDataNotify 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: 195
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code CookDataNotify}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:CookDataNotify)
|
|
||||||
emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotifyOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.class, emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.newBuilder()
|
|
||||||
private Builder() {
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
|
|
||||||
private Builder(
|
|
||||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
||||||
super(parent);
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
private void maybeForceBuilderInitialization() {
|
|
||||||
if (com.google.protobuf.GeneratedMessageV3
|
|
||||||
.alwaysUseFieldBuilders) {
|
|
||||||
getRecipeDataListFieldBuilder();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clear() {
|
|
||||||
super.clear();
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
recipeDataList_ = java.util.Collections.emptyList();
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.clear();
|
|
||||||
}
|
|
||||||
grade_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.CookDataNotifyOuterClass.internal_static_CookDataNotify_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify build() {
|
|
||||||
emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify result = new emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify(this);
|
|
||||||
int from_bitField0_ = bitField0_;
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
if (((bitField0_ & 0x00000001) != 0)) {
|
|
||||||
recipeDataList_ = java.util.Collections.unmodifiableList(recipeDataList_);
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
}
|
|
||||||
result.recipeDataList_ = recipeDataList_;
|
|
||||||
} else {
|
|
||||||
result.recipeDataList_ = recipeDataListBuilder_.build();
|
|
||||||
}
|
|
||||||
result.grade_ = grade_;
|
|
||||||
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.CookDataNotifyOuterClass.CookDataNotify) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify.getDefaultInstance()) return this;
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
if (!other.recipeDataList_.isEmpty()) {
|
|
||||||
if (recipeDataList_.isEmpty()) {
|
|
||||||
recipeDataList_ = other.recipeDataList_;
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
} else {
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.addAll(other.recipeDataList_);
|
|
||||||
}
|
|
||||||
onChanged();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (!other.recipeDataList_.isEmpty()) {
|
|
||||||
if (recipeDataListBuilder_.isEmpty()) {
|
|
||||||
recipeDataListBuilder_.dispose();
|
|
||||||
recipeDataListBuilder_ = null;
|
|
||||||
recipeDataList_ = other.recipeDataList_;
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
recipeDataListBuilder_ =
|
|
||||||
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
|
||||||
getRecipeDataListFieldBuilder() : null;
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.addAllMessages(other.recipeDataList_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (other.getGrade() != 0) {
|
|
||||||
setGrade(other.getGrade());
|
|
||||||
}
|
|
||||||
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.CookDataNotifyOuterClass.CookDataNotify parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
private int bitField0_;
|
|
||||||
|
|
||||||
private java.util.List<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData> recipeDataList_ =
|
|
||||||
java.util.Collections.emptyList();
|
|
||||||
private void ensureRecipeDataListIsMutable() {
|
|
||||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
|
||||||
recipeDataList_ = new java.util.ArrayList<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData>(recipeDataList_);
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> recipeDataListBuilder_;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public java.util.List<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData> getRecipeDataListList() {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
return java.util.Collections.unmodifiableList(recipeDataList_);
|
|
||||||
} else {
|
|
||||||
return recipeDataListBuilder_.getMessageList();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public int getRecipeDataListCount() {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
return recipeDataList_.size();
|
|
||||||
} else {
|
|
||||||
return recipeDataListBuilder_.getCount();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeDataList(int index) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
return recipeDataList_.get(index);
|
|
||||||
} else {
|
|
||||||
return recipeDataListBuilder_.getMessage(index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder setRecipeDataList(
|
|
||||||
int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.set(index, value);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.setMessage(index, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder setRecipeDataList(
|
|
||||||
int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.set(index, builderForValue.build());
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.setMessage(index, builderForValue.build());
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder addRecipeDataList(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.add(value);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.addMessage(value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder addRecipeDataList(
|
|
||||||
int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.add(index, value);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.addMessage(index, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder addRecipeDataList(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.add(builderForValue.build());
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.addMessage(builderForValue.build());
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder addRecipeDataList(
|
|
||||||
int index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.add(index, builderForValue.build());
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.addMessage(index, builderForValue.build());
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder addAllRecipeDataList(
|
|
||||||
java.lang.Iterable<? extends emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData> values) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
|
||||||
values, recipeDataList_);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.addAllMessages(values);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearRecipeDataList() {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
recipeDataList_ = java.util.Collections.emptyList();
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.clear();
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder removeRecipeDataList(int index) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
ensureRecipeDataListIsMutable();
|
|
||||||
recipeDataList_.remove(index);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataListBuilder_.remove(index);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder getRecipeDataListBuilder(
|
|
||||||
int index) {
|
|
||||||
return getRecipeDataListFieldBuilder().getBuilder(index);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataListOrBuilder(
|
|
||||||
int index) {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
return recipeDataList_.get(index); } else {
|
|
||||||
return recipeDataListBuilder_.getMessageOrBuilder(index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public java.util.List<? extends emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>
|
|
||||||
getRecipeDataListOrBuilderList() {
|
|
||||||
if (recipeDataListBuilder_ != null) {
|
|
||||||
return recipeDataListBuilder_.getMessageOrBuilderList();
|
|
||||||
} else {
|
|
||||||
return java.util.Collections.unmodifiableList(recipeDataList_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder addRecipeDataListBuilder() {
|
|
||||||
return getRecipeDataListFieldBuilder().addBuilder(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance());
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder addRecipeDataListBuilder(
|
|
||||||
int index) {
|
|
||||||
return getRecipeDataListFieldBuilder().addBuilder(
|
|
||||||
index, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance());
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .CookRecipeData recipe_data_list = 2;</code>
|
|
||||||
*/
|
|
||||||
public java.util.List<emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder>
|
|
||||||
getRecipeDataListBuilderList() {
|
|
||||||
return getRecipeDataListFieldBuilder().getBuilderList();
|
|
||||||
}
|
|
||||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>
|
|
||||||
getRecipeDataListFieldBuilder() {
|
|
||||||
if (recipeDataListBuilder_ == null) {
|
|
||||||
recipeDataListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>(
|
|
||||||
recipeDataList_,
|
|
||||||
((bitField0_ & 0x00000001) != 0),
|
|
||||||
getParentForChildren(),
|
|
||||||
isClean());
|
|
||||||
recipeDataList_ = null;
|
|
||||||
}
|
|
||||||
return recipeDataListBuilder_;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int grade_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 grade = 11;</code>
|
|
||||||
* @return The grade.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getGrade() {
|
|
||||||
return grade_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 grade = 11;</code>
|
|
||||||
* @param value The grade to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setGrade(int value) {
|
|
||||||
|
|
||||||
grade_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 grade = 11;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearGrade() {
|
|
||||||
|
|
||||||
grade_ = 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:CookDataNotify)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:CookDataNotify)
|
|
||||||
private static final emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<CookDataNotify>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<CookDataNotify>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public CookDataNotify parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new CookDataNotify(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<CookDataNotify> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<CookDataNotify> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_CookDataNotify_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_CookDataNotify_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\024CookDataNotify.proto\032\024CookRecipeData.p" +
|
|
||||||
"roto\"J\n\016CookDataNotify\022)\n\020recipe_data_li" +
|
|
||||||
"st\030\002 \003(\0132\017.CookRecipeData\022\r\n\005grade\030\013 \001(\r" +
|
|
||||||
"B\033\n\031emu.grasscutter.net.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(),
|
|
||||||
});
|
|
||||||
internal_static_CookDataNotify_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_CookDataNotify_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_CookDataNotify_descriptor,
|
|
||||||
new java.lang.String[] { "RecipeDataList", "Grade", });
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor();
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,686 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: CookRecipeDataNotify.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class CookRecipeDataNotifyOuterClass {
|
|
||||||
private CookRecipeDataNotifyOuterClass() {}
|
|
||||||
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 CookRecipeDataNotifyOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:CookRecipeDataNotify)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
* @return Whether the recipeData field is set.
|
|
||||||
*/
|
|
||||||
boolean hasRecipeData();
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
* @return The recipeData.
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData();
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 106
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code CookRecipeDataNotify}
|
|
||||||
*/
|
|
||||||
public static final class CookRecipeDataNotify extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:CookRecipeDataNotify)
|
|
||||||
CookRecipeDataNotifyOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use CookRecipeDataNotify.newBuilder() to construct.
|
|
||||||
private CookRecipeDataNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private CookRecipeDataNotify() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new CookRecipeDataNotify();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private CookRecipeDataNotify(
|
|
||||||
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 34: {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder subBuilder = null;
|
|
||||||
if (recipeData_ != null) {
|
|
||||||
subBuilder = recipeData_.toBuilder();
|
|
||||||
}
|
|
||||||
recipeData_ = input.readMessage(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.parser(), extensionRegistry);
|
|
||||||
if (subBuilder != null) {
|
|
||||||
subBuilder.mergeFrom(recipeData_);
|
|
||||||
recipeData_ = subBuilder.buildPartial();
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default: {
|
|
||||||
if (!parseUnknownField(
|
|
||||||
input, unknownFields, extensionRegistry, tag)) {
|
|
||||||
done = true;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
throw e.setUnfinishedMessage(this);
|
|
||||||
} catch (java.io.IOException e) {
|
|
||||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
||||||
e).setUnfinishedMessage(this);
|
|
||||||
} finally {
|
|
||||||
this.unknownFields = unknownFields.build();
|
|
||||||
makeExtensionsImmutable();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.class, emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RECIPE_DATA_FIELD_NUMBER = 4;
|
|
||||||
private emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData recipeData_;
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
* @return Whether the recipeData field is set.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public boolean hasRecipeData() {
|
|
||||||
return recipeData_ != null;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
* @return The recipeData.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData() {
|
|
||||||
return recipeData_ == null ? emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder() {
|
|
||||||
return getRecipeData();
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (recipeData_ != null) {
|
|
||||||
output.writeMessage(4, getRecipeData());
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (recipeData_ != null) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeMessageSize(4, getRecipeData());
|
|
||||||
}
|
|
||||||
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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify other = (emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify) obj;
|
|
||||||
|
|
||||||
if (hasRecipeData() != other.hasRecipeData()) return false;
|
|
||||||
if (hasRecipeData()) {
|
|
||||||
if (!getRecipeData()
|
|
||||||
.equals(other.getRecipeData())) 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 (hasRecipeData()) {
|
|
||||||
hash = (37 * hash) + RECIPE_DATA_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getRecipeData().hashCode();
|
|
||||||
}
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify 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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify 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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify 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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify 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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify 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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify 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: 106
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code CookRecipeDataNotify}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:CookRecipeDataNotify)
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotifyOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.class, emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.newBuilder()
|
|
||||||
private Builder() {
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
|
|
||||||
private Builder(
|
|
||||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
||||||
super(parent);
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
private void maybeForceBuilderInitialization() {
|
|
||||||
if (com.google.protobuf.GeneratedMessageV3
|
|
||||||
.alwaysUseFieldBuilders) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clear() {
|
|
||||||
super.clear();
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
recipeData_ = null;
|
|
||||||
} else {
|
|
||||||
recipeData_ = null;
|
|
||||||
recipeDataBuilder_ = null;
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.internal_static_CookRecipeDataNotify_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify build() {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify result = new emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify(this);
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
result.recipeData_ = recipeData_;
|
|
||||||
} else {
|
|
||||||
result.recipeData_ = recipeDataBuilder_.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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify.getDefaultInstance()) return this;
|
|
||||||
if (other.hasRecipeData()) {
|
|
||||||
mergeRecipeData(other.getRecipeData());
|
|
||||||
}
|
|
||||||
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.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData recipeData_;
|
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder> recipeDataBuilder_;
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
* @return Whether the recipeData field is set.
|
|
||||||
*/
|
|
||||||
public boolean hasRecipeData() {
|
|
||||||
return recipeDataBuilder_ != null || recipeData_ != null;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
* @return The recipeData.
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getRecipeData() {
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
return recipeData_ == null ? emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_;
|
|
||||||
} else {
|
|
||||||
return recipeDataBuilder_.getMessage();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
public Builder setRecipeData(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) {
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
recipeData_ = value;
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataBuilder_.setMessage(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
public Builder setRecipeData(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder builderForValue) {
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
recipeData_ = builderForValue.build();
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataBuilder_.setMessage(builderForValue.build());
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
public Builder mergeRecipeData(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData value) {
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
if (recipeData_ != null) {
|
|
||||||
recipeData_ =
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.newBuilder(recipeData_).mergeFrom(value).buildPartial();
|
|
||||||
} else {
|
|
||||||
recipeData_ = value;
|
|
||||||
}
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeDataBuilder_.mergeFrom(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearRecipeData() {
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
recipeData_ = null;
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
recipeData_ = null;
|
|
||||||
recipeDataBuilder_ = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder getRecipeDataBuilder() {
|
|
||||||
|
|
||||||
onChanged();
|
|
||||||
return getRecipeDataFieldBuilder().getBuilder();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder getRecipeDataOrBuilder() {
|
|
||||||
if (recipeDataBuilder_ != null) {
|
|
||||||
return recipeDataBuilder_.getMessageOrBuilder();
|
|
||||||
} else {
|
|
||||||
return recipeData_ == null ?
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance() : recipeData_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CookRecipeData recipe_data = 4;</code>
|
|
||||||
*/
|
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>
|
|
||||||
getRecipeDataFieldBuilder() {
|
|
||||||
if (recipeDataBuilder_ == null) {
|
|
||||||
recipeDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder>(
|
|
||||||
getRecipeData(),
|
|
||||||
getParentForChildren(),
|
|
||||||
isClean());
|
|
||||||
recipeData_ = null;
|
|
||||||
}
|
|
||||||
return recipeDataBuilder_;
|
|
||||||
}
|
|
||||||
@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:CookRecipeDataNotify)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:CookRecipeDataNotify)
|
|
||||||
private static final emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<CookRecipeDataNotify>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<CookRecipeDataNotify>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public CookRecipeDataNotify parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new CookRecipeDataNotify(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<CookRecipeDataNotify> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<CookRecipeDataNotify> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_CookRecipeDataNotify_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_CookRecipeDataNotify_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\032CookRecipeDataNotify.proto\032\024CookRecipe" +
|
|
||||||
"Data.proto\"<\n\024CookRecipeDataNotify\022$\n\013re" +
|
|
||||||
"cipe_data\030\004 \001(\0132\017.CookRecipeDataB\033\n\031emu." +
|
|
||||||
"grasscutter.net.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor(),
|
|
||||||
});
|
|
||||||
internal_static_CookRecipeDataNotify_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_CookRecipeDataNotify_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_CookRecipeDataNotify_descriptor,
|
|
||||||
new java.lang.String[] { "RecipeData", });
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.getDescriptor();
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,606 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: CookRecipeData.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class CookRecipeDataOuterClass {
|
|
||||||
private CookRecipeDataOuterClass() {}
|
|
||||||
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 CookRecipeDataOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:CookRecipeData)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 proficiency = 13;</code>
|
|
||||||
* @return The proficiency.
|
|
||||||
*/
|
|
||||||
int getProficiency();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 9;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
int getRecipeId();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Protobuf type {@code CookRecipeData}
|
|
||||||
*/
|
|
||||||
public static final class CookRecipeData extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:CookRecipeData)
|
|
||||||
CookRecipeDataOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use CookRecipeData.newBuilder() to construct.
|
|
||||||
private CookRecipeData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private CookRecipeData() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new CookRecipeData();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private CookRecipeData(
|
|
||||||
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 72: {
|
|
||||||
|
|
||||||
recipeId_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 104: {
|
|
||||||
|
|
||||||
proficiency_ = 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.CookRecipeDataOuterClass.internal_static_CookRecipeData_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.class, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int PROFICIENCY_FIELD_NUMBER = 13;
|
|
||||||
private int proficiency_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 proficiency = 13;</code>
|
|
||||||
* @return The proficiency.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getProficiency() {
|
|
||||||
return proficiency_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RECIPE_ID_FIELD_NUMBER = 9;
|
|
||||||
private int recipeId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 9;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeId() {
|
|
||||||
return recipeId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (recipeId_ != 0) {
|
|
||||||
output.writeUInt32(9, recipeId_);
|
|
||||||
}
|
|
||||||
if (proficiency_ != 0) {
|
|
||||||
output.writeUInt32(13, proficiency_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (recipeId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(9, recipeId_);
|
|
||||||
}
|
|
||||||
if (proficiency_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(13, proficiency_);
|
|
||||||
}
|
|
||||||
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.CookRecipeDataOuterClass.CookRecipeData)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData other = (emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData) obj;
|
|
||||||
|
|
||||||
if (getProficiency()
|
|
||||||
!= other.getProficiency()) return false;
|
|
||||||
if (getRecipeId()
|
|
||||||
!= other.getRecipeId()) 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) + PROFICIENCY_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getProficiency();
|
|
||||||
hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getRecipeId();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData 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.CookRecipeDataOuterClass.CookRecipeData parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData 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.CookRecipeDataOuterClass.CookRecipeData parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData 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.CookRecipeDataOuterClass.CookRecipeData parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData 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.CookRecipeDataOuterClass.CookRecipeData parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData 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.CookRecipeDataOuterClass.CookRecipeData 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 CookRecipeData}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:CookRecipeData)
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeDataOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.class, emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.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();
|
|
||||||
proficiency_ = 0;
|
|
||||||
|
|
||||||
recipeId_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataOuterClass.internal_static_CookRecipeData_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData build() {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData result = new emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData(this);
|
|
||||||
result.proficiency_ = proficiency_;
|
|
||||||
result.recipeId_ = recipeId_;
|
|
||||||
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.CookRecipeDataOuterClass.CookRecipeData) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData.getDefaultInstance()) return this;
|
|
||||||
if (other.getProficiency() != 0) {
|
|
||||||
setProficiency(other.getProficiency());
|
|
||||||
}
|
|
||||||
if (other.getRecipeId() != 0) {
|
|
||||||
setRecipeId(other.getRecipeId());
|
|
||||||
}
|
|
||||||
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.CookRecipeDataOuterClass.CookRecipeData parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int proficiency_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 proficiency = 13;</code>
|
|
||||||
* @return The proficiency.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getProficiency() {
|
|
||||||
return proficiency_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 proficiency = 13;</code>
|
|
||||||
* @param value The proficiency to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setProficiency(int value) {
|
|
||||||
|
|
||||||
proficiency_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 proficiency = 13;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearProficiency() {
|
|
||||||
|
|
||||||
proficiency_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int recipeId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 9;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeId() {
|
|
||||||
return recipeId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 9;</code>
|
|
||||||
* @param value The recipeId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setRecipeId(int value) {
|
|
||||||
|
|
||||||
recipeId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 9;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearRecipeId() {
|
|
||||||
|
|
||||||
recipeId_ = 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:CookRecipeData)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:CookRecipeData)
|
|
||||||
private static final emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<CookRecipeData>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<CookRecipeData>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public CookRecipeData parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new CookRecipeData(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<CookRecipeData> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<CookRecipeData> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_CookRecipeData_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_CookRecipeData_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\024CookRecipeData.proto\"8\n\016CookRecipeData" +
|
|
||||||
"\022\023\n\013proficiency\030\r \001(\r\022\021\n\trecipe_id\030\t \001(\r" +
|
|
||||||
"B\033\n\031emu.grasscutter.net.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_CookRecipeData_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_CookRecipeData_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_CookRecipeData_descriptor,
|
|
||||||
new java.lang.String[] { "Proficiency", "RecipeId", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,480 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: GetCompoundDataReq.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class GetCompoundDataReqOuterClass {
|
|
||||||
private GetCompoundDataReqOuterClass() {}
|
|
||||||
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 GetCompoundDataReqOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:GetCompoundDataReq)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 141
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code GetCompoundDataReq}
|
|
||||||
*/
|
|
||||||
public static final class GetCompoundDataReq extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:GetCompoundDataReq)
|
|
||||||
GetCompoundDataReqOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use GetCompoundDataReq.newBuilder() to construct.
|
|
||||||
private GetCompoundDataReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private GetCompoundDataReq() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new GetCompoundDataReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private GetCompoundDataReq(
|
|
||||||
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.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.class, emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.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.GetCompoundDataReqOuterClass.GetCompoundDataReq)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq other = (emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq) 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.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq 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.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq 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.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq 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.GetCompoundDataReqOuterClass.GetCompoundDataReq parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq 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.GetCompoundDataReqOuterClass.GetCompoundDataReq parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq 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.GetCompoundDataReqOuterClass.GetCompoundDataReq 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: 141
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code GetCompoundDataReq}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:GetCompoundDataReq)
|
|
||||||
emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReqOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.class, emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.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.GetCompoundDataReqOuterClass.internal_static_GetCompoundDataReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq build() {
|
|
||||||
emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq result = new emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq(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.GetCompoundDataReqOuterClass.GetCompoundDataReq) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq.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.GetCompoundDataReqOuterClass.GetCompoundDataReq parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq) 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:GetCompoundDataReq)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:GetCompoundDataReq)
|
|
||||||
private static final emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<GetCompoundDataReq>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<GetCompoundDataReq>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public GetCompoundDataReq parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new GetCompoundDataReq(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<GetCompoundDataReq> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<GetCompoundDataReq> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_GetCompoundDataReq_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_GetCompoundDataReq_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\030GetCompoundDataReq.proto\"\024\n\022GetCompoun" +
|
|
||||||
"dDataReqB\033\n\031emu.grasscutter.net.protob\006p" +
|
|
||||||
"roto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_GetCompoundDataReq_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_GetCompoundDataReq_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_GetCompoundDataReq_descriptor,
|
|
||||||
new java.lang.String[] { });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,621 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: PlayerCompoundMaterialReq.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class PlayerCompoundMaterialReqOuterClass {
|
|
||||||
private PlayerCompoundMaterialReqOuterClass() {}
|
|
||||||
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 PlayerCompoundMaterialReqOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:PlayerCompoundMaterialReq)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 count = 11;</code>
|
|
||||||
* @return The count.
|
|
||||||
*/
|
|
||||||
int getCount();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 3;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
int getCompoundId();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 150
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCompoundMaterialReq}
|
|
||||||
*/
|
|
||||||
public static final class PlayerCompoundMaterialReq extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:PlayerCompoundMaterialReq)
|
|
||||||
PlayerCompoundMaterialReqOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use PlayerCompoundMaterialReq.newBuilder() to construct.
|
|
||||||
private PlayerCompoundMaterialReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private PlayerCompoundMaterialReq() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new PlayerCompoundMaterialReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private PlayerCompoundMaterialReq(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
this();
|
|
||||||
if (extensionRegistry == null) {
|
|
||||||
throw new java.lang.NullPointerException();
|
|
||||||
}
|
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
||||||
try {
|
|
||||||
boolean done = false;
|
|
||||||
while (!done) {
|
|
||||||
int tag = input.readTag();
|
|
||||||
switch (tag) {
|
|
||||||
case 0:
|
|
||||||
done = true;
|
|
||||||
break;
|
|
||||||
case 24: {
|
|
||||||
|
|
||||||
compoundId_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 88: {
|
|
||||||
|
|
||||||
count_ = 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.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.class, emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COUNT_FIELD_NUMBER = 11;
|
|
||||||
private int count_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 count = 11;</code>
|
|
||||||
* @return The count.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCount() {
|
|
||||||
return count_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COMPOUND_ID_FIELD_NUMBER = 3;
|
|
||||||
private int compoundId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 3;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundId() {
|
|
||||||
return compoundId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (compoundId_ != 0) {
|
|
||||||
output.writeUInt32(3, compoundId_);
|
|
||||||
}
|
|
||||||
if (count_ != 0) {
|
|
||||||
output.writeUInt32(11, count_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (compoundId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(3, compoundId_);
|
|
||||||
}
|
|
||||||
if (count_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(11, count_);
|
|
||||||
}
|
|
||||||
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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq other = (emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq) obj;
|
|
||||||
|
|
||||||
if (getCount()
|
|
||||||
!= other.getCount()) return false;
|
|
||||||
if (getCompoundId()
|
|
||||||
!= other.getCompoundId()) 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) + COUNT_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCount();
|
|
||||||
hash = (37 * hash) + COMPOUND_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCompoundId();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq 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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq 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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq 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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq 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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq 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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq 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: 150
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCompoundMaterialReq}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:PlayerCompoundMaterialReq)
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReqOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.class, emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.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();
|
|
||||||
count_ = 0;
|
|
||||||
|
|
||||||
compoundId_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.internal_static_PlayerCompoundMaterialReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq build() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq result = new emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq(this);
|
|
||||||
result.count_ = count_;
|
|
||||||
result.compoundId_ = compoundId_;
|
|
||||||
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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.getDefaultInstance()) return this;
|
|
||||||
if (other.getCount() != 0) {
|
|
||||||
setCount(other.getCount());
|
|
||||||
}
|
|
||||||
if (other.getCompoundId() != 0) {
|
|
||||||
setCompoundId(other.getCompoundId());
|
|
||||||
}
|
|
||||||
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.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int count_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 count = 11;</code>
|
|
||||||
* @return The count.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCount() {
|
|
||||||
return count_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 count = 11;</code>
|
|
||||||
* @param value The count to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setCount(int value) {
|
|
||||||
|
|
||||||
count_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 count = 11;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearCount() {
|
|
||||||
|
|
||||||
count_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int compoundId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 3;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundId() {
|
|
||||||
return compoundId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 3;</code>
|
|
||||||
* @param value The compoundId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setCompoundId(int value) {
|
|
||||||
|
|
||||||
compoundId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 3;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearCompoundId() {
|
|
||||||
|
|
||||||
compoundId_ = 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:PlayerCompoundMaterialReq)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:PlayerCompoundMaterialReq)
|
|
||||||
private static final emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<PlayerCompoundMaterialReq>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<PlayerCompoundMaterialReq>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public PlayerCompoundMaterialReq parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new PlayerCompoundMaterialReq(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<PlayerCompoundMaterialReq> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<PlayerCompoundMaterialReq> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_PlayerCompoundMaterialReq_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_PlayerCompoundMaterialReq_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\037PlayerCompoundMaterialReq.proto\"?\n\031Pla" +
|
|
||||||
"yerCompoundMaterialReq\022\r\n\005count\030\013 \001(\r\022\023\n" +
|
|
||||||
"\013compound_id\030\003 \001(\rB\033\n\031emu.grasscutter.ne" +
|
|
||||||
"t.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_PlayerCompoundMaterialReq_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_PlayerCompoundMaterialReq_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_PlayerCompoundMaterialReq_descriptor,
|
|
||||||
new java.lang.String[] { "Count", "CompoundId", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,755 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: PlayerCompoundMaterialRsp.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class PlayerCompoundMaterialRspOuterClass {
|
|
||||||
private PlayerCompoundMaterialRspOuterClass() {}
|
|
||||||
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 PlayerCompoundMaterialRspOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:PlayerCompoundMaterialRsp)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
* @return Whether the compoundQueData field is set.
|
|
||||||
*/
|
|
||||||
boolean hasCompoundQueData();
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
* @return The compoundQueData.
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueData();
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataOrBuilder();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 12;</code>
|
|
||||||
* @return The retcode.
|
|
||||||
*/
|
|
||||||
int getRetcode();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 143
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCompoundMaterialRsp}
|
|
||||||
*/
|
|
||||||
public static final class PlayerCompoundMaterialRsp extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:PlayerCompoundMaterialRsp)
|
|
||||||
PlayerCompoundMaterialRspOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use PlayerCompoundMaterialRsp.newBuilder() to construct.
|
|
||||||
private PlayerCompoundMaterialRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private PlayerCompoundMaterialRsp() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new PlayerCompoundMaterialRsp();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private PlayerCompoundMaterialRsp(
|
|
||||||
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 42: {
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder subBuilder = null;
|
|
||||||
if (compoundQueData_ != null) {
|
|
||||||
subBuilder = compoundQueData_.toBuilder();
|
|
||||||
}
|
|
||||||
compoundQueData_ = input.readMessage(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.parser(), extensionRegistry);
|
|
||||||
if (subBuilder != null) {
|
|
||||||
subBuilder.mergeFrom(compoundQueData_);
|
|
||||||
compoundQueData_ = subBuilder.buildPartial();
|
|
||||||
}
|
|
||||||
|
|
||||||
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.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.class, emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COMPOUND_QUE_DATA_FIELD_NUMBER = 5;
|
|
||||||
private emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData compoundQueData_;
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
* @return Whether the compoundQueData field is set.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public boolean hasCompoundQueData() {
|
|
||||||
return compoundQueData_ != null;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
* @return The compoundQueData.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueData() {
|
|
||||||
return compoundQueData_ == null ? emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance() : compoundQueData_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataOrBuilder() {
|
|
||||||
return getCompoundQueData();
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (compoundQueData_ != null) {
|
|
||||||
output.writeMessage(5, getCompoundQueData());
|
|
||||||
}
|
|
||||||
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 (compoundQueData_ != null) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeMessageSize(5, getCompoundQueData());
|
|
||||||
}
|
|
||||||
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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp other = (emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp) obj;
|
|
||||||
|
|
||||||
if (hasCompoundQueData() != other.hasCompoundQueData()) return false;
|
|
||||||
if (hasCompoundQueData()) {
|
|
||||||
if (!getCompoundQueData()
|
|
||||||
.equals(other.getCompoundQueData())) return false;
|
|
||||||
}
|
|
||||||
if (getRetcode()
|
|
||||||
!= other.getRetcode()) return false;
|
|
||||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int hashCode() {
|
|
||||||
if (memoizedHashCode != 0) {
|
|
||||||
return memoizedHashCode;
|
|
||||||
}
|
|
||||||
int hash = 41;
|
|
||||||
hash = (19 * hash) + getDescriptor().hashCode();
|
|
||||||
if (hasCompoundQueData()) {
|
|
||||||
hash = (37 * hash) + COMPOUND_QUE_DATA_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCompoundQueData().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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp 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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp 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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp 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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp 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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp 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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp 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: 143
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCompoundMaterialRsp}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:PlayerCompoundMaterialRsp)
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRspOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.class, emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.newBuilder()
|
|
||||||
private Builder() {
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
|
|
||||||
private Builder(
|
|
||||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
||||||
super(parent);
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
private void maybeForceBuilderInitialization() {
|
|
||||||
if (com.google.protobuf.GeneratedMessageV3
|
|
||||||
.alwaysUseFieldBuilders) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clear() {
|
|
||||||
super.clear();
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
compoundQueData_ = null;
|
|
||||||
} else {
|
|
||||||
compoundQueData_ = null;
|
|
||||||
compoundQueDataBuilder_ = null;
|
|
||||||
}
|
|
||||||
retcode_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.internal_static_PlayerCompoundMaterialRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp build() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp result = new emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp(this);
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
result.compoundQueData_ = compoundQueData_;
|
|
||||||
} else {
|
|
||||||
result.compoundQueData_ = compoundQueDataBuilder_.build();
|
|
||||||
}
|
|
||||||
result.retcode_ = retcode_;
|
|
||||||
onBuilt();
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clone() {
|
|
||||||
return super.clone();
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder setField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
||||||
java.lang.Object value) {
|
|
||||||
return super.setField(field, value);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clearField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
||||||
return super.clearField(field);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clearOneof(
|
|
||||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
||||||
return super.clearOneof(oneof);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder setRepeatedField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
||||||
int index, java.lang.Object value) {
|
|
||||||
return super.setRepeatedField(field, index, value);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder addRepeatedField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
||||||
java.lang.Object value) {
|
|
||||||
return super.addRepeatedField(field, value);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
||||||
if (other instanceof emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp.getDefaultInstance()) return this;
|
|
||||||
if (other.hasCompoundQueData()) {
|
|
||||||
mergeCompoundQueData(other.getCompoundQueData());
|
|
||||||
}
|
|
||||||
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.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData compoundQueData_;
|
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder> compoundQueDataBuilder_;
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
* @return Whether the compoundQueData field is set.
|
|
||||||
*/
|
|
||||||
public boolean hasCompoundQueData() {
|
|
||||||
return compoundQueDataBuilder_ != null || compoundQueData_ != null;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
* @return The compoundQueData.
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData getCompoundQueData() {
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
return compoundQueData_ == null ? emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance() : compoundQueData_;
|
|
||||||
} else {
|
|
||||||
return compoundQueDataBuilder_.getMessage();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
public Builder setCompoundQueData(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) {
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
compoundQueData_ = value;
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
compoundQueDataBuilder_.setMessage(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
public Builder setCompoundQueData(
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder builderForValue) {
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
compoundQueData_ = builderForValue.build();
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
compoundQueDataBuilder_.setMessage(builderForValue.build());
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
public Builder mergeCompoundQueData(emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData value) {
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
if (compoundQueData_ != null) {
|
|
||||||
compoundQueData_ =
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.newBuilder(compoundQueData_).mergeFrom(value).buildPartial();
|
|
||||||
} else {
|
|
||||||
compoundQueData_ = value;
|
|
||||||
}
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
compoundQueDataBuilder_.mergeFrom(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearCompoundQueData() {
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
compoundQueData_ = null;
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
compoundQueData_ = null;
|
|
||||||
compoundQueDataBuilder_ = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder getCompoundQueDataBuilder() {
|
|
||||||
|
|
||||||
onChanged();
|
|
||||||
return getCompoundQueDataFieldBuilder().getBuilder();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder getCompoundQueDataOrBuilder() {
|
|
||||||
if (compoundQueDataBuilder_ != null) {
|
|
||||||
return compoundQueDataBuilder_.getMessageOrBuilder();
|
|
||||||
} else {
|
|
||||||
return compoundQueData_ == null ?
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.getDefaultInstance() : compoundQueData_;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.CompoundQueueData compound_que_data = 5;</code>
|
|
||||||
*/
|
|
||||||
private com.google.protobuf.SingleFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder>
|
|
||||||
getCompoundQueDataFieldBuilder() {
|
|
||||||
if (compoundQueDataBuilder_ == null) {
|
|
||||||
compoundQueDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData.Builder, emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueDataOrBuilder>(
|
|
||||||
getCompoundQueData(),
|
|
||||||
getParentForChildren(),
|
|
||||||
isClean());
|
|
||||||
compoundQueData_ = null;
|
|
||||||
}
|
|
||||||
return compoundQueDataBuilder_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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:PlayerCompoundMaterialRsp)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:PlayerCompoundMaterialRsp)
|
|
||||||
private static final emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<PlayerCompoundMaterialRsp>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<PlayerCompoundMaterialRsp>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public PlayerCompoundMaterialRsp parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new PlayerCompoundMaterialRsp(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<PlayerCompoundMaterialRsp> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<PlayerCompoundMaterialRsp> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_PlayerCompoundMaterialRsp_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_PlayerCompoundMaterialRsp_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\037PlayerCompoundMaterialRsp.proto\032\027Compo" +
|
|
||||||
"undQueueData.proto\"[\n\031PlayerCompoundMate" +
|
|
||||||
"rialRsp\022-\n\021compound_que_data\030\005 \001(\0132\022.Com" +
|
|
||||||
"poundQueueData\022\017\n\007retcode\030\014 \001(\005B\033\n\031emu.g" +
|
|
||||||
"rasscutter.net.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor(),
|
|
||||||
});
|
|
||||||
internal_static_PlayerCompoundMaterialRsp_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_PlayerCompoundMaterialRsp_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_PlayerCompoundMaterialRsp_descriptor,
|
|
||||||
new java.lang.String[] { "CompoundQueData", "Retcode", });
|
|
||||||
emu.grasscutter.net.proto.CompoundQueueDataOuterClass.getDescriptor();
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,621 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: PlayerCookArgsReq.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class PlayerCookArgsReqOuterClass {
|
|
||||||
private PlayerCookArgsReqOuterClass() {}
|
|
||||||
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 PlayerCookArgsReqOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:PlayerCookArgsReq)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 10;</code>
|
|
||||||
* @return The assistAvatar.
|
|
||||||
*/
|
|
||||||
int getAssistAvatar();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 11;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
int getRecipeId();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 166
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCookArgsReq}
|
|
||||||
*/
|
|
||||||
public static final class PlayerCookArgsReq extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:PlayerCookArgsReq)
|
|
||||||
PlayerCookArgsReqOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use PlayerCookArgsReq.newBuilder() to construct.
|
|
||||||
private PlayerCookArgsReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private PlayerCookArgsReq() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new PlayerCookArgsReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private PlayerCookArgsReq(
|
|
||||||
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 80: {
|
|
||||||
|
|
||||||
assistAvatar_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 88: {
|
|
||||||
|
|
||||||
recipeId_ = 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.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.class, emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int ASSIST_AVATAR_FIELD_NUMBER = 10;
|
|
||||||
private int assistAvatar_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 10;</code>
|
|
||||||
* @return The assistAvatar.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getAssistAvatar() {
|
|
||||||
return assistAvatar_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RECIPE_ID_FIELD_NUMBER = 11;
|
|
||||||
private int recipeId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 11;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeId() {
|
|
||||||
return recipeId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (assistAvatar_ != 0) {
|
|
||||||
output.writeUInt32(10, assistAvatar_);
|
|
||||||
}
|
|
||||||
if (recipeId_ != 0) {
|
|
||||||
output.writeUInt32(11, recipeId_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (assistAvatar_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(10, assistAvatar_);
|
|
||||||
}
|
|
||||||
if (recipeId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(11, recipeId_);
|
|
||||||
}
|
|
||||||
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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq other = (emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq) obj;
|
|
||||||
|
|
||||||
if (getAssistAvatar()
|
|
||||||
!= other.getAssistAvatar()) return false;
|
|
||||||
if (getRecipeId()
|
|
||||||
!= other.getRecipeId()) 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) + ASSIST_AVATAR_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getAssistAvatar();
|
|
||||||
hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getRecipeId();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq 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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq 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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq 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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq 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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq 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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq 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: 166
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCookArgsReq}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:PlayerCookArgsReq)
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReqOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.class, emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.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();
|
|
||||||
assistAvatar_ = 0;
|
|
||||||
|
|
||||||
recipeId_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.internal_static_PlayerCookArgsReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq build() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq result = new emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq(this);
|
|
||||||
result.assistAvatar_ = assistAvatar_;
|
|
||||||
result.recipeId_ = recipeId_;
|
|
||||||
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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq.getDefaultInstance()) return this;
|
|
||||||
if (other.getAssistAvatar() != 0) {
|
|
||||||
setAssistAvatar(other.getAssistAvatar());
|
|
||||||
}
|
|
||||||
if (other.getRecipeId() != 0) {
|
|
||||||
setRecipeId(other.getRecipeId());
|
|
||||||
}
|
|
||||||
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.PlayerCookArgsReqOuterClass.PlayerCookArgsReq parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int assistAvatar_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 10;</code>
|
|
||||||
* @return The assistAvatar.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getAssistAvatar() {
|
|
||||||
return assistAvatar_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 10;</code>
|
|
||||||
* @param value The assistAvatar to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setAssistAvatar(int value) {
|
|
||||||
|
|
||||||
assistAvatar_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 10;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearAssistAvatar() {
|
|
||||||
|
|
||||||
assistAvatar_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int recipeId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 11;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeId() {
|
|
||||||
return recipeId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 11;</code>
|
|
||||||
* @param value The recipeId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setRecipeId(int value) {
|
|
||||||
|
|
||||||
recipeId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 11;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearRecipeId() {
|
|
||||||
|
|
||||||
recipeId_ = 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:PlayerCookArgsReq)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:PlayerCookArgsReq)
|
|
||||||
private static final emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<PlayerCookArgsReq>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<PlayerCookArgsReq>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public PlayerCookArgsReq parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new PlayerCookArgsReq(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<PlayerCookArgsReq> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<PlayerCookArgsReq> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_PlayerCookArgsReq_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_PlayerCookArgsReq_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\027PlayerCookArgsReq.proto\"=\n\021PlayerCookA" +
|
|
||||||
"rgsReq\022\025\n\rassist_avatar\030\n \001(\r\022\021\n\trecipe_" +
|
|
||||||
"id\030\013 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" +
|
|
||||||
"roto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_PlayerCookArgsReq_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_PlayerCookArgsReq_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_PlayerCookArgsReq_descriptor,
|
|
||||||
new java.lang.String[] { "AssistAvatar", "RecipeId", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,623 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: PlayerCookArgsRsp.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class PlayerCookArgsRspOuterClass {
|
|
||||||
private PlayerCookArgsRspOuterClass() {}
|
|
||||||
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 PlayerCookArgsRspOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:PlayerCookArgsRsp)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 4;</code>
|
|
||||||
* @return The retcode.
|
|
||||||
*/
|
|
||||||
int getRetcode();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>float qte_range_ratio = 12;</code>
|
|
||||||
* @return The qteRangeRatio.
|
|
||||||
*/
|
|
||||||
float getQteRangeRatio();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 168
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCookArgsRsp}
|
|
||||||
*/
|
|
||||||
public static final class PlayerCookArgsRsp extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:PlayerCookArgsRsp)
|
|
||||||
PlayerCookArgsRspOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use PlayerCookArgsRsp.newBuilder() to construct.
|
|
||||||
private PlayerCookArgsRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private PlayerCookArgsRsp() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new PlayerCookArgsRsp();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private PlayerCookArgsRsp(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
this();
|
|
||||||
if (extensionRegistry == null) {
|
|
||||||
throw new java.lang.NullPointerException();
|
|
||||||
}
|
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
||||||
try {
|
|
||||||
boolean done = false;
|
|
||||||
while (!done) {
|
|
||||||
int tag = input.readTag();
|
|
||||||
switch (tag) {
|
|
||||||
case 0:
|
|
||||||
done = true;
|
|
||||||
break;
|
|
||||||
case 32: {
|
|
||||||
|
|
||||||
retcode_ = input.readInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 101: {
|
|
||||||
|
|
||||||
qteRangeRatio_ = input.readFloat();
|
|
||||||
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.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.class, emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RETCODE_FIELD_NUMBER = 4;
|
|
||||||
private int retcode_;
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 4;</code>
|
|
||||||
* @return The retcode.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRetcode() {
|
|
||||||
return retcode_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int QTE_RANGE_RATIO_FIELD_NUMBER = 12;
|
|
||||||
private float qteRangeRatio_;
|
|
||||||
/**
|
|
||||||
* <code>float qte_range_ratio = 12;</code>
|
|
||||||
* @return The qteRangeRatio.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public float getQteRangeRatio() {
|
|
||||||
return qteRangeRatio_;
|
|
||||||
}
|
|
||||||
|
|
||||||
private byte memoizedIsInitialized = -1;
|
|
||||||
@java.lang.Override
|
|
||||||
public final boolean isInitialized() {
|
|
||||||
byte isInitialized = memoizedIsInitialized;
|
|
||||||
if (isInitialized == 1) return true;
|
|
||||||
if (isInitialized == 0) return false;
|
|
||||||
|
|
||||||
memoizedIsInitialized = 1;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
||||||
throws java.io.IOException {
|
|
||||||
if (retcode_ != 0) {
|
|
||||||
output.writeInt32(4, retcode_);
|
|
||||||
}
|
|
||||||
if (qteRangeRatio_ != 0F) {
|
|
||||||
output.writeFloat(12, qteRangeRatio_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (retcode_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeInt32Size(4, retcode_);
|
|
||||||
}
|
|
||||||
if (qteRangeRatio_ != 0F) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeFloatSize(12, qteRangeRatio_);
|
|
||||||
}
|
|
||||||
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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp other = (emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp) obj;
|
|
||||||
|
|
||||||
if (getRetcode()
|
|
||||||
!= other.getRetcode()) return false;
|
|
||||||
if (java.lang.Float.floatToIntBits(getQteRangeRatio())
|
|
||||||
!= java.lang.Float.floatToIntBits(
|
|
||||||
other.getQteRangeRatio())) 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) + QTE_RANGE_RATIO_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + java.lang.Float.floatToIntBits(
|
|
||||||
getQteRangeRatio());
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp 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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp 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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp 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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp 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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp 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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp 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: 168
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCookArgsRsp}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:PlayerCookArgsRsp)
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRspOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.class, emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.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;
|
|
||||||
|
|
||||||
qteRangeRatio_ = 0F;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.internal_static_PlayerCookArgsRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp build() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp result = new emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp(this);
|
|
||||||
result.retcode_ = retcode_;
|
|
||||||
result.qteRangeRatio_ = qteRangeRatio_;
|
|
||||||
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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp.getDefaultInstance()) return this;
|
|
||||||
if (other.getRetcode() != 0) {
|
|
||||||
setRetcode(other.getRetcode());
|
|
||||||
}
|
|
||||||
if (other.getQteRangeRatio() != 0F) {
|
|
||||||
setQteRangeRatio(other.getQteRangeRatio());
|
|
||||||
}
|
|
||||||
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.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int retcode_ ;
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 4;</code>
|
|
||||||
* @return The retcode.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRetcode() {
|
|
||||||
return retcode_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 4;</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 = 4;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearRetcode() {
|
|
||||||
|
|
||||||
retcode_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private float qteRangeRatio_ ;
|
|
||||||
/**
|
|
||||||
* <code>float qte_range_ratio = 12;</code>
|
|
||||||
* @return The qteRangeRatio.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public float getQteRangeRatio() {
|
|
||||||
return qteRangeRatio_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>float qte_range_ratio = 12;</code>
|
|
||||||
* @param value The qteRangeRatio to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setQteRangeRatio(float value) {
|
|
||||||
|
|
||||||
qteRangeRatio_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>float qte_range_ratio = 12;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearQteRangeRatio() {
|
|
||||||
|
|
||||||
qteRangeRatio_ = 0F;
|
|
||||||
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:PlayerCookArgsRsp)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:PlayerCookArgsRsp)
|
|
||||||
private static final emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<PlayerCookArgsRsp>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<PlayerCookArgsRsp>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public PlayerCookArgsRsp parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new PlayerCookArgsRsp(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<PlayerCookArgsRsp> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<PlayerCookArgsRsp> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_PlayerCookArgsRsp_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_PlayerCookArgsRsp_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\027PlayerCookArgsRsp.proto\"=\n\021PlayerCookA" +
|
|
||||||
"rgsRsp\022\017\n\007retcode\030\004 \001(\005\022\027\n\017qte_range_rat" +
|
|
||||||
"io\030\014 \001(\002B\033\n\031emu.grasscutter.net.protob\006p" +
|
|
||||||
"roto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_PlayerCookArgsRsp_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_PlayerCookArgsRsp_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_PlayerCookArgsRsp_descriptor,
|
|
||||||
new java.lang.String[] { "Retcode", "QteRangeRatio", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,761 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: PlayerCookReq.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class PlayerCookReqOuterClass {
|
|
||||||
private PlayerCookReqOuterClass() {}
|
|
||||||
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 PlayerCookReqOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:PlayerCookReq)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 cook_count = 1;</code>
|
|
||||||
* @return The cookCount.
|
|
||||||
*/
|
|
||||||
int getCookCount();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 qte_quality = 12;</code>
|
|
||||||
* @return The qteQuality.
|
|
||||||
*/
|
|
||||||
int getQteQuality();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 8;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
int getRecipeId();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 14;</code>
|
|
||||||
* @return The assistAvatar.
|
|
||||||
*/
|
|
||||||
int getAssistAvatar();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 194
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCookReq}
|
|
||||||
*/
|
|
||||||
public static final class PlayerCookReq extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:PlayerCookReq)
|
|
||||||
PlayerCookReqOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use PlayerCookReq.newBuilder() to construct.
|
|
||||||
private PlayerCookReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private PlayerCookReq() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new PlayerCookReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private PlayerCookReq(
|
|
||||||
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: {
|
|
||||||
|
|
||||||
cookCount_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 64: {
|
|
||||||
|
|
||||||
recipeId_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 96: {
|
|
||||||
|
|
||||||
qteQuality_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 112: {
|
|
||||||
|
|
||||||
assistAvatar_ = 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.PlayerCookReqOuterClass.internal_static_PlayerCookReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.class, emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COOK_COUNT_FIELD_NUMBER = 1;
|
|
||||||
private int cookCount_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 cook_count = 1;</code>
|
|
||||||
* @return The cookCount.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCookCount() {
|
|
||||||
return cookCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int QTE_QUALITY_FIELD_NUMBER = 12;
|
|
||||||
private int qteQuality_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 qte_quality = 12;</code>
|
|
||||||
* @return The qteQuality.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getQteQuality() {
|
|
||||||
return qteQuality_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RECIPE_ID_FIELD_NUMBER = 8;
|
|
||||||
private int recipeId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 8;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeId() {
|
|
||||||
return recipeId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int ASSIST_AVATAR_FIELD_NUMBER = 14;
|
|
||||||
private int assistAvatar_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 14;</code>
|
|
||||||
* @return The assistAvatar.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getAssistAvatar() {
|
|
||||||
return assistAvatar_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (cookCount_ != 0) {
|
|
||||||
output.writeUInt32(1, cookCount_);
|
|
||||||
}
|
|
||||||
if (recipeId_ != 0) {
|
|
||||||
output.writeUInt32(8, recipeId_);
|
|
||||||
}
|
|
||||||
if (qteQuality_ != 0) {
|
|
||||||
output.writeUInt32(12, qteQuality_);
|
|
||||||
}
|
|
||||||
if (assistAvatar_ != 0) {
|
|
||||||
output.writeUInt32(14, assistAvatar_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (cookCount_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(1, cookCount_);
|
|
||||||
}
|
|
||||||
if (recipeId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(8, recipeId_);
|
|
||||||
}
|
|
||||||
if (qteQuality_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(12, qteQuality_);
|
|
||||||
}
|
|
||||||
if (assistAvatar_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(14, assistAvatar_);
|
|
||||||
}
|
|
||||||
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.PlayerCookReqOuterClass.PlayerCookReq)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other = (emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) obj;
|
|
||||||
|
|
||||||
if (getCookCount()
|
|
||||||
!= other.getCookCount()) return false;
|
|
||||||
if (getQteQuality()
|
|
||||||
!= other.getQteQuality()) return false;
|
|
||||||
if (getRecipeId()
|
|
||||||
!= other.getRecipeId()) return false;
|
|
||||||
if (getAssistAvatar()
|
|
||||||
!= other.getAssistAvatar()) 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) + COOK_COUNT_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCookCount();
|
|
||||||
hash = (37 * hash) + QTE_QUALITY_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getQteQuality();
|
|
||||||
hash = (37 * hash) + RECIPE_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getRecipeId();
|
|
||||||
hash = (37 * hash) + ASSIST_AVATAR_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getAssistAvatar();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq 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.PlayerCookReqOuterClass.PlayerCookReq parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq 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.PlayerCookReqOuterClass.PlayerCookReq parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq 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.PlayerCookReqOuterClass.PlayerCookReq parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq 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.PlayerCookReqOuterClass.PlayerCookReq parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq 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.PlayerCookReqOuterClass.PlayerCookReq 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: 194
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: false
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code PlayerCookReq}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:PlayerCookReq)
|
|
||||||
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReqOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.class, emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.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();
|
|
||||||
cookCount_ = 0;
|
|
||||||
|
|
||||||
qteQuality_ = 0;
|
|
||||||
|
|
||||||
recipeId_ = 0;
|
|
||||||
|
|
||||||
assistAvatar_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookReqOuterClass.internal_static_PlayerCookReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq build() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq result = new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq(this);
|
|
||||||
result.cookCount_ = cookCount_;
|
|
||||||
result.qteQuality_ = qteQuality_;
|
|
||||||
result.recipeId_ = recipeId_;
|
|
||||||
result.assistAvatar_ = assistAvatar_;
|
|
||||||
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.PlayerCookReqOuterClass.PlayerCookReq) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq.getDefaultInstance()) return this;
|
|
||||||
if (other.getCookCount() != 0) {
|
|
||||||
setCookCount(other.getCookCount());
|
|
||||||
}
|
|
||||||
if (other.getQteQuality() != 0) {
|
|
||||||
setQteQuality(other.getQteQuality());
|
|
||||||
}
|
|
||||||
if (other.getRecipeId() != 0) {
|
|
||||||
setRecipeId(other.getRecipeId());
|
|
||||||
}
|
|
||||||
if (other.getAssistAvatar() != 0) {
|
|
||||||
setAssistAvatar(other.getAssistAvatar());
|
|
||||||
}
|
|
||||||
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.PlayerCookReqOuterClass.PlayerCookReq parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int cookCount_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 cook_count = 1;</code>
|
|
||||||
* @return The cookCount.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCookCount() {
|
|
||||||
return cookCount_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 cook_count = 1;</code>
|
|
||||||
* @param value The cookCount to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setCookCount(int value) {
|
|
||||||
|
|
||||||
cookCount_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 cook_count = 1;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearCookCount() {
|
|
||||||
|
|
||||||
cookCount_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int qteQuality_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 qte_quality = 12;</code>
|
|
||||||
* @return The qteQuality.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getQteQuality() {
|
|
||||||
return qteQuality_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 qte_quality = 12;</code>
|
|
||||||
* @param value The qteQuality to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setQteQuality(int value) {
|
|
||||||
|
|
||||||
qteQuality_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 qte_quality = 12;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearQteQuality() {
|
|
||||||
|
|
||||||
qteQuality_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int recipeId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 8;</code>
|
|
||||||
* @return The recipeId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRecipeId() {
|
|
||||||
return recipeId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 8;</code>
|
|
||||||
* @param value The recipeId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setRecipeId(int value) {
|
|
||||||
|
|
||||||
recipeId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 recipe_id = 8;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearRecipeId() {
|
|
||||||
|
|
||||||
recipeId_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int assistAvatar_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 14;</code>
|
|
||||||
* @return The assistAvatar.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getAssistAvatar() {
|
|
||||||
return assistAvatar_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 14;</code>
|
|
||||||
* @param value The assistAvatar to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setAssistAvatar(int value) {
|
|
||||||
|
|
||||||
assistAvatar_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 assist_avatar = 14;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearAssistAvatar() {
|
|
||||||
|
|
||||||
assistAvatar_ = 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:PlayerCookReq)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:PlayerCookReq)
|
|
||||||
private static final emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<PlayerCookReq>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<PlayerCookReq>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public PlayerCookReq parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new PlayerCookReq(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<PlayerCookReq> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<PlayerCookReq> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_PlayerCookReq_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_PlayerCookReq_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\023PlayerCookReq.proto\"b\n\rPlayerCookReq\022\022" +
|
|
||||||
"\n\ncook_count\030\001 \001(\r\022\023\n\013qte_quality\030\014 \001(\r\022" +
|
|
||||||
"\021\n\trecipe_id\030\010 \001(\r\022\025\n\rassist_avatar\030\016 \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_PlayerCookReq_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_PlayerCookReq_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_PlayerCookReq_descriptor,
|
|
||||||
new java.lang.String[] { "CookCount", "QteQuality", "RecipeId", "AssistAvatar", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,621 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: TakeCompoundOutputReq.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class TakeCompoundOutputReqOuterClass {
|
|
||||||
private TakeCompoundOutputReqOuterClass() {}
|
|
||||||
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 TakeCompoundOutputReqOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:TakeCompoundOutputReq)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_group_id = 3;</code>
|
|
||||||
* @return The compoundGroupId.
|
|
||||||
*/
|
|
||||||
int getCompoundGroupId();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 10;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
int getCompoundId();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 174
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code TakeCompoundOutputReq}
|
|
||||||
*/
|
|
||||||
public static final class TakeCompoundOutputReq extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:TakeCompoundOutputReq)
|
|
||||||
TakeCompoundOutputReqOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use TakeCompoundOutputReq.newBuilder() to construct.
|
|
||||||
private TakeCompoundOutputReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private TakeCompoundOutputReq() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new TakeCompoundOutputReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private TakeCompoundOutputReq(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
this();
|
|
||||||
if (extensionRegistry == null) {
|
|
||||||
throw new java.lang.NullPointerException();
|
|
||||||
}
|
|
||||||
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
|
||||||
com.google.protobuf.UnknownFieldSet.newBuilder();
|
|
||||||
try {
|
|
||||||
boolean done = false;
|
|
||||||
while (!done) {
|
|
||||||
int tag = input.readTag();
|
|
||||||
switch (tag) {
|
|
||||||
case 0:
|
|
||||||
done = true;
|
|
||||||
break;
|
|
||||||
case 24: {
|
|
||||||
|
|
||||||
compoundGroupId_ = input.readUInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 80: {
|
|
||||||
|
|
||||||
compoundId_ = 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.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.class, emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COMPOUND_GROUP_ID_FIELD_NUMBER = 3;
|
|
||||||
private int compoundGroupId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_group_id = 3;</code>
|
|
||||||
* @return The compoundGroupId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundGroupId() {
|
|
||||||
return compoundGroupId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int COMPOUND_ID_FIELD_NUMBER = 10;
|
|
||||||
private int compoundId_;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 10;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundId() {
|
|
||||||
return compoundId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (compoundGroupId_ != 0) {
|
|
||||||
output.writeUInt32(3, compoundGroupId_);
|
|
||||||
}
|
|
||||||
if (compoundId_ != 0) {
|
|
||||||
output.writeUInt32(10, compoundId_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (compoundGroupId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(3, compoundGroupId_);
|
|
||||||
}
|
|
||||||
if (compoundId_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeUInt32Size(10, compoundId_);
|
|
||||||
}
|
|
||||||
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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq other = (emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq) obj;
|
|
||||||
|
|
||||||
if (getCompoundGroupId()
|
|
||||||
!= other.getCompoundGroupId()) return false;
|
|
||||||
if (getCompoundId()
|
|
||||||
!= other.getCompoundId()) 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) + COMPOUND_GROUP_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCompoundGroupId();
|
|
||||||
hash = (37 * hash) + COMPOUND_ID_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getCompoundId();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq 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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq 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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq 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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq 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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq 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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq 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: 174
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* IsAllowClient: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code TakeCompoundOutputReq}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:TakeCompoundOutputReq)
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReqOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.class, emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.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();
|
|
||||||
compoundGroupId_ = 0;
|
|
||||||
|
|
||||||
compoundId_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.internal_static_TakeCompoundOutputReq_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq build() {
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq result = new emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq(this);
|
|
||||||
result.compoundGroupId_ = compoundGroupId_;
|
|
||||||
result.compoundId_ = compoundId_;
|
|
||||||
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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.getDefaultInstance()) return this;
|
|
||||||
if (other.getCompoundGroupId() != 0) {
|
|
||||||
setCompoundGroupId(other.getCompoundGroupId());
|
|
||||||
}
|
|
||||||
if (other.getCompoundId() != 0) {
|
|
||||||
setCompoundId(other.getCompoundId());
|
|
||||||
}
|
|
||||||
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.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int compoundGroupId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_group_id = 3;</code>
|
|
||||||
* @return The compoundGroupId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundGroupId() {
|
|
||||||
return compoundGroupId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_group_id = 3;</code>
|
|
||||||
* @param value The compoundGroupId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setCompoundGroupId(int value) {
|
|
||||||
|
|
||||||
compoundGroupId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_group_id = 3;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearCompoundGroupId() {
|
|
||||||
|
|
||||||
compoundGroupId_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int compoundId_ ;
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 10;</code>
|
|
||||||
* @return The compoundId.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getCompoundId() {
|
|
||||||
return compoundId_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 10;</code>
|
|
||||||
* @param value The compoundId to set.
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder setCompoundId(int value) {
|
|
||||||
|
|
||||||
compoundId_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>uint32 compound_id = 10;</code>
|
|
||||||
* @return This builder for chaining.
|
|
||||||
*/
|
|
||||||
public Builder clearCompoundId() {
|
|
||||||
|
|
||||||
compoundId_ = 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:TakeCompoundOutputReq)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:TakeCompoundOutputReq)
|
|
||||||
private static final emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<TakeCompoundOutputReq>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<TakeCompoundOutputReq>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public TakeCompoundOutputReq parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new TakeCompoundOutputReq(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<TakeCompoundOutputReq> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<TakeCompoundOutputReq> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_TakeCompoundOutputReq_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_TakeCompoundOutputReq_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\033TakeCompoundOutputReq.proto\"G\n\025TakeCom" +
|
|
||||||
"poundOutputReq\022\031\n\021compound_group_id\030\003 \001(" +
|
|
||||||
"\r\022\023\n\013compound_id\030\n \001(\rB\033\n\031emu.grasscutte" +
|
|
||||||
"r.net.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_TakeCompoundOutputReq_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_TakeCompoundOutputReq_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_TakeCompoundOutputReq_descriptor,
|
|
||||||
new java.lang.String[] { "CompoundGroupId", "CompoundId", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -1,926 +0,0 @@
|
|||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: TakeCompoundOutputRsp.proto
|
|
||||||
|
|
||||||
package emu.grasscutter.net.proto;
|
|
||||||
|
|
||||||
public final class TakeCompoundOutputRspOuterClass {
|
|
||||||
private TakeCompoundOutputRspOuterClass() {}
|
|
||||||
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 TakeCompoundOutputRspOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:TakeCompoundOutputRsp)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>
|
|
||||||
getItemListList();
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index);
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
int getItemListCount();
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
||||||
getItemListOrBuilderList();
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
|
|
||||||
int index);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 2;</code>
|
|
||||||
* @return The retcode.
|
|
||||||
*/
|
|
||||||
int getRetcode();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
* CmdId: 176
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code TakeCompoundOutputRsp}
|
|
||||||
*/
|
|
||||||
public static final class TakeCompoundOutputRsp extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:TakeCompoundOutputRsp)
|
|
||||||
TakeCompoundOutputRspOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use TakeCompoundOutputRsp.newBuilder() to construct.
|
|
||||||
private TakeCompoundOutputRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private TakeCompoundOutputRsp() {
|
|
||||||
itemList_ = java.util.Collections.emptyList();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new TakeCompoundOutputRsp();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private TakeCompoundOutputRsp(
|
|
||||||
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 16: {
|
|
||||||
|
|
||||||
retcode_ = input.readInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 50: {
|
|
||||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
|
||||||
itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>();
|
|
||||||
mutable_bitField0_ |= 0x00000001;
|
|
||||||
}
|
|
||||||
itemList_.add(
|
|
||||||
input.readMessage(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.parser(), extensionRegistry));
|
|
||||||
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)) {
|
|
||||||
itemList_ = java.util.Collections.unmodifiableList(itemList_);
|
|
||||||
}
|
|
||||||
this.unknownFields = unknownFields.build();
|
|
||||||
makeExtensionsImmutable();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.class, emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int ITEM_LIST_FIELD_NUMBER = 6;
|
|
||||||
private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemList_;
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemListList() {
|
|
||||||
return itemList_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
||||||
getItemListOrBuilderList() {
|
|
||||||
return itemList_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getItemListCount() {
|
|
||||||
return itemList_.size();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) {
|
|
||||||
return itemList_.get(index);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
|
|
||||||
int index) {
|
|
||||||
return itemList_.get(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int RETCODE_FIELD_NUMBER = 2;
|
|
||||||
private int retcode_;
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 2;</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(2, retcode_);
|
|
||||||
}
|
|
||||||
for (int i = 0; i < itemList_.size(); i++) {
|
|
||||||
output.writeMessage(6, itemList_.get(i));
|
|
||||||
}
|
|
||||||
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(2, retcode_);
|
|
||||||
}
|
|
||||||
for (int i = 0; i < itemList_.size(); i++) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeMessageSize(6, itemList_.get(i));
|
|
||||||
}
|
|
||||||
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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp other = (emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp) obj;
|
|
||||||
|
|
||||||
if (!getItemListList()
|
|
||||||
.equals(other.getItemListList())) return false;
|
|
||||||
if (getRetcode()
|
|
||||||
!= other.getRetcode()) return false;
|
|
||||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int hashCode() {
|
|
||||||
if (memoizedHashCode != 0) {
|
|
||||||
return memoizedHashCode;
|
|
||||||
}
|
|
||||||
int hash = 41;
|
|
||||||
hash = (19 * hash) + getDescriptor().hashCode();
|
|
||||||
if (getItemListCount() > 0) {
|
|
||||||
hash = (37 * hash) + ITEM_LIST_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getItemListList().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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp 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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp 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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp 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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp 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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp 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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp 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: 176
|
|
||||||
* EnetChannelId: 0
|
|
||||||
* EnetIsReliable: true
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* Protobuf type {@code TakeCompoundOutputRsp}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:TakeCompoundOutputRsp)
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRspOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.class, emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.newBuilder()
|
|
||||||
private Builder() {
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
|
|
||||||
private Builder(
|
|
||||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
||||||
super(parent);
|
|
||||||
maybeForceBuilderInitialization();
|
|
||||||
}
|
|
||||||
private void maybeForceBuilderInitialization() {
|
|
||||||
if (com.google.protobuf.GeneratedMessageV3
|
|
||||||
.alwaysUseFieldBuilders) {
|
|
||||||
getItemListFieldBuilder();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clear() {
|
|
||||||
super.clear();
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
itemList_ = java.util.Collections.emptyList();
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.clear();
|
|
||||||
}
|
|
||||||
retcode_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.internal_static_TakeCompoundOutputRsp_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp getDefaultInstanceForType() {
|
|
||||||
return emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp build() {
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp buildPartial() {
|
|
||||||
emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp result = new emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp(this);
|
|
||||||
int from_bitField0_ = bitField0_;
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
if (((bitField0_ & 0x00000001) != 0)) {
|
|
||||||
itemList_ = java.util.Collections.unmodifiableList(itemList_);
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
}
|
|
||||||
result.itemList_ = itemList_;
|
|
||||||
} else {
|
|
||||||
result.itemList_ = itemListBuilder_.build();
|
|
||||||
}
|
|
||||||
result.retcode_ = retcode_;
|
|
||||||
onBuilt();
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clone() {
|
|
||||||
return super.clone();
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder setField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
||||||
java.lang.Object value) {
|
|
||||||
return super.setField(field, value);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clearField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
||||||
return super.clearField(field);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder clearOneof(
|
|
||||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
||||||
return super.clearOneof(oneof);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder setRepeatedField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
||||||
int index, java.lang.Object value) {
|
|
||||||
return super.setRepeatedField(field, index, value);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder addRepeatedField(
|
|
||||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
||||||
java.lang.Object value) {
|
|
||||||
return super.addRepeatedField(field, value);
|
|
||||||
}
|
|
||||||
@java.lang.Override
|
|
||||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
||||||
if (other instanceof emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp) {
|
|
||||||
return mergeFrom((emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp other) {
|
|
||||||
if (other == emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp.getDefaultInstance()) return this;
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
if (!other.itemList_.isEmpty()) {
|
|
||||||
if (itemList_.isEmpty()) {
|
|
||||||
itemList_ = other.itemList_;
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
} else {
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.addAll(other.itemList_);
|
|
||||||
}
|
|
||||||
onChanged();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (!other.itemList_.isEmpty()) {
|
|
||||||
if (itemListBuilder_.isEmpty()) {
|
|
||||||
itemListBuilder_.dispose();
|
|
||||||
itemListBuilder_ = null;
|
|
||||||
itemList_ = other.itemList_;
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
itemListBuilder_ =
|
|
||||||
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
|
||||||
getItemListFieldBuilder() : null;
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.addAllMessages(other.itemList_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
private int bitField0_;
|
|
||||||
|
|
||||||
private java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> itemList_ =
|
|
||||||
java.util.Collections.emptyList();
|
|
||||||
private void ensureItemListIsMutable() {
|
|
||||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
|
||||||
itemList_ = new java.util.ArrayList<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam>(itemList_);
|
|
||||||
bitField0_ |= 0x00000001;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder> itemListBuilder_;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> getItemListList() {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
return java.util.Collections.unmodifiableList(itemList_);
|
|
||||||
} else {
|
|
||||||
return itemListBuilder_.getMessageList();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public int getItemListCount() {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
return itemList_.size();
|
|
||||||
} else {
|
|
||||||
return itemListBuilder_.getCount();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam getItemList(int index) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
return itemList_.get(index);
|
|
||||||
} else {
|
|
||||||
return itemListBuilder_.getMessage(index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder setItemList(
|
|
||||||
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.set(index, value);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.setMessage(index, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder setItemList(
|
|
||||||
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.set(index, builderForValue.build());
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.setMessage(index, builderForValue.build());
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder addItemList(emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.add(value);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.addMessage(value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder addItemList(
|
|
||||||
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam value) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.add(index, value);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.addMessage(index, value);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder addItemList(
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.add(builderForValue.build());
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.addMessage(builderForValue.build());
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder addItemList(
|
|
||||||
int index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder builderForValue) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.add(index, builderForValue.build());
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.addMessage(index, builderForValue.build());
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder addAllItemList(
|
|
||||||
java.lang.Iterable<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam> values) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
|
||||||
values, itemList_);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.addAllMessages(values);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearItemList() {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
itemList_ = java.util.Collections.emptyList();
|
|
||||||
bitField0_ = (bitField0_ & ~0x00000001);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.clear();
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public Builder removeItemList(int index) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
ensureItemListIsMutable();
|
|
||||||
itemList_.remove(index);
|
|
||||||
onChanged();
|
|
||||||
} else {
|
|
||||||
itemListBuilder_.remove(index);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder getItemListBuilder(
|
|
||||||
int index) {
|
|
||||||
return getItemListFieldBuilder().getBuilder(index);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder getItemListOrBuilder(
|
|
||||||
int index) {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
return itemList_.get(index); } else {
|
|
||||||
return itemListBuilder_.getMessageOrBuilder(index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public java.util.List<? extends emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
||||||
getItemListOrBuilderList() {
|
|
||||||
if (itemListBuilder_ != null) {
|
|
||||||
return itemListBuilder_.getMessageOrBuilderList();
|
|
||||||
} else {
|
|
||||||
return java.util.Collections.unmodifiableList(itemList_);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder() {
|
|
||||||
return getItemListFieldBuilder().addBuilder(
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder addItemListBuilder(
|
|
||||||
int index) {
|
|
||||||
return getItemListFieldBuilder().addBuilder(
|
|
||||||
index, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.getDefaultInstance());
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>repeated .ItemParam item_list = 6;</code>
|
|
||||||
*/
|
|
||||||
public java.util.List<emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder>
|
|
||||||
getItemListBuilderList() {
|
|
||||||
return getItemListFieldBuilder().getBuilderList();
|
|
||||||
}
|
|
||||||
private com.google.protobuf.RepeatedFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>
|
|
||||||
getItemListFieldBuilder() {
|
|
||||||
if (itemListBuilder_ == null) {
|
|
||||||
itemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam.Builder, emu.grasscutter.net.proto.ItemParamOuterClass.ItemParamOrBuilder>(
|
|
||||||
itemList_,
|
|
||||||
((bitField0_ & 0x00000001) != 0),
|
|
||||||
getParentForChildren(),
|
|
||||||
isClean());
|
|
||||||
itemList_ = null;
|
|
||||||
}
|
|
||||||
return itemListBuilder_;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int retcode_ ;
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 2;</code>
|
|
||||||
* @return The retcode.
|
|
||||||
*/
|
|
||||||
@java.lang.Override
|
|
||||||
public int getRetcode() {
|
|
||||||
return retcode_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>int32 retcode = 2;</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 = 2;</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:TakeCompoundOutputRsp)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:TakeCompoundOutputRsp)
|
|
||||||
private static final emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<TakeCompoundOutputRsp>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<TakeCompoundOutputRsp>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public TakeCompoundOutputRsp parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new TakeCompoundOutputRsp(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<TakeCompoundOutputRsp> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<TakeCompoundOutputRsp> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_TakeCompoundOutputRsp_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_TakeCompoundOutputRsp_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\033TakeCompoundOutputRsp.proto\032\017ItemParam" +
|
|
||||||
".proto\"G\n\025TakeCompoundOutputRsp\022\035\n\titem_" +
|
|
||||||
"list\030\006 \003(\0132\n.ItemParam\022\017\n\007retcode\030\002 \001(\005B" +
|
|
||||||
"\033\n\031emu.grasscutter.net.protob\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor(),
|
|
||||||
});
|
|
||||||
internal_static_TakeCompoundOutputRsp_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_TakeCompoundOutputRsp_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_TakeCompoundOutputRsp_descriptor,
|
|
||||||
new java.lang.String[] { "ItemList", "Retcode", });
|
|
||||||
emu.grasscutter.net.proto.ItemParamOuterClass.getDescriptor();
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
@ -7,17 +7,16 @@ import emu.grasscutter.game.inventory.GameItem;
|
|||||||
import emu.grasscutter.game.player.BasePlayerManager;
|
import emu.grasscutter.game.player.BasePlayerManager;
|
||||||
import emu.grasscutter.game.player.Player;
|
import emu.grasscutter.game.player.Player;
|
||||||
import emu.grasscutter.game.props.ActionReason;
|
import emu.grasscutter.game.props.ActionReason;
|
||||||
import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData;
|
|
||||||
import emu.grasscutter.net.proto.GetCompoundDataReqOuterClass.GetCompoundDataReq;
|
|
||||||
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq;
|
|
||||||
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
||||||
import emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq;
|
|
||||||
import emu.grasscutter.server.packet.send.PacketTakeCompoundOutputRsp;
|
|
||||||
import emu.grasscutter.server.packet.send.PacketCompoundDataNotify;
|
import emu.grasscutter.server.packet.send.PacketCompoundDataNotify;
|
||||||
import emu.grasscutter.server.packet.send.PacketGetCompoundDataRsp;
|
import emu.grasscutter.server.packet.send.PacketGetCompoundDataRsp;
|
||||||
import emu.grasscutter.server.packet.send.PacketPlayerCompoundMaterialRsp;
|
import emu.grasscutter.server.packet.send.PacketPlayerCompoundMaterialRsp;
|
||||||
|
import emu.grasscutter.server.packet.send.PacketTakeCompoundOutputRsp;
|
||||||
import emu.grasscutter.utils.Utils;
|
import emu.grasscutter.utils.Utils;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.GetCompoundDataReq;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCompoundMaterialReq;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.TakeCompoundOutputReq;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -50,7 +49,11 @@ public class CookingCompoundManager extends BasePlayerManager {
|
|||||||
List<CompoundQueueData> compoundQueueData = new ArrayList<>(player.getActiveCookCompounds().size());
|
List<CompoundQueueData> compoundQueueData = new ArrayList<>(player.getActiveCookCompounds().size());
|
||||||
int currentTime = Utils.getCurrentSeconds();
|
int currentTime = Utils.getCurrentSeconds();
|
||||||
for (var item : player.getActiveCookCompounds().values()) {
|
for (var item : player.getActiveCookCompounds().values()) {
|
||||||
var data = CompoundQueueData.newBuilder().setCompoundId(item.getCompoundId()).setOutputCount(item.getOutputCount(currentTime)).setOutputTime(item.getOutputTime(currentTime)).setWaitCount(item.getWaitCount(currentTime)).build();
|
var data = new CompoundQueueData();
|
||||||
|
data.setCompoundId(item.getCompoundId());
|
||||||
|
data.setOutputCount(item.getOutputCount(currentTime));
|
||||||
|
data.setOutputTime(item.getOutputTime(currentTime));
|
||||||
|
data.setWaitCount(item.getWaitCount(currentTime));
|
||||||
compoundQueueData.add(data);
|
compoundQueueData.add(data);
|
||||||
}
|
}
|
||||||
return compoundQueueData;
|
return compoundQueueData;
|
||||||
@ -91,7 +94,11 @@ public class CookingCompoundManager extends BasePlayerManager {
|
|||||||
c = new ActiveCookCompoundData(id, compound.getCostTime(), count, currentTime);
|
c = new ActiveCookCompoundData(id, compound.getCostTime(), count, currentTime);
|
||||||
activeCompounds.put(id, c);
|
activeCompounds.put(id, c);
|
||||||
}
|
}
|
||||||
var data = CompoundQueueData.newBuilder().setCompoundId(id).setOutputCount(c.getOutputCount(currentTime)).setOutputTime(c.getOutputTime(currentTime)).setWaitCount(c.getWaitCount(currentTime)).build();
|
var data = new CompoundQueueData();
|
||||||
|
data.setCompoundId(id);
|
||||||
|
data.setOutputCount(c.getOutputCount(currentTime));
|
||||||
|
data.setOutputTime(c.getOutputTime(currentTime));
|
||||||
|
data.setWaitCount(c.getWaitCount(currentTime));
|
||||||
player.sendPacket(new PacketPlayerCompoundMaterialRsp(data));
|
player.sendPacket(new PacketPlayerCompoundMaterialRsp(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,9 +130,9 @@ public class CookingCompoundManager extends BasePlayerManager {
|
|||||||
//give player the rewards
|
//give player the rewards
|
||||||
if (success) {
|
if (success) {
|
||||||
player.getInventory().addItems(allRewards.values(), ActionReason.Compound);
|
player.getInventory().addItems(allRewards.values(), ActionReason.Compound);
|
||||||
player.sendPacket(new PacketTakeCompoundOutputRsp(allRewards.values().stream().map(i -> ItemParam.newBuilder().setItemId(i.getItemId()).setCount(i.getCount()).build()).toList(), Retcode.RET_SUCC_VALUE));
|
player.sendPacket(new PacketTakeCompoundOutputRsp(allRewards.values().stream().toList(), Retcode.RET_SUCC_VALUE));
|
||||||
} else {
|
} else {
|
||||||
player.sendPacket(new PacketTakeCompoundOutputRsp(null, Retcode.RET_COMPOUND_NOT_FINISH_VALUE));
|
player.sendPacket(new PacketTakeCompoundOutputRsp(new ArrayList<GameItem>(), Retcode.RET_COMPOUND_NOT_FINISH_VALUE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
package emu.grasscutter.game.managers.cooking;
|
package emu.grasscutter.game.managers.cooking;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import emu.grasscutter.data.GameData;
|
import emu.grasscutter.data.GameData;
|
||||||
import emu.grasscutter.data.common.ItemParamData;
|
import emu.grasscutter.data.common.ItemParamData;
|
||||||
import emu.grasscutter.data.excels.ItemData;
|
import emu.grasscutter.data.excels.ItemData;
|
||||||
@ -12,15 +7,20 @@ import emu.grasscutter.game.inventory.GameItem;
|
|||||||
import emu.grasscutter.game.player.BasePlayerManager;
|
import emu.grasscutter.game.player.BasePlayerManager;
|
||||||
import emu.grasscutter.game.player.Player;
|
import emu.grasscutter.game.player.Player;
|
||||||
import emu.grasscutter.game.props.ActionReason;
|
import emu.grasscutter.game.props.ActionReason;
|
||||||
import emu.grasscutter.net.proto.CookRecipeDataOuterClass;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass.PlayerCookArgsReq;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCookReqOuterClass.PlayerCookReq;
|
|
||||||
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
||||||
import emu.grasscutter.server.packet.send.PacketCookDataNotify;
|
import emu.grasscutter.server.packet.send.PacketCookDataNotify;
|
||||||
import emu.grasscutter.server.packet.send.PacketCookRecipeDataNotify;
|
import emu.grasscutter.server.packet.send.PacketCookRecipeDataNotify;
|
||||||
import emu.grasscutter.server.packet.send.PacketPlayerCookArgsRsp;
|
import emu.grasscutter.server.packet.send.PacketPlayerCookArgsRsp;
|
||||||
import emu.grasscutter.server.packet.send.PacketPlayerCookRsp;
|
import emu.grasscutter.server.packet.send.PacketPlayerCookRsp;
|
||||||
import io.netty.util.internal.ThreadLocalRandom;
|
import io.netty.util.internal.ThreadLocalRandom;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookArgsReq;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookReq;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
public class CookingManager extends BasePlayerManager {
|
public class CookingManager extends BasePlayerManager {
|
||||||
private static final int MANUAL_PERFECT_COOK_QUALITY = 3;
|
private static final int MANUAL_PERFECT_COOK_QUALITY = 3;
|
||||||
@ -171,12 +171,13 @@ public class CookingManager extends BasePlayerManager {
|
|||||||
var unlockedRecipes = this.player.getUnlockedRecipies();
|
var unlockedRecipes = this.player.getUnlockedRecipies();
|
||||||
|
|
||||||
// Construct CookRecipeData protos.
|
// Construct CookRecipeData protos.
|
||||||
List<CookRecipeDataOuterClass.CookRecipeData> data = new ArrayList<>();
|
List<CookRecipeData> data = new ArrayList<>();
|
||||||
unlockedRecipes.forEach((recipeId, proficiency) ->
|
unlockedRecipes.forEach((recipeId, proficiency) -> {
|
||||||
data.add(CookRecipeDataOuterClass.CookRecipeData.newBuilder()
|
var cookRecipeData = new CookRecipeData();
|
||||||
.setRecipeId(recipeId)
|
cookRecipeData.setRecipeId(recipeId);
|
||||||
.setProficiency(proficiency)
|
cookRecipeData.setProficiency(proficiency);
|
||||||
.build()));
|
data.add(cookRecipeData);
|
||||||
|
});
|
||||||
|
|
||||||
// Send packet.
|
// Send packet.
|
||||||
this.player.sendPacket(new PacketCookDataNotify(data));
|
this.player.sendPacket(new PacketCookDataNotify(data));
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package emu.grasscutter.server.packet.recv;
|
package emu.grasscutter.server.packet.recv;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.Opcodes;
|
import emu.grasscutter.net.packet.TypedPacketHandler;
|
||||||
import emu.grasscutter.net.packet.PacketHandler;
|
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.GetCompoundDataReqOuterClass;
|
|
||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.GetCompoundDataReq;
|
||||||
|
|
||||||
@Opcodes(PacketOpcodes.GetCompoundDataReq)
|
public class HandlerGetCompoundDataReq extends TypedPacketHandler<GetCompoundDataReq> {
|
||||||
public class HandlerGetCompoundDataReq extends PacketHandler {
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
public void handle(GameSession session, byte[] header, GetCompoundDataReq req) throws Exception {
|
||||||
var req = GetCompoundDataReqOuterClass.GetCompoundDataReq.parseFrom(payload);
|
|
||||||
session.getPlayer().getCookingCompoundManager().handleGetCompoundDataReq(req);
|
session.getPlayer().getCookingCompoundManager().handleGetCompoundDataReq(req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package emu.grasscutter.server.packet.recv;
|
package emu.grasscutter.server.packet.recv;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.Opcodes;
|
import emu.grasscutter.net.packet.TypedPacketHandler;
|
||||||
import emu.grasscutter.net.packet.PacketHandler;
|
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCompoundMaterialReqOuterClass;
|
|
||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCompoundMaterialReq;
|
||||||
|
|
||||||
@Opcodes(PacketOpcodes.PlayerCompoundMaterialReq)
|
public class HandlerPlayerCompoundMaterialReq extends TypedPacketHandler<PlayerCompoundMaterialReq> {
|
||||||
public class HandlerPlayerCompoundMaterialReq extends PacketHandler {
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
public void handle(GameSession session, byte[] header, PlayerCompoundMaterialReq req) throws Exception {
|
||||||
var req = PlayerCompoundMaterialReqOuterClass.PlayerCompoundMaterialReq.parseFrom(payload);
|
|
||||||
session.getPlayer().getCookingCompoundManager().handlePlayerCompoundMaterialReq(req);
|
session.getPlayer().getCookingCompoundManager().handlePlayerCompoundMaterialReq(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package emu.grasscutter.server.packet.recv;
|
package emu.grasscutter.server.packet.recv;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.Opcodes;
|
import emu.grasscutter.net.packet.TypedPacketHandler;
|
||||||
import emu.grasscutter.net.packet.PacketHandler;
|
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCookArgsReqOuterClass;
|
|
||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookArgsReq;
|
||||||
|
|
||||||
@Opcodes(PacketOpcodes.PlayerCookArgsReq)
|
public class HandlerPlayerCookArgsReq extends TypedPacketHandler<PlayerCookArgsReq> {
|
||||||
public class HandlerPlayerCookArgsReq extends PacketHandler {
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
public void handle(GameSession session, byte[] header, PlayerCookArgsReq req) throws Exception {
|
||||||
PlayerCookArgsReqOuterClass.PlayerCookArgsReq req = PlayerCookArgsReqOuterClass.PlayerCookArgsReq.parseFrom(payload);
|
|
||||||
session.getPlayer().getCookingManager().handleCookArgsReq(req);
|
session.getPlayer().getCookingManager().handleCookArgsReq(req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package emu.grasscutter.server.packet.recv;
|
package emu.grasscutter.server.packet.recv;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.Opcodes;
|
import emu.grasscutter.net.packet.TypedPacketHandler;
|
||||||
import emu.grasscutter.net.packet.PacketHandler;
|
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCookReqOuterClass;
|
|
||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookReq;
|
||||||
|
|
||||||
@Opcodes(PacketOpcodes.PlayerCookReq)
|
public class HandlerPlayerCookReq extends TypedPacketHandler<PlayerCookReq> {
|
||||||
public class HandlerPlayerCookReq extends PacketHandler {
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
public void handle(GameSession session, byte[] header, PlayerCookReq req) throws Exception {
|
||||||
PlayerCookReqOuterClass.PlayerCookReq req = PlayerCookReqOuterClass.PlayerCookReq.parseFrom(payload);
|
|
||||||
session.getPlayer().getCookingManager().handlePlayerCookReq(req);
|
session.getPlayer().getCookingManager().handlePlayerCookReq(req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package emu.grasscutter.server.packet.recv;
|
package emu.grasscutter.server.packet.recv;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.Opcodes;
|
import emu.grasscutter.net.packet.TypedPacketHandler;
|
||||||
import emu.grasscutter.net.packet.PacketHandler;
|
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.TakeCompoundOutputReqOuterClass;
|
|
||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.TakeCompoundOutputReq;
|
||||||
|
|
||||||
@Opcodes(PacketOpcodes.TakeCompoundOutputReq)
|
public class HandlerTakeCompoundOutputReq extends TypedPacketHandler<TakeCompoundOutputReq> {
|
||||||
public class HandlerTakeCompoundOutputReq extends PacketHandler {
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
public void handle(GameSession session, byte[] header, TakeCompoundOutputReq req) throws Exception {
|
||||||
var req = TakeCompoundOutputReqOuterClass.TakeCompoundOutputReq.parseFrom(payload);
|
|
||||||
session.getPlayer().getCookingCompoundManager().handleTakeCompoundOutputReq(req);
|
session.getPlayer().getCookingCompoundManager().handleTakeCompoundOutputReq(req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,16 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundDataNotify;
|
||||||
import emu.grasscutter.net.proto.CompoundDataNotifyOuterClass.CompoundDataNotify;
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData;
|
||||||
import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class PacketCompoundDataNotify extends BasePacket {
|
public class PacketCompoundDataNotify extends BaseTypedPacket<CompoundDataNotify> {
|
||||||
|
|
||||||
public PacketCompoundDataNotify(Set<Integer> unlockedCompounds, List<CompoundQueueData> compoundQueueData) {
|
public PacketCompoundDataNotify(Set<Integer> unlockedCompounds, List<CompoundQueueData> compoundQueueData) {
|
||||||
super(PacketOpcodes.CompoundDataNotify);
|
super(new CompoundDataNotify());
|
||||||
var proto= CompoundDataNotify.newBuilder()
|
proto.setUnlockCompoundList(unlockedCompounds.stream().toList());
|
||||||
.addAllUnlockCompoundList(unlockedCompounds)
|
proto.setCompoundQueueDataList(compoundQueueData);
|
||||||
.addAllCompoundQueDataList(compoundQueueData)
|
|
||||||
.build();
|
|
||||||
this.setData(proto);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,14 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookDataNotify;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
public class PacketCookDataNotify extends BaseTypedPacket<CookDataNotify> {
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.CookDataNotifyOuterClass.CookDataNotify;
|
|
||||||
import emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData;
|
|
||||||
|
|
||||||
public class PacketCookDataNotify extends BasePacket {
|
|
||||||
|
|
||||||
public PacketCookDataNotify(List<CookRecipeData> recipes) {
|
public PacketCookDataNotify(List<CookRecipeData> recipes) {
|
||||||
super(PacketOpcodes.CookDataNotify);
|
super(new CookDataNotify());
|
||||||
|
proto.setRecipeDataList(recipes);
|
||||||
CookDataNotify proto = CookDataNotify.newBuilder()
|
|
||||||
.addAllRecipeDataList(recipes)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
this.setData(proto);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,28 +1,25 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
import lombok.val;
|
||||||
import emu.grasscutter.net.proto.CookRecipeDataNotifyOuterClass.CookRecipeDataNotify;
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData;
|
||||||
import emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData;
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeDataNotify;
|
||||||
|
|
||||||
public class PacketCookRecipeDataNotify extends BasePacket {
|
public class PacketCookRecipeDataNotify extends BaseTypedPacket<CookRecipeDataNotify> {
|
||||||
public PacketCookRecipeDataNotify(CookRecipeData recipe) {
|
public PacketCookRecipeDataNotify(CookRecipeData recipe) {
|
||||||
super(PacketOpcodes.CookRecipeDataNotify);
|
super(new CookRecipeDataNotify());
|
||||||
|
proto.setRecipeData(recipe);
|
||||||
CookRecipeDataNotify proto = CookRecipeDataNotify.newBuilder()
|
|
||||||
.setRecipeData(recipe)
|
|
||||||
.build();
|
|
||||||
|
|
||||||
this.setData(proto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PacketCookRecipeDataNotify(int recipeId) {
|
public PacketCookRecipeDataNotify(int recipeId) {
|
||||||
super(PacketOpcodes.CookRecipeDataNotify);
|
this(recipeId, 0);
|
||||||
|
}
|
||||||
|
|
||||||
CookRecipeDataNotify proto = CookRecipeDataNotify.newBuilder()
|
public PacketCookRecipeDataNotify(int recipeId, int proficiency) {
|
||||||
.setRecipeData(CookRecipeData.newBuilder().setRecipeId(recipeId))
|
super(new CookRecipeDataNotify());
|
||||||
.build();
|
val cookRecipeData = new CookRecipeData();
|
||||||
|
cookRecipeData.setRecipeId(recipeId);
|
||||||
this.setData(proto);
|
cookRecipeData.setProficiency(proficiency);
|
||||||
|
proto.setRecipeData(cookRecipeData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,18 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData;
|
|
||||||
import emu.grasscutter.net.proto.GetCompoundDataRspOuterClass.GetCompoundDataRsp;
|
|
||||||
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.GetCompoundDataRsp;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
public class PacketGetCompoundDataRsp extends BasePacket {
|
public class PacketGetCompoundDataRsp extends BaseTypedPacket<GetCompoundDataRsp> {
|
||||||
public PacketGetCompoundDataRsp(Set<Integer> unlockedCompounds, List<CompoundQueueData> compoundQueueData) {
|
public PacketGetCompoundDataRsp(Set<Integer> unlockedCompounds, List<CompoundQueueData> compoundQueueData) {
|
||||||
super(PacketOpcodes.GetCompoundDataRsp);
|
super(new GetCompoundDataRsp());
|
||||||
var proto = GetCompoundDataRsp.newBuilder()
|
proto.setUnlockCompoundList(unlockedCompounds.stream().toList());
|
||||||
.addAllUnlockCompoundList(unlockedCompounds)
|
proto.setCompoundQueDataList(compoundQueueData);
|
||||||
.addAllCompoundQueDataList(compoundQueueData)
|
proto.setRetcode(Retcode.RET_SUCC_VALUE);
|
||||||
.setRetcode(Retcode.RET_SUCC_VALUE)
|
|
||||||
.build();
|
|
||||||
setData(proto);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,19 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.CompoundQueueDataOuterClass.CompoundQueueData;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCompoundMaterialRspOuterClass.PlayerCompoundMaterialRsp;
|
|
||||||
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CompoundQueueData;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCompoundMaterialRsp;
|
||||||
|
|
||||||
public class PacketPlayerCompoundMaterialRsp extends BasePacket {
|
public class PacketPlayerCompoundMaterialRsp extends BaseTypedPacket<PlayerCompoundMaterialRsp> {
|
||||||
/**
|
/**
|
||||||
* Builder for successful message.
|
* Builder for successful message.
|
||||||
*
|
|
||||||
* @param compoundQueueData new compound queue
|
* @param compoundQueueData new compound queue
|
||||||
*/
|
*/
|
||||||
public PacketPlayerCompoundMaterialRsp(CompoundQueueData compoundQueueData) {
|
public PacketPlayerCompoundMaterialRsp(CompoundQueueData compoundQueueData) {
|
||||||
super(PacketOpcodes.PlayerCompoundMaterialRsp);
|
super(new PlayerCompoundMaterialRsp());
|
||||||
PlayerCompoundMaterialRsp proto = PlayerCompoundMaterialRsp.newBuilder()
|
proto.setCompoundQueueData(compoundQueueData);
|
||||||
.setCompoundQueData(compoundQueueData)
|
proto.setRetcode(Retcode.RET_SUCC_VALUE);
|
||||||
.setRetcode(Retcode.RET_SUCC_VALUE)
|
|
||||||
.build();
|
|
||||||
setData(proto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -26,11 +21,7 @@ public class PacketPlayerCompoundMaterialRsp extends BasePacket {
|
|||||||
* @param retcode error code
|
* @param retcode error code
|
||||||
*/
|
*/
|
||||||
public PacketPlayerCompoundMaterialRsp(int retcode) {
|
public PacketPlayerCompoundMaterialRsp(int retcode) {
|
||||||
super(PacketOpcodes.PlayerCompoundMaterialRsp);
|
super(new PlayerCompoundMaterialRsp());
|
||||||
PlayerCompoundMaterialRsp proto = PlayerCompoundMaterialRsp.newBuilder()
|
proto.setRetcode(retcode);
|
||||||
.setRetcode(retcode)
|
|
||||||
.build();
|
|
||||||
setData(proto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,10 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookArgsRsp;
|
||||||
import emu.grasscutter.net.proto.PlayerCookArgsRspOuterClass.PlayerCookArgsRsp;
|
|
||||||
|
|
||||||
public class PacketPlayerCookArgsRsp extends BasePacket {
|
public class PacketPlayerCookArgsRsp extends BaseTypedPacket<PlayerCookArgsRsp> {
|
||||||
|
|
||||||
public PacketPlayerCookArgsRsp() {
|
public PacketPlayerCookArgsRsp() {
|
||||||
super(PacketOpcodes.PlayerCookArgsRsp);
|
super(new PlayerCookArgsRsp());
|
||||||
|
|
||||||
PlayerCookArgsRsp proto = PlayerCookArgsRsp.newBuilder()
|
|
||||||
.build();
|
|
||||||
|
|
||||||
this.setData(proto);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,46 +1,28 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
|
import emu.grasscutter.game.inventory.GameItem;
|
||||||
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
|
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
||||||
|
import lombok.val;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.CookRecipeData;
|
||||||
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.PlayerCookRsp;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import emu.grasscutter.game.inventory.GameItem;
|
public class PacketPlayerCookRsp extends BaseTypedPacket<PlayerCookRsp> {
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
||||||
import emu.grasscutter.net.proto.CookRecipeDataOuterClass.CookRecipeData;
|
|
||||||
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
|
|
||||||
import emu.grasscutter.net.proto.PlayerCookRspOuterClass.PlayerCookRsp;
|
|
||||||
import emu.grasscutter.net.proto.RetcodeOuterClass.Retcode;
|
|
||||||
|
|
||||||
public class PacketPlayerCookRsp extends BasePacket {
|
|
||||||
public PacketPlayerCookRsp(Retcode retcode) {
|
public PacketPlayerCookRsp(Retcode retcode) {
|
||||||
super(PacketOpcodes.PlayerCookRsp);
|
super(new PlayerCookRsp());
|
||||||
|
proto.setRetcode(retcode.getNumber());
|
||||||
PlayerCookRsp proto = PlayerCookRsp.newBuilder()
|
|
||||||
.setRetcode(retcode.getNumber())
|
|
||||||
.build();
|
|
||||||
|
|
||||||
this.setData(proto);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PacketPlayerCookRsp(List<GameItem> output, int quality, int count, int recipeId, int proficiency) {
|
public PacketPlayerCookRsp(List<GameItem> output, int quality, int count, int recipeId, int proficiency) {
|
||||||
super(PacketOpcodes.PlayerCookRsp);
|
super(new PlayerCookRsp());
|
||||||
|
val cookRecipeData = new CookRecipeData();
|
||||||
PlayerCookRsp.Builder proto = PlayerCookRsp.newBuilder()
|
cookRecipeData.setRecipeId(recipeId);
|
||||||
.setRecipeData(
|
cookRecipeData.setProficiency(proficiency);
|
||||||
CookRecipeData.newBuilder()
|
proto.setRecipeData(cookRecipeData);
|
||||||
.setRecipeId(recipeId)
|
proto.setQteQuality(quality);
|
||||||
.setProficiency(proficiency)
|
proto.setCookCount(count);
|
||||||
)
|
proto.setItemList(output.stream().map(GameItem::toItemParam).toList());
|
||||||
.setQteQuality(quality)
|
|
||||||
.setCookCount(count);
|
|
||||||
|
|
||||||
for (var item : output) {
|
|
||||||
proto.addItemList(
|
|
||||||
ItemParam.newBuilder()
|
|
||||||
.setItemId(item.getItemId())
|
|
||||||
.setCount(item.getCount())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.setData(proto);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,15 @@
|
|||||||
package emu.grasscutter.server.packet.send;
|
package emu.grasscutter.server.packet.send;
|
||||||
|
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.game.inventory.GameItem;
|
||||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
import emu.grasscutter.net.packet.BaseTypedPacket;
|
||||||
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
|
import org.anime_game_servers.multi_proto.gi.messages.item.cooking.TakeCompoundOutputRsp;
|
||||||
import emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp;
|
|
||||||
|
|
||||||
public class PacketTakeCompoundOutputRsp extends BasePacket {
|
import java.util.List;
|
||||||
|
|
||||||
public PacketTakeCompoundOutputRsp(Iterable<ItemParam> itemList, int retcode) {
|
public class PacketTakeCompoundOutputRsp extends BaseTypedPacket<TakeCompoundOutputRsp> {
|
||||||
super(PacketOpcodes.TakeCompoundOutputRsp);
|
public PacketTakeCompoundOutputRsp(List<GameItem> itemList, int retcode) {
|
||||||
var builder = TakeCompoundOutputRsp.newBuilder()
|
super(new TakeCompoundOutputRsp());
|
||||||
.addAllItemList(itemList)
|
proto.setItemList(itemList.stream().map(GameItem::toItemParam).toList());
|
||||||
.setRetcode(retcode);
|
proto.setRetcode(retcode);
|
||||||
setData(builder.build());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user