update protos

This commit is contained in:
Hiro
2024-02-07 21:48:41 +02:00
parent 10346166ea
commit 65b696ce3f
14 changed files with 9558 additions and 5158 deletions

View File

@@ -1,339 +1,566 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ClientMailAttachmentItem.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class ClientMailAttachmentItemOuterClass {
private ClientMailAttachmentItemOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
ClientMailAttachmentItemOuterClass.class.getName());
}
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 ClientMailAttachmentItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:ClientMailAttachmentItem)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 item_id = 8;</code>
* @return The itemId.
*/
int getItemId();
/**
* <code>uint32 mail_id = 1;</code>
* @return The mailId.
*/
int getMailId();
}
/**
* Protobuf type {@code ClientMailAttachmentItem}
*/
public static final class ClientMailAttachmentItem extends ProtoMessage<ClientMailAttachmentItem> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 FKIPJPLMBFI = 2;</code>
*/
private int fKIPJPLMBFI;
/**
* <code>optional uint32 ANAFKBMJOBJ = 12;</code>
*/
private int aNAFKBMJOBJ;
public static final class ClientMailAttachmentItem extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ClientMailAttachmentItem)
ClientMailAttachmentItemOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
ClientMailAttachmentItem.class.getName());
}
// Use ClientMailAttachmentItem.newBuilder() to construct.
private ClientMailAttachmentItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private ClientMailAttachmentItem() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.class, emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.Builder.class);
}
public static final int ITEM_ID_FIELD_NUMBER = 8;
private int itemId_ = 0;
/**
* @return a new empty instance of {@code ClientMailAttachmentItem}
* <code>uint32 item_id = 8;</code>
* @return The itemId.
*/
public static ClientMailAttachmentItem newInstance() {
return new ClientMailAttachmentItem();
@java.lang.Override
public int getItemId() {
return itemId_;
}
public static final int MAIL_ID_FIELD_NUMBER = 1;
private int mailId_ = 0;
/**
* <code>optional uint32 FKIPJPLMBFI = 2;</code>
* @return whether the fKIPJPLMBFI field is set
* <code>uint32 mail_id = 1;</code>
* @return The mailId.
*/
public boolean hasFKIPJPLMBFI() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
public int getMailId() {
return mailId_;
}
/**
* <code>optional uint32 FKIPJPLMBFI = 2;</code>
* @return this
*/
public ClientMailAttachmentItem clearFKIPJPLMBFI() {
bitField0_ &= ~0x00000001;
fKIPJPLMBFI = 0;
return this;
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;
}
/**
* <code>optional uint32 FKIPJPLMBFI = 2;</code>
* @return the fKIPJPLMBFI
*/
public int getFKIPJPLMBFI() {
return fKIPJPLMBFI;
}
/**
* <code>optional uint32 FKIPJPLMBFI = 2;</code>
* @param value the fKIPJPLMBFI to set
* @return this
*/
public ClientMailAttachmentItem setFKIPJPLMBFI(final int value) {
bitField0_ |= 0x00000001;
fKIPJPLMBFI = value;
return this;
}
/**
* <code>optional uint32 ANAFKBMJOBJ = 12;</code>
* @return whether the aNAFKBMJOBJ field is set
*/
public boolean hasANAFKBMJOBJ() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 ANAFKBMJOBJ = 12;</code>
* @return this
*/
public ClientMailAttachmentItem clearANAFKBMJOBJ() {
bitField0_ &= ~0x00000002;
aNAFKBMJOBJ = 0;
return this;
}
/**
* <code>optional uint32 ANAFKBMJOBJ = 12;</code>
* @return the aNAFKBMJOBJ
*/
public int getANAFKBMJOBJ() {
return aNAFKBMJOBJ;
}
/**
* <code>optional uint32 ANAFKBMJOBJ = 12;</code>
* @param value the aNAFKBMJOBJ to set
* @return this
*/
public ClientMailAttachmentItem setANAFKBMJOBJ(final int value) {
bitField0_ |= 0x00000002;
aNAFKBMJOBJ = value;
return this;
}
@Override
public ClientMailAttachmentItem copyFrom(final ClientMailAttachmentItem other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
fKIPJPLMBFI = other.fKIPJPLMBFI;
aNAFKBMJOBJ = other.aNAFKBMJOBJ;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (mailId_ != 0) {
output.writeUInt32(1, mailId_);
}
return this;
if (itemId_ != 0) {
output.writeUInt32(8, itemId_);
}
getUnknownFields().writeTo(output);
}
@Override
public ClientMailAttachmentItem mergeFrom(final ClientMailAttachmentItem other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasFKIPJPLMBFI()) {
setFKIPJPLMBFI(other.fKIPJPLMBFI);
}
if (other.hasANAFKBMJOBJ()) {
setANAFKBMJOBJ(other.aNAFKBMJOBJ);
}
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public ClientMailAttachmentItem clear() {
if (isEmpty()) {
return this;
size = 0;
if (mailId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, mailId_);
}
cachedSize = -1;
bitField0_ = 0;
fKIPJPLMBFI = 0;
aNAFKBMJOBJ = 0;
return this;
}
@Override
public ClientMailAttachmentItem clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof ClientMailAttachmentItem)) {
return false;
}
ClientMailAttachmentItem other = (ClientMailAttachmentItem) o;
return bitField0_ == other.bitField0_
&& (!hasFKIPJPLMBFI() || fKIPJPLMBFI == other.fKIPJPLMBFI)
&& (!hasANAFKBMJOBJ() || aNAFKBMJOBJ == other.aNAFKBMJOBJ);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(fKIPJPLMBFI);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 96);
output.writeUInt32NoTag(aNAFKBMJOBJ);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(fKIPJPLMBFI);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(aNAFKBMJOBJ);
if (itemId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, itemId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public ClientMailAttachmentItem mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 16: {
// fKIPJPLMBFI
fKIPJPLMBFI = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 96) {
break;
}
}
case 96: {
// aNAFKBMJOBJ
aNAFKBMJOBJ = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem)) {
return super.equals(obj);
}
emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem other = (emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem) obj;
if (getItemId()
!= other.getItemId()) return false;
if (getMailId()
!= other.getMailId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.fKIPJPLMBFI, fKIPJPLMBFI);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.aNAFKBMJOBJ, aNAFKBMJOBJ);
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ITEM_ID_FIELD_NUMBER;
hash = (53 * hash) + getItemId();
hash = (37 * hash) + MAIL_ID_FIELD_NUMBER;
hash = (53 * hash) + getMailId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public ClientMailAttachmentItem mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ClientMailAttachmentItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ClientMailAttachmentItem)
emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.class, emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.Builder.class);
}
// Construct using emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
itemId_ = 0;
mailId_ = 0;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -581795918: {
if (input.isAtField(FieldNames.fKIPJPLMBFI)) {
if (!input.trySkipNullValue()) {
fKIPJPLMBFI = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1037527505: {
if (input.isAtField(FieldNames.aNAFKBMJOBJ)) {
if (!input.trySkipNullValue()) {
aNAFKBMJOBJ = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.internal_static_ClientMailAttachmentItem_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstanceForType() {
return emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem build() {
emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem buildPartial() {
emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem result = new emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.itemId_ = itemId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.mailId_ = mailId_;
}
}
input.endObject();
return this;
}
@Override
public ClientMailAttachmentItem clone() {
return new ClientMailAttachmentItem().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static ClientMailAttachmentItem parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), data).checkInitialized();
}
public static ClientMailAttachmentItem parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), input).checkInitialized();
}
public static ClientMailAttachmentItem parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new ClientMailAttachmentItem(), input).checkInitialized();
}
/**
* @return factory for creating ClientMailAttachmentItem messages
*/
public static MessageFactory<ClientMailAttachmentItem> getFactory() {
return ClientMailAttachmentItemFactory.INSTANCE;
}
private enum ClientMailAttachmentItemFactory implements MessageFactory<ClientMailAttachmentItem> {
INSTANCE;
@Override
public ClientMailAttachmentItem create() {
return ClientMailAttachmentItem.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem) {
return mergeFrom((emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem other) {
if (other == emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem.getDefaultInstance()) return this;
if (other.getItemId() != 0) {
setItemId(other.getItemId());
}
if (other.getMailId() != 0) {
setMailId(other.getMailId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
mailId_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 8
case 64: {
itemId_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int itemId_ ;
/**
* <code>uint32 item_id = 8;</code>
* @return The itemId.
*/
@java.lang.Override
public int getItemId() {
return itemId_;
}
/**
* <code>uint32 item_id = 8;</code>
* @param value The itemId to set.
* @return This builder for chaining.
*/
public Builder setItemId(int value) {
itemId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 item_id = 8;</code>
* @return This builder for chaining.
*/
public Builder clearItemId() {
bitField0_ = (bitField0_ & ~0x00000001);
itemId_ = 0;
onChanged();
return this;
}
private int mailId_ ;
/**
* <code>uint32 mail_id = 1;</code>
* @return The mailId.
*/
@java.lang.Override
public int getMailId() {
return mailId_;
}
/**
* <code>uint32 mail_id = 1;</code>
* @param value The mailId to set.
* @return This builder for chaining.
*/
public Builder setMailId(int value) {
mailId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>uint32 mail_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearMailId() {
bitField0_ = (bitField0_ & ~0x00000002);
mailId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ClientMailAttachmentItem)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName fKIPJPLMBFI = FieldName.forField("FKIPJPLMBFI");
static final FieldName aNAFKBMJOBJ = FieldName.forField("ANAFKBMJOBJ");
// @@protoc_insertion_point(class_scope:ClientMailAttachmentItem)
private static final emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem();
}
public static emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ClientMailAttachmentItem>
PARSER = new com.google.protobuf.AbstractParser<ClientMailAttachmentItem>() {
@java.lang.Override
public ClientMailAttachmentItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<ClientMailAttachmentItem> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ClientMailAttachmentItem> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.ClientMailAttachmentItemOuterClass.ClientMailAttachmentItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ClientMailAttachmentItem_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ClientMailAttachmentItem_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\036ClientMailAttachmentItem.proto\"<\n\030Clie" +
"ntMailAttachmentItem\022\017\n\007item_id\030\010 \001(\r\022\017\n" +
"\007mail_id\030\001 \001(\rB\025\n\023emu.lunarcore.protob\006p" +
"roto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_ClientMailAttachmentItem_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ClientMailAttachmentItem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ClientMailAttachmentItem_descriptor,
new java.lang.String[] { "ItemId", "MailId", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@@ -1,341 +1,567 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DiscardRelicCsReq.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class DiscardRelicCsReqOuterClass {
private DiscardRelicCsReqOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
DiscardRelicCsReqOuterClass.class.getName());
}
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 DiscardRelicCsReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:DiscardRelicCsReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 relic_unique_id = 13;</code>
* @return The relicUniqueId.
*/
int getRelicUniqueId();
/**
* <code>bool is_discard = 1;</code>
* @return The isDiscard.
*/
boolean getIsDiscard();
}
/**
* Protobuf type {@code DiscardRelicCsReq}
*/
public static final class DiscardRelicCsReq extends ProtoMessage<DiscardRelicCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 relic_unique_id = 13;</code>
*/
private int relicUniqueId;
/**
* <code>optional bool is_discard = 1;</code>
*/
private boolean isDiscard;
public static final class DiscardRelicCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DiscardRelicCsReq)
DiscardRelicCsReqOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
DiscardRelicCsReq.class.getName());
}
// Use DiscardRelicCsReq.newBuilder() to construct.
private DiscardRelicCsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private DiscardRelicCsReq() {
}
/**
* @return a new empty instance of {@code DiscardRelicCsReq}
*/
public static DiscardRelicCsReq newInstance() {
return new DiscardRelicCsReq();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor;
}
/**
* <code>optional uint32 relic_unique_id = 13;</code>
* @return whether the relicUniqueId field is set
*/
public boolean hasRelicUniqueId() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.class, emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.Builder.class);
}
public static final int RELIC_UNIQUE_ID_FIELD_NUMBER = 13;
private int relicUniqueId_ = 0;
/**
* <code>optional uint32 relic_unique_id = 13;</code>
* @return this
*/
public DiscardRelicCsReq clearRelicUniqueId() {
bitField0_ &= ~0x00000001;
relicUniqueId = 0;
return this;
}
/**
* <code>optional uint32 relic_unique_id = 13;</code>
* @return the relicUniqueId
* <code>uint32 relic_unique_id = 13;</code>
* @return The relicUniqueId.
*/
@java.lang.Override
public int getRelicUniqueId() {
return relicUniqueId;
return relicUniqueId_;
}
public static final int IS_DISCARD_FIELD_NUMBER = 1;
private boolean isDiscard_ = false;
/**
* <code>optional uint32 relic_unique_id = 13;</code>
* @param value the relicUniqueId to set
* @return this
*/
public DiscardRelicCsReq setRelicUniqueId(final int value) {
bitField0_ |= 0x00000001;
relicUniqueId = value;
return this;
}
/**
* <code>optional bool is_discard = 1;</code>
* @return whether the isDiscard field is set
*/
public boolean hasIsDiscard() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional bool is_discard = 1;</code>
* @return this
*/
public DiscardRelicCsReq clearIsDiscard() {
bitField0_ &= ~0x00000002;
isDiscard = false;
return this;
}
/**
* <code>optional bool is_discard = 1;</code>
* @return the isDiscard
* <code>bool is_discard = 1;</code>
* @return The isDiscard.
*/
@java.lang.Override
public boolean getIsDiscard() {
return isDiscard;
return isDiscard_;
}
/**
* <code>optional bool is_discard = 1;</code>
* @param value the isDiscard to set
* @return this
*/
public DiscardRelicCsReq setIsDiscard(final boolean value) {
bitField0_ |= 0x00000002;
isDiscard = value;
return this;
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;
}
@Override
public DiscardRelicCsReq copyFrom(final DiscardRelicCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
relicUniqueId = other.relicUniqueId;
isDiscard = other.isDiscard;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (isDiscard_ != false) {
output.writeBool(1, isDiscard_);
}
return this;
if (relicUniqueId_ != 0) {
output.writeUInt32(13, relicUniqueId_);
}
getUnknownFields().writeTo(output);
}
@Override
public DiscardRelicCsReq mergeFrom(final DiscardRelicCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRelicUniqueId()) {
setRelicUniqueId(other.relicUniqueId);
}
if (other.hasIsDiscard()) {
setIsDiscard(other.isDiscard);
}
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public DiscardRelicCsReq clear() {
if (isEmpty()) {
return this;
size = 0;
if (isDiscard_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isDiscard_);
}
cachedSize = -1;
bitField0_ = 0;
relicUniqueId = 0;
isDiscard = false;
return this;
}
@Override
public DiscardRelicCsReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof DiscardRelicCsReq)) {
return false;
}
DiscardRelicCsReq other = (DiscardRelicCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId)
&& (!hasIsDiscard() || isDiscard == other.isDiscard);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(relicUniqueId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 8);
output.writeBoolNoTag(isDiscard);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 2;
if (relicUniqueId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, relicUniqueId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public DiscardRelicCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
// relicUniqueId
relicUniqueId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 8) {
break;
}
}
case 8: {
// isDiscard
isDiscard = input.readBool();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq)) {
return super.equals(obj);
}
emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq other = (emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq) obj;
if (getRelicUniqueId()
!= other.getRelicUniqueId()) return false;
if (getIsDiscard()
!= other.getIsDiscard()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBool(FieldNames.isDiscard, isDiscard);
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RELIC_UNIQUE_ID_FIELD_NUMBER;
hash = (53 * hash) + getRelicUniqueId();
hash = (37 * hash) + IS_DISCARD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsDiscard());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public DiscardRelicCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DiscardRelicCsReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:DiscardRelicCsReq)
emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.class, emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.Builder.class);
}
// Construct using emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
relicUniqueId_ = 0;
isDiscard_ = false;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1966200481:
case 49648253: {
if (input.isAtField(FieldNames.relicUniqueId)) {
if (!input.trySkipNullValue()) {
relicUniqueId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case 1091588116:
case -1123290487: {
if (input.isAtField(FieldNames.isDiscard)) {
if (!input.trySkipNullValue()) {
isDiscard = input.readBool();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.internal_static_DiscardRelicCsReq_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstanceForType() {
return emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq build() {
emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq buildPartial() {
emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq result = new emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.relicUniqueId_ = relicUniqueId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.isDiscard_ = isDiscard_;
}
}
input.endObject();
return this;
}
@Override
public DiscardRelicCsReq clone() {
return new DiscardRelicCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static DiscardRelicCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), data).checkInitialized();
}
public static DiscardRelicCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), input).checkInitialized();
}
public static DiscardRelicCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new DiscardRelicCsReq(), input).checkInitialized();
}
/**
* @return factory for creating DiscardRelicCsReq messages
*/
public static MessageFactory<DiscardRelicCsReq> getFactory() {
return DiscardRelicCsReqFactory.INSTANCE;
}
private enum DiscardRelicCsReqFactory implements MessageFactory<DiscardRelicCsReq> {
INSTANCE;
@Override
public DiscardRelicCsReq create() {
return DiscardRelicCsReq.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq) {
return mergeFrom((emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq other) {
if (other == emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq.getDefaultInstance()) return this;
if (other.getRelicUniqueId() != 0) {
setRelicUniqueId(other.getRelicUniqueId());
}
if (other.getIsDiscard() != false) {
setIsDiscard(other.getIsDiscard());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
isDiscard_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 8
case 104: {
relicUniqueId_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 104
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int relicUniqueId_ ;
/**
* <code>uint32 relic_unique_id = 13;</code>
* @return The relicUniqueId.
*/
@java.lang.Override
public int getRelicUniqueId() {
return relicUniqueId_;
}
/**
* <code>uint32 relic_unique_id = 13;</code>
* @param value The relicUniqueId to set.
* @return This builder for chaining.
*/
public Builder setRelicUniqueId(int value) {
relicUniqueId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 relic_unique_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearRelicUniqueId() {
bitField0_ = (bitField0_ & ~0x00000001);
relicUniqueId_ = 0;
onChanged();
return this;
}
private boolean isDiscard_ ;
/**
* <code>bool is_discard = 1;</code>
* @return The isDiscard.
*/
@java.lang.Override
public boolean getIsDiscard() {
return isDiscard_;
}
/**
* <code>bool is_discard = 1;</code>
* @param value The isDiscard to set.
* @return This builder for chaining.
*/
public Builder setIsDiscard(boolean value) {
isDiscard_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>bool is_discard = 1;</code>
* @return This builder for chaining.
*/
public Builder clearIsDiscard() {
bitField0_ = (bitField0_ & ~0x00000002);
isDiscard_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:DiscardRelicCsReq)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id");
static final FieldName isDiscard = FieldName.forField("isDiscard", "is_discard");
// @@protoc_insertion_point(class_scope:DiscardRelicCsReq)
private static final emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq();
}
public static emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DiscardRelicCsReq>
PARSER = new com.google.protobuf.AbstractParser<DiscardRelicCsReq>() {
@java.lang.Override
public DiscardRelicCsReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<DiscardRelicCsReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DiscardRelicCsReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.DiscardRelicCsReqOuterClass.DiscardRelicCsReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_DiscardRelicCsReq_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_DiscardRelicCsReq_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\027DiscardRelicCsReq.proto\"@\n\021DiscardReli" +
"cCsReq\022\027\n\017relic_unique_id\030\r \001(\r\022\022\n\nis_di" +
"scard\030\001 \001(\010B\025\n\023emu.lunarcore.protob\006prot" +
"o3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_DiscardRelicCsReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_DiscardRelicCsReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_DiscardRelicCsReq_descriptor,
new java.lang.String[] { "RelicUniqueId", "IsDiscard", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@@ -1,260 +1,493 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EnableRogueTalentCsReq.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class EnableRogueTalentCsReqOuterClass {
private EnableRogueTalentCsReqOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
EnableRogueTalentCsReqOuterClass.class.getName());
}
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 EnableRogueTalentCsReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:EnableRogueTalentCsReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 talent_id = 3;</code>
* @return The talentId.
*/
int getTalentId();
}
/**
* Protobuf type {@code EnableRogueTalentCsReq}
*/
public static final class EnableRogueTalentCsReq extends ProtoMessage<EnableRogueTalentCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 talent_id = 13;</code>
*/
private int talentId;
public static final class EnableRogueTalentCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:EnableRogueTalentCsReq)
EnableRogueTalentCsReqOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
EnableRogueTalentCsReq.class.getName());
}
// Use EnableRogueTalentCsReq.newBuilder() to construct.
private EnableRogueTalentCsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private EnableRogueTalentCsReq() {
}
/**
* @return a new empty instance of {@code EnableRogueTalentCsReq}
*/
public static EnableRogueTalentCsReq newInstance() {
return new EnableRogueTalentCsReq();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor;
}
/**
* <code>optional uint32 talent_id = 13;</code>
* @return whether the talentId field is set
*/
public boolean hasTalentId() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.class, emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.Builder.class);
}
public static final int TALENT_ID_FIELD_NUMBER = 3;
private int talentId_ = 0;
/**
* <code>optional uint32 talent_id = 13;</code>
* @return this
*/
public EnableRogueTalentCsReq clearTalentId() {
bitField0_ &= ~0x00000001;
talentId = 0;
return this;
}
/**
* <code>optional uint32 talent_id = 13;</code>
* @return the talentId
* <code>uint32 talent_id = 3;</code>
* @return The talentId.
*/
@java.lang.Override
public int getTalentId() {
return talentId;
return talentId_;
}
/**
* <code>optional uint32 talent_id = 13;</code>
* @param value the talentId to set
* @return this
*/
public EnableRogueTalentCsReq setTalentId(final int value) {
bitField0_ |= 0x00000001;
talentId = value;
return this;
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;
}
@Override
public EnableRogueTalentCsReq copyFrom(final EnableRogueTalentCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
talentId = other.talentId;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (talentId_ != 0) {
output.writeUInt32(3, talentId_);
}
return this;
getUnknownFields().writeTo(output);
}
@Override
public EnableRogueTalentCsReq mergeFrom(final EnableRogueTalentCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasTalentId()) {
setTalentId(other.talentId);
}
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public EnableRogueTalentCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
talentId = 0;
return this;
}
@Override
public EnableRogueTalentCsReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof EnableRogueTalentCsReq)) {
return false;
}
EnableRogueTalentCsReq other = (EnableRogueTalentCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasTalentId() || talentId == other.talentId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(talentId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(talentId);
size = 0;
if (talentId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, talentId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public EnableRogueTalentCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 104: {
// talentId
talentId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq)) {
return super.equals(obj);
}
emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq other = (emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq) obj;
if (getTalentId()
!= other.getTalentId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.talentId, talentId);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TALENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getTalentId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public EnableRogueTalentCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code EnableRogueTalentCsReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:EnableRogueTalentCsReq)
emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.class, emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.Builder.class);
}
// Construct using emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
talentId_ = 0;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -615305433:
case -1894577842: {
if (input.isAtField(FieldNames.talentId)) {
if (!input.trySkipNullValue()) {
talentId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstanceForType() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq build() {
emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq buildPartial() {
emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq result = new emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.talentId_ = talentId_;
}
}
input.endObject();
return this;
}
@Override
public EnableRogueTalentCsReq clone() {
return new EnableRogueTalentCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static EnableRogueTalentCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), data).checkInitialized();
}
public static EnableRogueTalentCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized();
}
public static EnableRogueTalentCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), input).checkInitialized();
}
/**
* @return factory for creating EnableRogueTalentCsReq messages
*/
public static MessageFactory<EnableRogueTalentCsReq> getFactory() {
return EnableRogueTalentCsReqFactory.INSTANCE;
}
private enum EnableRogueTalentCsReqFactory implements MessageFactory<EnableRogueTalentCsReq> {
INSTANCE;
@Override
public EnableRogueTalentCsReq create() {
return EnableRogueTalentCsReq.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq) {
return mergeFrom((emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq other) {
if (other == emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq.getDefaultInstance()) return this;
if (other.getTalentId() != 0) {
setTalentId(other.getTalentId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 24: {
talentId_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int talentId_ ;
/**
* <code>uint32 talent_id = 3;</code>
* @return The talentId.
*/
@java.lang.Override
public int getTalentId() {
return talentId_;
}
/**
* <code>uint32 talent_id = 3;</code>
* @param value The talentId to set.
* @return This builder for chaining.
*/
public Builder setTalentId(int value) {
talentId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 talent_id = 3;</code>
* @return This builder for chaining.
*/
public Builder clearTalentId() {
bitField0_ = (bitField0_ & ~0x00000001);
talentId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:EnableRogueTalentCsReq)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName talentId = FieldName.forField("talentId", "talent_id");
// @@protoc_insertion_point(class_scope:EnableRogueTalentCsReq)
private static final emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq();
}
public static emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<EnableRogueTalentCsReq>
PARSER = new com.google.protobuf.AbstractParser<EnableRogueTalentCsReq>() {
@java.lang.Override
public EnableRogueTalentCsReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<EnableRogueTalentCsReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<EnableRogueTalentCsReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.EnableRogueTalentCsReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_EnableRogueTalentCsReq_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_EnableRogueTalentCsReq_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\034EnableRogueTalentCsReq.proto\"+\n\026Enable" +
"RogueTalentCsReq\022\021\n\ttalent_id\030\003 \001(\rB\025\n\023e" +
"mu.lunarcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_EnableRogueTalentCsReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_EnableRogueTalentCsReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_EnableRogueTalentCsReq_descriptor,
new java.lang.String[] { "TalentId", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@@ -1,259 +1,566 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MazeGroup.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class MazeGroupOuterClass {
private MazeGroupOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
MazeGroupOuterClass.class.getName());
}
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 MazeGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:MazeGroup)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 group_id = 6;</code>
* @return The groupId.
*/
int getGroupId();
/**
* <code>int64 modify_time = 2;</code>
* @return The modifyTime.
*/
long getModifyTime();
}
/**
* Protobuf type {@code MazeGroup}
*/
public static final class MazeGroup extends ProtoMessage<MazeGroup> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 group_id = 6;</code>
*/
private int groupId;
public static final class MazeGroup extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:MazeGroup)
MazeGroupOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
MazeGroup.class.getName());
}
// Use MazeGroup.newBuilder() to construct.
private MazeGroup(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private MazeGroup() {
}
/**
* @return a new empty instance of {@code MazeGroup}
*/
public static MazeGroup newInstance() {
return new MazeGroup();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor;
}
/**
* <code>optional uint32 group_id = 6;</code>
* @return whether the groupId field is set
*/
public boolean hasGroupId() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.class, emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.Builder.class);
}
public static final int GROUP_ID_FIELD_NUMBER = 6;
private int groupId_ = 0;
/**
* <code>optional uint32 group_id = 6;</code>
* @return this
*/
public MazeGroup clearGroupId() {
bitField0_ &= ~0x00000001;
groupId = 0;
return this;
}
/**
* <code>optional uint32 group_id = 6;</code>
* @return the groupId
* <code>uint32 group_id = 6;</code>
* @return The groupId.
*/
@java.lang.Override
public int getGroupId() {
return groupId;
return groupId_;
}
public static final int MODIFY_TIME_FIELD_NUMBER = 2;
private long modifyTime_ = 0L;
/**
* <code>optional uint32 group_id = 6;</code>
* @param value the groupId to set
* @return this
* <code>int64 modify_time = 2;</code>
* @return The modifyTime.
*/
public MazeGroup setGroupId(final int value) {
bitField0_ |= 0x00000001;
groupId = value;
return this;
@java.lang.Override
public long getModifyTime() {
return modifyTime_;
}
@Override
public MazeGroup copyFrom(final MazeGroup other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
groupId = other.groupId;
}
return this;
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;
}
@Override
public MazeGroup mergeFrom(final MazeGroup other) {
if (other.isEmpty()) {
return this;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (modifyTime_ != 0L) {
output.writeInt64(2, modifyTime_);
}
cachedSize = -1;
if (other.hasGroupId()) {
setGroupId(other.groupId);
if (groupId_ != 0) {
output.writeUInt32(6, groupId_);
}
return this;
getUnknownFields().writeTo(output);
}
@Override
public MazeGroup clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
groupId = 0;
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public MazeGroup clearQuick() {
if (isEmpty()) {
return this;
size = 0;
if (modifyTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, modifyTime_);
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof MazeGroup)) {
return false;
}
MazeGroup other = (MazeGroup) o;
return bitField0_ == other.bitField0_
&& (!hasGroupId() || groupId == other.groupId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(groupId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
if (groupId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, groupId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public MazeGroup mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 48: {
// groupId
groupId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup)) {
return super.equals(obj);
}
emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup other = (emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup) obj;
if (getGroupId()
!= other.getGroupId()) return false;
if (getModifyTime()
!= other.getModifyTime()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.groupId, groupId);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getGroupId();
hash = (37 * hash) + MODIFY_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getModifyTime());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public MazeGroup mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.MazeGroupOuterClass.MazeGroup 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code MazeGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:MazeGroup)
emu.lunarcore.proto.MazeGroupOuterClass.MazeGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.class, emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.Builder.class);
}
// Construct using emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
groupId_ = 0;
modifyTime_ = 0L;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 293428218:
case 506361563: {
if (input.isAtField(FieldNames.groupId)) {
if (!input.trySkipNullValue()) {
groupId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup getDefaultInstanceForType() {
return emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup build() {
emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup buildPartial() {
emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup result = new emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.groupId_ = groupId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.modifyTime_ = modifyTime_;
}
}
input.endObject();
return this;
}
@Override
public MazeGroup clone() {
return new MazeGroup().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static MazeGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new MazeGroup(), data).checkInitialized();
}
public static MazeGroup parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized();
}
public static MazeGroup parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new MazeGroup(), input).checkInitialized();
}
/**
* @return factory for creating MazeGroup messages
*/
public static MessageFactory<MazeGroup> getFactory() {
return MazeGroupFactory.INSTANCE;
}
private enum MazeGroupFactory implements MessageFactory<MazeGroup> {
INSTANCE;
@Override
public MazeGroup create() {
return MazeGroup.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup) {
return mergeFrom((emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup other) {
if (other == emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup.getDefaultInstance()) return this;
if (other.getGroupId() != 0) {
setGroupId(other.getGroupId());
}
if (other.getModifyTime() != 0L) {
setModifyTime(other.getModifyTime());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 16: {
modifyTime_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 48: {
groupId_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int groupId_ ;
/**
* <code>uint32 group_id = 6;</code>
* @return The groupId.
*/
@java.lang.Override
public int getGroupId() {
return groupId_;
}
/**
* <code>uint32 group_id = 6;</code>
* @param value The groupId to set.
* @return This builder for chaining.
*/
public Builder setGroupId(int value) {
groupId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 group_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000001);
groupId_ = 0;
onChanged();
return this;
}
private long modifyTime_ ;
/**
* <code>int64 modify_time = 2;</code>
* @return The modifyTime.
*/
@java.lang.Override
public long getModifyTime() {
return modifyTime_;
}
/**
* <code>int64 modify_time = 2;</code>
* @param value The modifyTime to set.
* @return This builder for chaining.
*/
public Builder setModifyTime(long value) {
modifyTime_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>int64 modify_time = 2;</code>
* @return This builder for chaining.
*/
public Builder clearModifyTime() {
bitField0_ = (bitField0_ & ~0x00000002);
modifyTime_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:MazeGroup)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName groupId = FieldName.forField("groupId", "group_id");
// @@protoc_insertion_point(class_scope:MazeGroup)
private static final emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup();
}
public static emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<MazeGroup>
PARSER = new com.google.protobuf.AbstractParser<MazeGroup>() {
@java.lang.Override
public MazeGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<MazeGroup> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<MazeGroup> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.MazeGroupOuterClass.MazeGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_MazeGroup_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_MazeGroup_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\017MazeGroup.proto\"2\n\tMazeGroup\022\020\n\010group_" +
"id\030\006 \001(\r\022\023\n\013modify_time\030\002 \001(\003B\025\n\023emu.lun" +
"arcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_MazeGroup_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_MazeGroup_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_MazeGroup_descriptor,
new java.lang.String[] { "GroupId", "ModifyTime", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,259 +1,638 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SceneMonsterWaveParam.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class SceneMonsterWaveParamOuterClass {
private SceneMonsterWaveParamOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
SceneMonsterWaveParamOuterClass.class.getName());
}
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 SceneMonsterWaveParamOrBuilder extends
// @@protoc_insertion_point(interface_extends:SceneMonsterWaveParam)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 hard_level_group = 3;</code>
* @return The hardLevelGroup.
*/
int getHardLevelGroup();
/**
* <code>uint32 level = 8;</code>
* @return The level.
*/
int getLevel();
/**
* <code>uint32 elite_group = 10;</code>
* @return The eliteGroup.
*/
int getEliteGroup();
}
/**
* Protobuf type {@code SceneMonsterWaveParam}
*/
public static final class SceneMonsterWaveParam extends ProtoMessage<SceneMonsterWaveParam> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 level = 8;</code>
*/
private int level;
public static final class SceneMonsterWaveParam extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SceneMonsterWaveParam)
SceneMonsterWaveParamOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
SceneMonsterWaveParam.class.getName());
}
// Use SceneMonsterWaveParam.newBuilder() to construct.
private SceneMonsterWaveParam(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private SceneMonsterWaveParam() {
}
/**
* @return a new empty instance of {@code SceneMonsterWaveParam}
*/
public static SceneMonsterWaveParam newInstance() {
return new SceneMonsterWaveParam();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor;
}
/**
* <code>optional uint32 level = 8;</code>
* @return whether the level field is set
*/
public boolean hasLevel() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.class, emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.Builder.class);
}
public static final int HARD_LEVEL_GROUP_FIELD_NUMBER = 3;
private int hardLevelGroup_ = 0;
/**
* <code>optional uint32 level = 8;</code>
* @return this
* <code>uint32 hard_level_group = 3;</code>
* @return The hardLevelGroup.
*/
public SceneMonsterWaveParam clearLevel() {
bitField0_ &= ~0x00000001;
level = 0;
return this;
@java.lang.Override
public int getHardLevelGroup() {
return hardLevelGroup_;
}
public static final int LEVEL_FIELD_NUMBER = 8;
private int level_ = 0;
/**
* <code>optional uint32 level = 8;</code>
* @return the level
* <code>uint32 level = 8;</code>
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level;
return level_;
}
public static final int ELITE_GROUP_FIELD_NUMBER = 10;
private int eliteGroup_ = 0;
/**
* <code>optional uint32 level = 8;</code>
* @param value the level to set
* @return this
* <code>uint32 elite_group = 10;</code>
* @return The eliteGroup.
*/
public SceneMonsterWaveParam setLevel(final int value) {
bitField0_ |= 0x00000001;
level = value;
return this;
@java.lang.Override
public int getEliteGroup() {
return eliteGroup_;
}
@Override
public SceneMonsterWaveParam copyFrom(final SceneMonsterWaveParam other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
level = other.level;
}
return this;
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;
}
@Override
public SceneMonsterWaveParam mergeFrom(final SceneMonsterWaveParam other) {
if (other.isEmpty()) {
return this;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hardLevelGroup_ != 0) {
output.writeUInt32(3, hardLevelGroup_);
}
cachedSize = -1;
if (other.hasLevel()) {
setLevel(other.level);
if (level_ != 0) {
output.writeUInt32(8, level_);
}
return this;
if (eliteGroup_ != 0) {
output.writeUInt32(10, eliteGroup_);
}
getUnknownFields().writeTo(output);
}
@Override
public SceneMonsterWaveParam clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
level = 0;
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public SceneMonsterWaveParam clearQuick() {
if (isEmpty()) {
return this;
size = 0;
if (hardLevelGroup_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, hardLevelGroup_);
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
if (level_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, level_);
}
if (!(o instanceof SceneMonsterWaveParam)) {
return false;
}
SceneMonsterWaveParam other = (SceneMonsterWaveParam) o;
return bitField0_ == other.bitField0_
&& (!hasLevel() || level == other.level);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(level);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
if (eliteGroup_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, eliteGroup_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public SceneMonsterWaveParam mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 64: {
// level
level = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam)) {
return super.equals(obj);
}
emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam other = (emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam) obj;
if (getHardLevelGroup()
!= other.getHardLevelGroup()) return false;
if (getLevel()
!= other.getLevel()) return false;
if (getEliteGroup()
!= other.getEliteGroup()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.level, level);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + HARD_LEVEL_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getHardLevelGroup();
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLevel();
hash = (37 * hash) + ELITE_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getEliteGroup();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public SceneMonsterWaveParam mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code SceneMonsterWaveParam}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:SceneMonsterWaveParam)
emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParamOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.class, emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.Builder.class);
}
// Construct using emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
hardLevelGroup_ = 0;
level_ = 0;
eliteGroup_ = 0;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 102865796: {
if (input.isAtField(FieldNames.level)) {
if (!input.trySkipNullValue()) {
level = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstanceForType() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam build() {
emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam buildPartial() {
emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam result = new emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.hardLevelGroup_ = hardLevelGroup_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.level_ = level_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.eliteGroup_ = eliteGroup_;
}
}
input.endObject();
return this;
}
@Override
public SceneMonsterWaveParam clone() {
return new SceneMonsterWaveParam().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static SceneMonsterWaveParam parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), data).checkInitialized();
}
public static SceneMonsterWaveParam parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), input).checkInitialized();
}
public static SceneMonsterWaveParam parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), input).checkInitialized();
}
/**
* @return factory for creating SceneMonsterWaveParam messages
*/
public static MessageFactory<SceneMonsterWaveParam> getFactory() {
return SceneMonsterWaveParamFactory.INSTANCE;
}
private enum SceneMonsterWaveParamFactory implements MessageFactory<SceneMonsterWaveParam> {
INSTANCE;
@Override
public SceneMonsterWaveParam create() {
return SceneMonsterWaveParam.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam) {
return mergeFrom((emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam other) {
if (other == emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam.getDefaultInstance()) return this;
if (other.getHardLevelGroup() != 0) {
setHardLevelGroup(other.getHardLevelGroup());
}
if (other.getLevel() != 0) {
setLevel(other.getLevel());
}
if (other.getEliteGroup() != 0) {
setEliteGroup(other.getEliteGroup());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 24: {
hardLevelGroup_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 24
case 64: {
level_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 64
case 80: {
eliteGroup_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 80
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int hardLevelGroup_ ;
/**
* <code>uint32 hard_level_group = 3;</code>
* @return The hardLevelGroup.
*/
@java.lang.Override
public int getHardLevelGroup() {
return hardLevelGroup_;
}
/**
* <code>uint32 hard_level_group = 3;</code>
* @param value The hardLevelGroup to set.
* @return This builder for chaining.
*/
public Builder setHardLevelGroup(int value) {
hardLevelGroup_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 hard_level_group = 3;</code>
* @return This builder for chaining.
*/
public Builder clearHardLevelGroup() {
bitField0_ = (bitField0_ & ~0x00000001);
hardLevelGroup_ = 0;
onChanged();
return this;
}
private int level_ ;
/**
* <code>uint32 level = 8;</code>
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
/**
* <code>uint32 level = 8;</code>
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevel(int value) {
level_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>uint32 level = 8;</code>
* @return This builder for chaining.
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000002);
level_ = 0;
onChanged();
return this;
}
private int eliteGroup_ ;
/**
* <code>uint32 elite_group = 10;</code>
* @return The eliteGroup.
*/
@java.lang.Override
public int getEliteGroup() {
return eliteGroup_;
}
/**
* <code>uint32 elite_group = 10;</code>
* @param value The eliteGroup to set.
* @return This builder for chaining.
*/
public Builder setEliteGroup(int value) {
eliteGroup_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>uint32 elite_group = 10;</code>
* @return This builder for chaining.
*/
public Builder clearEliteGroup() {
bitField0_ = (bitField0_ & ~0x00000004);
eliteGroup_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:SceneMonsterWaveParam)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName level = FieldName.forField("level");
// @@protoc_insertion_point(class_scope:SceneMonsterWaveParam)
private static final emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam();
}
public static emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<SceneMonsterWaveParam>
PARSER = new com.google.protobuf.AbstractParser<SceneMonsterWaveParam>() {
@java.lang.Override
public SceneMonsterWaveParam parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<SceneMonsterWaveParam> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<SceneMonsterWaveParam> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.SceneMonsterWaveParam getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_SceneMonsterWaveParam_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_SceneMonsterWaveParam_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\033SceneMonsterWaveParam.proto\"U\n\025SceneMo" +
"nsterWaveParam\022\030\n\020hard_level_group\030\003 \001(\r" +
"\022\r\n\005level\030\010 \001(\r\022\023\n\013elite_group\030\n \001(\rB\025\n\023" +
"emu.lunarcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_SceneMonsterWaveParam_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_SceneMonsterWaveParam_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_SceneMonsterWaveParam_descriptor,
new java.lang.String[] { "HardLevelGroup", "Level", "EliteGroup", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@@ -1,260 +1,493 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TakeChallengeRewardCsReq.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class TakeChallengeRewardCsReqOuterClass {
private TakeChallengeRewardCsReqOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
TakeChallengeRewardCsReqOuterClass.class.getName());
}
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 TakeChallengeRewardCsReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:TakeChallengeRewardCsReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 group_id = 1;</code>
* @return The groupId.
*/
int getGroupId();
}
/**
* Protobuf type {@code TakeChallengeRewardCsReq}
*/
public static final class TakeChallengeRewardCsReq extends ProtoMessage<TakeChallengeRewardCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 group_id = 1;</code>
*/
private int groupId;
public static final class TakeChallengeRewardCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TakeChallengeRewardCsReq)
TakeChallengeRewardCsReqOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
TakeChallengeRewardCsReq.class.getName());
}
// Use TakeChallengeRewardCsReq.newBuilder() to construct.
private TakeChallengeRewardCsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private TakeChallengeRewardCsReq() {
}
/**
* @return a new empty instance of {@code TakeChallengeRewardCsReq}
*/
public static TakeChallengeRewardCsReq newInstance() {
return new TakeChallengeRewardCsReq();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor;
}
/**
* <code>optional uint32 group_id = 1;</code>
* @return whether the groupId field is set
*/
public boolean hasGroupId() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.class, emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.Builder.class);
}
public static final int GROUP_ID_FIELD_NUMBER = 1;
private int groupId_ = 0;
/**
* <code>optional uint32 group_id = 1;</code>
* @return this
*/
public TakeChallengeRewardCsReq clearGroupId() {
bitField0_ &= ~0x00000001;
groupId = 0;
return this;
}
/**
* <code>optional uint32 group_id = 1;</code>
* @return the groupId
* <code>uint32 group_id = 1;</code>
* @return The groupId.
*/
@java.lang.Override
public int getGroupId() {
return groupId;
return groupId_;
}
/**
* <code>optional uint32 group_id = 1;</code>
* @param value the groupId to set
* @return this
*/
public TakeChallengeRewardCsReq setGroupId(final int value) {
bitField0_ |= 0x00000001;
groupId = value;
return this;
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;
}
@Override
public TakeChallengeRewardCsReq copyFrom(final TakeChallengeRewardCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
groupId = other.groupId;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (groupId_ != 0) {
output.writeUInt32(1, groupId_);
}
return this;
getUnknownFields().writeTo(output);
}
@Override
public TakeChallengeRewardCsReq mergeFrom(final TakeChallengeRewardCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasGroupId()) {
setGroupId(other.groupId);
}
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public TakeChallengeRewardCsReq clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
groupId = 0;
return this;
}
@Override
public TakeChallengeRewardCsReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof TakeChallengeRewardCsReq)) {
return false;
}
TakeChallengeRewardCsReq other = (TakeChallengeRewardCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasGroupId() || groupId == other.groupId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(groupId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
size = 0;
if (groupId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, groupId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public TakeChallengeRewardCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 8: {
// groupId
groupId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq)) {
return super.equals(obj);
}
emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq other = (emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq) obj;
if (getGroupId()
!= other.getGroupId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.groupId, groupId);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getGroupId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public TakeChallengeRewardCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code TakeChallengeRewardCsReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:TakeChallengeRewardCsReq)
emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.class, emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.Builder.class);
}
// Construct using emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
groupId_ = 0;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 293428218:
case 506361563: {
if (input.isAtField(FieldNames.groupId)) {
if (!input.trySkipNullValue()) {
groupId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstanceForType() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq build() {
emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq buildPartial() {
emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq result = new emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.groupId_ = groupId_;
}
}
input.endObject();
return this;
}
@Override
public TakeChallengeRewardCsReq clone() {
return new TakeChallengeRewardCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static TakeChallengeRewardCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), data).checkInitialized();
}
public static TakeChallengeRewardCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), input).checkInitialized();
}
public static TakeChallengeRewardCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), input).checkInitialized();
}
/**
* @return factory for creating TakeChallengeRewardCsReq messages
*/
public static MessageFactory<TakeChallengeRewardCsReq> getFactory() {
return TakeChallengeRewardCsReqFactory.INSTANCE;
}
private enum TakeChallengeRewardCsReqFactory implements MessageFactory<TakeChallengeRewardCsReq> {
INSTANCE;
@Override
public TakeChallengeRewardCsReq create() {
return TakeChallengeRewardCsReq.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq) {
return mergeFrom((emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq other) {
if (other == emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq.getDefaultInstance()) return this;
if (other.getGroupId() != 0) {
setGroupId(other.getGroupId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
groupId_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int groupId_ ;
/**
* <code>uint32 group_id = 1;</code>
* @return The groupId.
*/
@java.lang.Override
public int getGroupId() {
return groupId_;
}
/**
* <code>uint32 group_id = 1;</code>
* @param value The groupId to set.
* @return This builder for chaining.
*/
public Builder setGroupId(int value) {
groupId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 group_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000001);
groupId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:TakeChallengeRewardCsReq)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName groupId = FieldName.forField("groupId", "group_id");
// @@protoc_insertion_point(class_scope:TakeChallengeRewardCsReq)
private static final emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq();
}
public static emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TakeChallengeRewardCsReq>
PARSER = new com.google.protobuf.AbstractParser<TakeChallengeRewardCsReq>() {
@java.lang.Override
public TakeChallengeRewardCsReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<TakeChallengeRewardCsReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TakeChallengeRewardCsReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.TakeChallengeRewardCsReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TakeChallengeRewardCsReq_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_TakeChallengeRewardCsReq_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\036TakeChallengeRewardCsReq.proto\",\n\030Take" +
"ChallengeRewardCsReq\022\020\n\010group_id\030\001 \001(\rB\025" +
"\n\023emu.lunarcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_TakeChallengeRewardCsReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TakeChallengeRewardCsReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_TakeChallengeRewardCsReq_descriptor,
new java.lang.String[] { "GroupId", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@@ -1,301 +1,686 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TakeMailAttachmentCsReq.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
import us.hebi.quickbuf.RepeatedInt;
public final class TakeMailAttachmentCsReqOuterClass {
private TakeMailAttachmentCsReqOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
TakeMailAttachmentCsReqOuterClass.class.getName());
}
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 TakeMailAttachmentCsReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:TakeMailAttachmentCsReq)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return A list containing the mailIdList.
*/
java.util.List<java.lang.Integer> getMailIdListList();
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return The count of mailIdList.
*/
int getMailIdListCount();
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param index The index of the element to return.
* @return The mailIdList at the given index.
*/
int getMailIdList(int index);
/**
* <code>uint32 optional_reward_id = 9;</code>
* @return The optionalRewardId.
*/
int getOptionalRewardId();
}
/**
* Protobuf type {@code TakeMailAttachmentCsReq}
*/
public static final class TakeMailAttachmentCsReq extends ProtoMessage<TakeMailAttachmentCsReq> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>repeated uint32 mail_id_list = 12;</code>
*/
private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance();
public static final class TakeMailAttachmentCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TakeMailAttachmentCsReq)
TakeMailAttachmentCsReqOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
TakeMailAttachmentCsReq.class.getName());
}
// Use TakeMailAttachmentCsReq.newBuilder() to construct.
private TakeMailAttachmentCsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private TakeMailAttachmentCsReq() {
mailIdList_ = emptyIntList();
}
/**
* @return a new empty instance of {@code TakeMailAttachmentCsReq}
*/
public static TakeMailAttachmentCsReq newInstance() {
return new TakeMailAttachmentCsReq();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.class, emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.Builder.class);
}
public static final int MAIL_ID_LIST_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList mailIdList_ =
emptyIntList();
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return whether the mailIdList field is set
* @return A list containing the mailIdList.
*/
public boolean hasMailIdList() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
public java.util.List<java.lang.Integer>
getMailIdListList() {
return mailIdList_;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return this
* @return The count of mailIdList.
*/
public TakeMailAttachmentCsReq clearMailIdList() {
bitField0_ &= ~0x00000001;
mailIdList.clear();
return this;
public int getMailIdListCount() {
return mailIdList_.size();
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
*
* This method returns the internal storage object without modifying any has state.
* The returned object should not be modified and be treated as read-only.
*
* Use {@link #getMutableMailIdList()} if you want to modify it.
*
* @return internal storage object for reading
* @param index The index of the element to return.
* @return The mailIdList at the given index.
*/
public RepeatedInt getMailIdList() {
return mailIdList;
public int getMailIdList(int index) {
return mailIdList_.getInt(index);
}
private int mailIdListMemoizedSerializedSize = -1;
public static final int OPTIONAL_REWARD_ID_FIELD_NUMBER = 9;
private int optionalRewardId_ = 0;
/**
* <code>repeated uint32 mail_id_list = 12;</code>
*
* This method returns the internal storage object and sets the corresponding
* has state. The returned object will become part of this message and its
* contents may be modified as long as the has state is not cleared.
*
* @return internal storage object for modifications
* <code>uint32 optional_reward_id = 9;</code>
* @return The optionalRewardId.
*/
public RepeatedInt getMutableMailIdList() {
bitField0_ |= 0x00000001;
return mailIdList;
@java.lang.Override
public int getOptionalRewardId() {
return optionalRewardId_;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param value the mailIdList to add
* @return this
*/
public TakeMailAttachmentCsReq addMailIdList(final int value) {
bitField0_ |= 0x00000001;
mailIdList.add(value);
return this;
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;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param values the mailIdList to add
* @return this
*/
public TakeMailAttachmentCsReq addAllMailIdList(final int... values) {
bitField0_ |= 0x00000001;
mailIdList.addAll(values);
return this;
}
@Override
public TakeMailAttachmentCsReq copyFrom(final TakeMailAttachmentCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
mailIdList.copyFrom(other.mailIdList);
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (optionalRewardId_ != 0) {
output.writeUInt32(9, optionalRewardId_);
}
return this;
if (getMailIdListList().size() > 0) {
output.writeUInt32NoTag(98);
output.writeUInt32NoTag(mailIdListMemoizedSerializedSize);
}
for (int i = 0; i < mailIdList_.size(); i++) {
output.writeUInt32NoTag(mailIdList_.getInt(i));
}
getUnknownFields().writeTo(output);
}
@Override
public TakeMailAttachmentCsReq mergeFrom(final TakeMailAttachmentCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasMailIdList()) {
getMutableMailIdList().addAll(other.mailIdList);
}
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public TakeMailAttachmentCsReq clear() {
if (isEmpty()) {
return this;
size = 0;
if (optionalRewardId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, optionalRewardId_);
}
cachedSize = -1;
bitField0_ = 0;
mailIdList.clear();
return this;
}
@Override
public TakeMailAttachmentCsReq clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
mailIdList.clear();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof TakeMailAttachmentCsReq)) {
return false;
}
TakeMailAttachmentCsReq other = (TakeMailAttachmentCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasMailIdList() || mailIdList.equals(other.mailIdList));
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
for (int i = 0; i < mailIdList.length(); i++) {
output.writeRawByte((byte) 96);
output.writeUInt32NoTag(mailIdList.array()[i]);
{
int dataSize = 0;
for (int i = 0; i < mailIdList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(mailIdList_.getInt(i));
}
size += dataSize;
if (!getMailIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
mailIdListMemoizedSerializedSize = dataSize;
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += (1 * mailIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mailIdList);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public TakeMailAttachmentCsReq mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 98: {
// mailIdList [packed=true]
input.readPackedUInt32(mailIdList, tag);
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
case 96: {
// mailIdList [packed=false]
tag = input.readRepeatedUInt32(mailIdList, tag);
bitField0_ |= 0x00000001;
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq)) {
return super.equals(obj);
}
emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq other = (emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq) obj;
if (!getMailIdListList()
.equals(other.getMailIdListList())) return false;
if (getOptionalRewardId()
!= other.getOptionalRewardId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeRepeatedUInt32(FieldNames.mailIdList, mailIdList);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getMailIdListCount() > 0) {
hash = (37 * hash) + MAIL_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getMailIdListList().hashCode();
}
hash = (37 * hash) + OPTIONAL_REWARD_ID_FIELD_NUMBER;
hash = (53 * hash) + getOptionalRewardId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public TakeMailAttachmentCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code TakeMailAttachmentCsReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:TakeMailAttachmentCsReq)
emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.class, emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.Builder.class);
}
// Construct using emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
mailIdList_ = emptyIntList();
optionalRewardId_ = 0;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1612269328:
case 1599691450: {
if (input.isAtField(FieldNames.mailIdList)) {
if (!input.trySkipNullValue()) {
input.readRepeatedUInt32(mailIdList);
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstanceForType() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq build() {
emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq buildPartial() {
emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq result = new emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
mailIdList_.makeImmutable();
result.mailIdList_ = mailIdList_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.optionalRewardId_ = optionalRewardId_;
}
}
input.endObject();
return this;
}
@Override
public TakeMailAttachmentCsReq clone() {
return new TakeMailAttachmentCsReq().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static TakeMailAttachmentCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), data).checkInitialized();
}
public static TakeMailAttachmentCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), input).checkInitialized();
}
public static TakeMailAttachmentCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), input).checkInitialized();
}
/**
* @return factory for creating TakeMailAttachmentCsReq messages
*/
public static MessageFactory<TakeMailAttachmentCsReq> getFactory() {
return TakeMailAttachmentCsReqFactory.INSTANCE;
}
private enum TakeMailAttachmentCsReqFactory implements MessageFactory<TakeMailAttachmentCsReq> {
INSTANCE;
@Override
public TakeMailAttachmentCsReq create() {
return TakeMailAttachmentCsReq.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq) {
return mergeFrom((emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq other) {
if (other == emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.getDefaultInstance()) return this;
if (!other.mailIdList_.isEmpty()) {
if (mailIdList_.isEmpty()) {
mailIdList_ = other.mailIdList_;
mailIdList_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureMailIdListIsMutable();
mailIdList_.addAll(other.mailIdList_);
}
onChanged();
}
if (other.getOptionalRewardId() != 0) {
setOptionalRewardId(other.getOptionalRewardId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 72: {
optionalRewardId_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 72
case 96: {
int v = input.readUInt32();
ensureMailIdListIsMutable();
mailIdList_.addInt(v);
break;
} // case 96
case 98: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureMailIdListIsMutable();
while (input.getBytesUntilLimit() > 0) {
mailIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
} // case 98
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList mailIdList_ = emptyIntList();
private void ensureMailIdListIsMutable() {
if (!mailIdList_.isModifiable()) {
mailIdList_ = makeMutableCopy(mailIdList_);
}
bitField0_ |= 0x00000001;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return A list containing the mailIdList.
*/
public java.util.List<java.lang.Integer>
getMailIdListList() {
mailIdList_.makeImmutable();
return mailIdList_;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return The count of mailIdList.
*/
public int getMailIdListCount() {
return mailIdList_.size();
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param index The index of the element to return.
* @return The mailIdList at the given index.
*/
public int getMailIdList(int index) {
return mailIdList_.getInt(index);
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param index The index to set the value at.
* @param value The mailIdList to set.
* @return This builder for chaining.
*/
public Builder setMailIdList(
int index, int value) {
ensureMailIdListIsMutable();
mailIdList_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param value The mailIdList to add.
* @return This builder for chaining.
*/
public Builder addMailIdList(int value) {
ensureMailIdListIsMutable();
mailIdList_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @param values The mailIdList to add.
* @return This builder for chaining.
*/
public Builder addAllMailIdList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureMailIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mailIdList_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>repeated uint32 mail_id_list = 12;</code>
* @return This builder for chaining.
*/
public Builder clearMailIdList() {
mailIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int optionalRewardId_ ;
/**
* <code>uint32 optional_reward_id = 9;</code>
* @return The optionalRewardId.
*/
@java.lang.Override
public int getOptionalRewardId() {
return optionalRewardId_;
}
/**
* <code>uint32 optional_reward_id = 9;</code>
* @param value The optionalRewardId to set.
* @return This builder for chaining.
*/
public Builder setOptionalRewardId(int value) {
optionalRewardId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>uint32 optional_reward_id = 9;</code>
* @return This builder for chaining.
*/
public Builder clearOptionalRewardId() {
bitField0_ = (bitField0_ & ~0x00000002);
optionalRewardId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:TakeMailAttachmentCsReq)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName mailIdList = FieldName.forField("mailIdList", "mail_id_list");
// @@protoc_insertion_point(class_scope:TakeMailAttachmentCsReq)
private static final emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq();
}
public static emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TakeMailAttachmentCsReq>
PARSER = new com.google.protobuf.AbstractParser<TakeMailAttachmentCsReq>() {
@java.lang.Override
public TakeMailAttachmentCsReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<TakeMailAttachmentCsReq> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TakeMailAttachmentCsReq> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TakeMailAttachmentCsReq_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_TakeMailAttachmentCsReq_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\035TakeMailAttachmentCsReq.proto\"K\n\027TakeM" +
"ailAttachmentCsReq\022\024\n\014mail_id_list\030\014 \003(\r" +
"\022\032\n\022optional_reward_id\030\t \001(\rB\025\n\023emu.luna" +
"rcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_TakeMailAttachmentCsReq_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TakeMailAttachmentCsReq_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_TakeMailAttachmentCsReq_descriptor,
new java.lang.String[] { "MailIdList", "OptionalRewardId", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@@ -1,340 +1,565 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TextJoinInfo.proto
// Protobuf Java Version: 4.26.0-rc1
package emu.lunarcore.proto;
import java.io.IOException;
import us.hebi.quickbuf.FieldName;
import us.hebi.quickbuf.InvalidProtocolBufferException;
import us.hebi.quickbuf.JsonSink;
import us.hebi.quickbuf.JsonSource;
import us.hebi.quickbuf.MessageFactory;
import us.hebi.quickbuf.ProtoMessage;
import us.hebi.quickbuf.ProtoSink;
import us.hebi.quickbuf.ProtoSource;
public final class TextJoinInfoOuterClass {
private TextJoinInfoOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
TextJoinInfoOuterClass.class.getName());
}
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 TextJoinInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:TextJoinInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 text_item_id = 1;</code>
* @return The textItemId.
*/
int getTextItemId();
/**
* <code>uint32 text_item_config_id = 6;</code>
* @return The textItemConfigId.
*/
int getTextItemConfigId();
}
/**
* Protobuf type {@code TextJoinInfo}
*/
public static final class TextJoinInfo extends ProtoMessage<TextJoinInfo> implements Cloneable {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 text_item_id = 2;</code>
*/
private int textItemId;
/**
* <code>optional uint32 text_item_config_id = 3;</code>
*/
private int textItemConfigId;
public static final class TextJoinInfo extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TextJoinInfo)
TextJoinInfoOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
TextJoinInfo.class.getName());
}
// Use TextJoinInfo.newBuilder() to construct.
private TextJoinInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private TextJoinInfo() {
}
/**
* @return a new empty instance of {@code TextJoinInfo}
*/
public static TextJoinInfo newInstance() {
return new TextJoinInfo();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor;
}
/**
* <code>optional uint32 text_item_id = 2;</code>
* @return whether the textItemId field is set
*/
public boolean hasTextItemId() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.class, emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.Builder.class);
}
public static final int TEXT_ITEM_ID_FIELD_NUMBER = 1;
private int textItemId_ = 0;
/**
* <code>optional uint32 text_item_id = 2;</code>
* @return this
*/
public TextJoinInfo clearTextItemId() {
bitField0_ &= ~0x00000001;
textItemId = 0;
return this;
}
/**
* <code>optional uint32 text_item_id = 2;</code>
* @return the textItemId
* <code>uint32 text_item_id = 1;</code>
* @return The textItemId.
*/
@java.lang.Override
public int getTextItemId() {
return textItemId;
return textItemId_;
}
public static final int TEXT_ITEM_CONFIG_ID_FIELD_NUMBER = 6;
private int textItemConfigId_ = 0;
/**
* <code>optional uint32 text_item_id = 2;</code>
* @param value the textItemId to set
* @return this
*/
public TextJoinInfo setTextItemId(final int value) {
bitField0_ |= 0x00000001;
textItemId = value;
return this;
}
/**
* <code>optional uint32 text_item_config_id = 3;</code>
* @return whether the textItemConfigId field is set
*/
public boolean hasTextItemConfigId() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 text_item_config_id = 3;</code>
* @return this
*/
public TextJoinInfo clearTextItemConfigId() {
bitField0_ &= ~0x00000002;
textItemConfigId = 0;
return this;
}
/**
* <code>optional uint32 text_item_config_id = 3;</code>
* @return the textItemConfigId
* <code>uint32 text_item_config_id = 6;</code>
* @return The textItemConfigId.
*/
@java.lang.Override
public int getTextItemConfigId() {
return textItemConfigId;
return textItemConfigId_;
}
/**
* <code>optional uint32 text_item_config_id = 3;</code>
* @param value the textItemConfigId to set
* @return this
*/
public TextJoinInfo setTextItemConfigId(final int value) {
bitField0_ |= 0x00000002;
textItemConfigId = value;
return this;
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;
}
@Override
public TextJoinInfo copyFrom(final TextJoinInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
textItemId = other.textItemId;
textItemConfigId = other.textItemConfigId;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (textItemId_ != 0) {
output.writeUInt32(1, textItemId_);
}
return this;
if (textItemConfigId_ != 0) {
output.writeUInt32(6, textItemConfigId_);
}
getUnknownFields().writeTo(output);
}
@Override
public TextJoinInfo mergeFrom(final TextJoinInfo other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasTextItemId()) {
setTextItemId(other.textItemId);
}
if (other.hasTextItemConfigId()) {
setTextItemConfigId(other.textItemConfigId);
}
return this;
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
public TextJoinInfo clear() {
if (isEmpty()) {
return this;
size = 0;
if (textItemId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, textItemId_);
}
cachedSize = -1;
bitField0_ = 0;
textItemId = 0;
textItemConfigId = 0;
return this;
}
@Override
public TextJoinInfo clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof TextJoinInfo)) {
return false;
}
TextJoinInfo other = (TextJoinInfo) o;
return bitField0_ == other.bitField0_
&& (!hasTextItemId() || textItemId == other.textItemId)
&& (!hasTextItemConfigId() || textItemConfigId == other.textItemConfigId);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 16);
output.writeUInt32NoTag(textItemId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 24);
output.writeUInt32NoTag(textItemConfigId);
}
}
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemId);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemConfigId);
if (textItemConfigId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, textItemConfigId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public TextJoinInfo mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
int tag = input.readTag();
while (true) {
switch (tag) {
case 16: {
// textItemId
textItemId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// textItemConfigId
textItemConfigId = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo)) {
return super.equals(obj);
}
emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo other = (emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo) obj;
if (getTextItemId()
!= other.getTextItemId()) return false;
if (getTextItemConfigId()
!= other.getTextItemConfigId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.textItemId, textItemId);
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId);
}
output.endObject();
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TEXT_ITEM_ID_FIELD_NUMBER;
hash = (53 * hash) + getTextItemId();
hash = (37 * hash) + TEXT_ITEM_CONFIG_ID_FIELD_NUMBER;
hash = (53 * hash) + getTextItemConfigId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@Override
public TextJoinInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code TextJoinInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:TextJoinInfo)
emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.class, emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.Builder.class);
}
// Construct using emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
textItemId_ = 0;
textItemConfigId_ = 0;
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1565189915:
case -153409355: {
if (input.isAtField(FieldNames.textItemId)) {
if (!input.trySkipNullValue()) {
textItemId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1448403459:
case -1174236578: {
if (input.isAtField(FieldNames.textItemConfigId)) {
if (!input.trySkipNullValue()) {
textItemConfigId = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.TextJoinInfoOuterClass.internal_static_TextJoinInfo_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstanceForType() {
return emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo build() {
emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo buildPartial() {
emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo result = new emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.textItemId_ = textItemId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.textItemConfigId_ = textItemConfigId_;
}
}
input.endObject();
return this;
}
@Override
public TextJoinInfo clone() {
return new TextJoinInfo().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static TextJoinInfo parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new TextJoinInfo(), data).checkInitialized();
}
public static TextJoinInfo parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized();
}
public static TextJoinInfo parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new TextJoinInfo(), input).checkInitialized();
}
/**
* @return factory for creating TextJoinInfo messages
*/
public static MessageFactory<TextJoinInfo> getFactory() {
return TextJoinInfoFactory.INSTANCE;
}
private enum TextJoinInfoFactory implements MessageFactory<TextJoinInfo> {
INSTANCE;
@Override
public TextJoinInfo create() {
return TextJoinInfo.newInstance();
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo) {
return mergeFrom((emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo other) {
if (other == emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo.getDefaultInstance()) return this;
if (other.getTextItemId() != 0) {
setTextItemId(other.getTextItemId());
}
if (other.getTextItemConfigId() != 0) {
setTextItemConfigId(other.getTextItemConfigId());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
textItemId_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 48: {
textItemConfigId_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int textItemId_ ;
/**
* <code>uint32 text_item_id = 1;</code>
* @return The textItemId.
*/
@java.lang.Override
public int getTextItemId() {
return textItemId_;
}
/**
* <code>uint32 text_item_id = 1;</code>
* @param value The textItemId to set.
* @return This builder for chaining.
*/
public Builder setTextItemId(int value) {
textItemId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>uint32 text_item_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearTextItemId() {
bitField0_ = (bitField0_ & ~0x00000001);
textItemId_ = 0;
onChanged();
return this;
}
private int textItemConfigId_ ;
/**
* <code>uint32 text_item_config_id = 6;</code>
* @return The textItemConfigId.
*/
@java.lang.Override
public int getTextItemConfigId() {
return textItemConfigId_;
}
/**
* <code>uint32 text_item_config_id = 6;</code>
* @param value The textItemConfigId to set.
* @return This builder for chaining.
*/
public Builder setTextItemConfigId(int value) {
textItemConfigId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>uint32 text_item_config_id = 6;</code>
* @return This builder for chaining.
*/
public Builder clearTextItemConfigId() {
bitField0_ = (bitField0_ & ~0x00000002);
textItemConfigId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:TextJoinInfo)
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName textItemId = FieldName.forField("textItemId", "text_item_id");
static final FieldName textItemConfigId = FieldName.forField("textItemConfigId", "text_item_config_id");
// @@protoc_insertion_point(class_scope:TextJoinInfo)
private static final emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo();
}
public static emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TextJoinInfo>
PARSER = new com.google.protobuf.AbstractParser<TextJoinInfo>() {
@java.lang.Override
public TextJoinInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<TextJoinInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TextJoinInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.TextJoinInfoOuterClass.TextJoinInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_TextJoinInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_TextJoinInfo_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\022TextJoinInfo.proto\"A\n\014TextJoinInfo\022\024\n\014" +
"text_item_id\030\001 \001(\r\022\033\n\023text_item_config_i" +
"d\030\006 \001(\rB\025\n\023emu.lunarcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_TextJoinInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_TextJoinInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_TextJoinInfo_descriptor,
new java.lang.String[] { "TextItemId", "TextItemConfigId", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}