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 {
public static final class ClientMailAttachmentItem extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ClientMailAttachmentItem)
ClientMailAttachmentItemOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 FKIPJPLMBFI = 2;</code>
*/
private int fKIPJPLMBFI;
/**
* <code>optional uint32 ANAFKBMJOBJ = 12;</code>
*/
private int aNAFKBMJOBJ;
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;
/**
* <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;
}
return this;
}
@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;
}
@Override
public ClientMailAttachmentItem clear() {
if (isEmpty()) {
return this;
}
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) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof ClientMailAttachmentItem)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (mailId_ != 0) {
output.writeUInt32(1, mailId_);
}
ClientMailAttachmentItem other = (ClientMailAttachmentItem) o;
return bitField0_ == other.bitField0_
&& (!hasFKIPJPLMBFI() || fKIPJPLMBFI == other.fKIPJPLMBFI)
&& (!hasANAFKBMJOBJ() || aNAFKBMJOBJ == other.aNAFKBMJOBJ);
if (itemId_ != 0) {
output.writeUInt32(8, itemId_);
}
getUnknownFields().writeTo(output);
}
@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);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(fKIPJPLMBFI);
size = 0;
if (mailId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, mailId_);
}
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)
@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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
@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_;
}
}
@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();
while (true) {
switch (tag) {
case 16: {
// fKIPJPLMBFI
fKIPJPLMBFI = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 96) {
case 0:
done = true;
break;
}
}
case 96: {
// aNAFKBMJOBJ
aNAFKBMJOBJ = input.readUInt32();
case 8: {
mailId_ = 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;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.fKIPJPLMBFI, fKIPJPLMBFI);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.aNAFKBMJOBJ, aNAFKBMJOBJ);
}
output.endObject();
}
@Override
public ClientMailAttachmentItem mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -581795918: {
if (input.isAtField(FieldNames.fKIPJPLMBFI)) {
if (!input.trySkipNullValue()) {
fKIPJPLMBFI = input.readUInt32();
} // case 8
case 64: {
itemId_ = 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;
}
} // case 64
default: {
input.skipUnknownField();
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;
}
input.endObject();
/**
* <code>uint32 item_id = 8;</code>
* @return This builder for chaining.
*/
public Builder clearItemId() {
bitField0_ = (bitField0_ & ~0x00000001);
itemId_ = 0;
onChanged();
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();
}
private int mailId_ ;
/**
* @return factory for creating ClientMailAttachmentItem messages
* <code>uint32 mail_id = 1;</code>
* @return The mailId.
*/
public static MessageFactory<ClientMailAttachmentItem> getFactory() {
return ClientMailAttachmentItemFactory.INSTANCE;
@java.lang.Override
public int getMailId() {
return mailId_;
}
private enum ClientMailAttachmentItemFactory implements MessageFactory<ClientMailAttachmentItem> {
INSTANCE;
@Override
public ClientMailAttachmentItem create() {
return ClientMailAttachmentItem.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 mail_id = 1;</code>
* @param value The mailId to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName fKIPJPLMBFI = FieldName.forField("FKIPJPLMBFI");
public Builder setMailId(int value) {
static final FieldName aNAFKBMJOBJ = FieldName.forField("ANAFKBMJOBJ");
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)
}
// @@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 {
public static final class DiscardRelicCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DiscardRelicCsReq)
DiscardRelicCsReqOrBuilder {
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;
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;
@Override
public DiscardRelicCsReq copyFrom(final DiscardRelicCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
relicUniqueId = other.relicUniqueId;
isDiscard = other.isDiscard;
}
return this;
}
@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;
}
@Override
public DiscardRelicCsReq clear() {
if (isEmpty()) {
return this;
}
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) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof DiscardRelicCsReq)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (isDiscard_ != false) {
output.writeBool(1, isDiscard_);
}
DiscardRelicCsReq other = (DiscardRelicCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasRelicUniqueId() || relicUniqueId == other.relicUniqueId)
&& (!hasIsDiscard() || isDiscard == other.isDiscard);
if (relicUniqueId_ != 0) {
output.writeUInt32(13, relicUniqueId_);
}
getUnknownFields().writeTo(output);
}
@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);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(relicUniqueId);
size = 0;
if (isDiscard_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isDiscard_);
}
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)
@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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
@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_;
}
}
@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();
while (true) {
switch (tag) {
case 104: {
// relicUniqueId
relicUniqueId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 8) {
case 0:
done = true;
break;
}
}
case 8: {
// isDiscard
isDiscard = input.readBool();
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;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.relicUniqueId, relicUniqueId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeBool(FieldNames.isDiscard, isDiscard);
}
output.endObject();
}
@Override
public DiscardRelicCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -1966200481:
case 49648253: {
if (input.isAtField(FieldNames.relicUniqueId)) {
if (!input.trySkipNullValue()) {
relicUniqueId = input.readUInt32();
} // case 8
case 104: {
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;
}
} // case 104
default: {
input.skipUnknownField();
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;
}
input.endObject();
/**
* <code>uint32 relic_unique_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearRelicUniqueId() {
bitField0_ = (bitField0_ & ~0x00000001);
relicUniqueId_ = 0;
onChanged();
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();
}
private boolean isDiscard_ ;
/**
* @return factory for creating DiscardRelicCsReq messages
* <code>bool is_discard = 1;</code>
* @return The isDiscard.
*/
public static MessageFactory<DiscardRelicCsReq> getFactory() {
return DiscardRelicCsReqFactory.INSTANCE;
@java.lang.Override
public boolean getIsDiscard() {
return isDiscard_;
}
private enum DiscardRelicCsReqFactory implements MessageFactory<DiscardRelicCsReq> {
INSTANCE;
@Override
public DiscardRelicCsReq create() {
return DiscardRelicCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>bool is_discard = 1;</code>
* @param value The isDiscard to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName relicUniqueId = FieldName.forField("relicUniqueId", "relic_unique_id");
public Builder setIsDiscard(boolean value) {
static final FieldName isDiscard = FieldName.forField("isDiscard", "is_discard");
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)
}
// @@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 {
public static final class EnableRogueTalentCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:EnableRogueTalentCsReq)
EnableRogueTalentCsReqOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 talent_id = 13;</code>
*/
private int talentId;
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;
@Override
public EnableRogueTalentCsReq copyFrom(final EnableRogueTalentCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
talentId = other.talentId;
}
return this;
}
@Override
public EnableRogueTalentCsReq mergeFrom(final EnableRogueTalentCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasTalentId()) {
setTalentId(other.talentId);
}
return this;
}
@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) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof EnableRogueTalentCsReq)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (talentId_ != 0) {
output.writeUInt32(3, talentId_);
}
EnableRogueTalentCsReq other = (EnableRogueTalentCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasTalentId() || talentId == other.talentId);
getUnknownFields().writeTo(output);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(talentId);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@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;
@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);
}
case 0: {
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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
default: {
if (!input.skipField(tag)) {
return this;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.EnableRogueTalentCsReqOuterClass.internal_static_EnableRogueTalentCsReq_descriptor;
}
tag = input.readTag();
break;
@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_;
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.talentId, talentId);
}
output.endObject();
}
@Override
public EnableRogueTalentCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
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;
}
@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 {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
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());
}
input.endObject();
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@Override
public EnableRogueTalentCsReq clone() {
return new EnableRogueTalentCsReq().copyFrom(this);
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
@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();
}
public static EnableRogueTalentCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new EnableRogueTalentCsReq(), data).checkInitialized();
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
}
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();
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_ ;
/**
* @return factory for creating EnableRogueTalentCsReq messages
* <code>uint32 talent_id = 3;</code>
* @return The talentId.
*/
public static MessageFactory<EnableRogueTalentCsReq> getFactory() {
return EnableRogueTalentCsReqFactory.INSTANCE;
@java.lang.Override
public int getTalentId() {
return talentId_;
}
private enum EnableRogueTalentCsReqFactory implements MessageFactory<EnableRogueTalentCsReq> {
INSTANCE;
@Override
public EnableRogueTalentCsReq create() {
return EnableRogueTalentCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 talent_id = 3;</code>
* @param value The talentId to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName talentId = FieldName.forField("talentId", "talent_id");
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)
}
// @@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,364 +1,705 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GetRogueScoreRewardInfoScRsp.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 GetRogueScoreRewardInfoScRspOuterClass {
private GetRogueScoreRewardInfoScRspOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
GetRogueScoreRewardInfoScRspOuterClass.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 GetRogueScoreRewardInfoScRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetRogueScoreRewardInfoScRsp)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
* @return Whether the scoreRewardInfo field is set.
*/
boolean hasScoreRewardInfo();
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
* @return The scoreRewardInfo.
*/
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo();
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder();
/**
* <code>uint32 retcode = 4;</code>
* @return The retcode.
*/
int getRetcode();
}
/**
* Protobuf type {@code GetRogueScoreRewardInfoScRsp}
*/
public static final class GetRogueScoreRewardInfoScRsp extends ProtoMessage<GetRogueScoreRewardInfoScRsp> implements Cloneable {
public static final class GetRogueScoreRewardInfoScRsp extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:GetRogueScoreRewardInfoScRsp)
GetRogueScoreRewardInfoScRspOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 retcode = 8;</code>
*/
private int retcode;
/**
* <code>optional .RogueScoreRewardInfo score_reward_info = 15;</code>
*/
private final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo = RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.newInstance();
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
GetRogueScoreRewardInfoScRsp.class.getName());
}
// Use GetRogueScoreRewardInfoScRsp.newBuilder() to construct.
private GetRogueScoreRewardInfoScRsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private GetRogueScoreRewardInfoScRsp() {
}
/**
* @return a new empty instance of {@code GetRogueScoreRewardInfoScRsp}
*/
public static GetRogueScoreRewardInfoScRsp newInstance() {
return new GetRogueScoreRewardInfoScRsp();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor;
}
/**
* <code>optional uint32 retcode = 8;</code>
* @return whether the retcode field is set
*/
public boolean hasRetcode() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.class, emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.Builder.class);
}
private int bitField0_;
public static final int SCORE_REWARD_INFO_FIELD_NUMBER = 13;
private emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo_;
/**
* <code>optional uint32 retcode = 8;</code>
* @return this
*/
public GetRogueScoreRewardInfoScRsp clearRetcode() {
bitField0_ &= ~0x00000001;
retcode = 0;
return this;
}
/**
* <code>optional uint32 retcode = 8;</code>
* @return the retcode
*/
public int getRetcode() {
return retcode;
}
/**
* <code>optional uint32 retcode = 8;</code>
* @param value the retcode to set
* @return this
*/
public GetRogueScoreRewardInfoScRsp setRetcode(final int value) {
bitField0_ |= 0x00000001;
retcode = value;
return this;
}
/**
* <code>optional .RogueScoreRewardInfo score_reward_info = 15;</code>
* @return whether the scoreRewardInfo field is set
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
* @return Whether the scoreRewardInfo field is set.
*/
@java.lang.Override
public boolean hasScoreRewardInfo() {
return (bitField0_ & 0x00000002) != 0;
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>optional .RogueScoreRewardInfo score_reward_info = 15;</code>
* @return this
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
* @return The scoreRewardInfo.
*/
public GetRogueScoreRewardInfoScRsp clearScoreRewardInfo() {
bitField0_ &= ~0x00000002;
scoreRewardInfo.clear();
return this;
@java.lang.Override
public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() {
return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_;
}
/**
* <code>optional .RogueScoreRewardInfo score_reward_info = 15;</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 #getMutableScoreRewardInfo()} if you want to modify it.
*
* @return internal storage object for reading
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() {
return scoreRewardInfo;
@java.lang.Override
public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder() {
return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_;
}
public static final int RETCODE_FIELD_NUMBER = 4;
private int retcode_ = 0;
/**
* <code>optional .RogueScoreRewardInfo score_reward_info = 15;</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 retcode = 4;</code>
* @return The retcode.
*/
public RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getMutableScoreRewardInfo() {
bitField0_ |= 0x00000002;
return scoreRewardInfo;
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>optional .RogueScoreRewardInfo score_reward_info = 15;</code>
* @param value the scoreRewardInfo to set
* @return this
*/
public GetRogueScoreRewardInfoScRsp setScoreRewardInfo(
final RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) {
bitField0_ |= 0x00000002;
scoreRewardInfo.copyFrom(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;
@Override
public GetRogueScoreRewardInfoScRsp copyFrom(final GetRogueScoreRewardInfoScRsp other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
retcode = other.retcode;
scoreRewardInfo.copyFrom(other.scoreRewardInfo);
}
return this;
}
@Override
public GetRogueScoreRewardInfoScRsp mergeFrom(final GetRogueScoreRewardInfoScRsp other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasRetcode()) {
setRetcode(other.retcode);
}
if (other.hasScoreRewardInfo()) {
getMutableScoreRewardInfo().mergeFrom(other.scoreRewardInfo);
}
return this;
}
@Override
public GetRogueScoreRewardInfoScRsp clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
retcode = 0;
scoreRewardInfo.clear();
return this;
}
@Override
public GetRogueScoreRewardInfoScRsp clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
scoreRewardInfo.clearQuick();
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof GetRogueScoreRewardInfoScRsp)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (retcode_ != 0) {
output.writeUInt32(4, retcode_);
}
GetRogueScoreRewardInfoScRsp other = (GetRogueScoreRewardInfoScRsp) o;
return bitField0_ == other.bitField0_
&& (!hasRetcode() || retcode == other.retcode)
&& (!hasScoreRewardInfo() || scoreRewardInfo.equals(other.scoreRewardInfo));
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(13, getScoreRewardInfo());
}
getUnknownFields().writeTo(output);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 122);
output.writeMessageNoTag(scoreRewardInfo);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(retcode);
size = 0;
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, retcode_);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeMessageSizeNoTag(scoreRewardInfo);
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getScoreRewardInfo());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public GetRogueScoreRewardInfoScRsp mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp)) {
return super.equals(obj);
}
emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp other = (emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp) obj;
if (hasScoreRewardInfo() != other.hasScoreRewardInfo()) return false;
if (hasScoreRewardInfo()) {
if (!getScoreRewardInfo()
.equals(other.getScoreRewardInfo())) return false;
}
if (getRetcode()
!= other.getRetcode()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScoreRewardInfo()) {
hash = (37 * hash) + SCORE_REWARD_INFO_FIELD_NUMBER;
hash = (53 * hash) + getScoreRewardInfo().hashCode();
}
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp 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.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp 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.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp 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.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp 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.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp 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.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp 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 GetRogueScoreRewardInfoScRsp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:GetRogueScoreRewardInfoScRsp)
emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRspOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.class, emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.Builder.class);
}
// Construct using emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getScoreRewardInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scoreRewardInfo_ = null;
if (scoreRewardInfoBuilder_ != null) {
scoreRewardInfoBuilder_.dispose();
scoreRewardInfoBuilder_ = null;
}
retcode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.internal_static_GetRogueScoreRewardInfoScRsp_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp getDefaultInstanceForType() {
return emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp build() {
emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp buildPartial() {
emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp result = new emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scoreRewardInfo_ = scoreRewardInfoBuilder_ == null
? scoreRewardInfo_
: scoreRewardInfoBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.retcode_ = retcode_;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp) {
return mergeFrom((emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp other) {
if (other == emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp.getDefaultInstance()) return this;
if (other.hasScoreRewardInfo()) {
mergeScoreRewardInfo(other.getScoreRewardInfo());
}
if (other.getRetcode() != 0) {
setRetcode(other.getRetcode());
}
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();
while (true) {
switch (tag) {
case 64: {
// retcode
retcode = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 122) {
case 0:
done = true;
break;
}
}
case 122: {
// scoreRewardInfo
input.readMessage(scoreRewardInfo);
case 32: {
retcode_ = 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;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.retcode, retcode);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeMessage(FieldNames.scoreRewardInfo, scoreRewardInfo);
}
output.endObject();
}
@Override
public GetRogueScoreRewardInfoScRsp mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1097936398: {
if (input.isAtField(FieldNames.retcode)) {
if (!input.trySkipNullValue()) {
retcode = input.readUInt32();
} // case 32
case 106: {
input.readMessage(
getScoreRewardInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 106
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 emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo scoreRewardInfo_;
private com.google.protobuf.SingleFieldBuilder<
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder> scoreRewardInfoBuilder_;
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
* @return Whether the scoreRewardInfo field is set.
*/
public boolean hasScoreRewardInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
* @return The scoreRewardInfo.
*/
public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo getScoreRewardInfo() {
if (scoreRewardInfoBuilder_ == null) {
return scoreRewardInfo_ == null ? emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_;
} else {
return scoreRewardInfoBuilder_.getMessage();
}
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public Builder setScoreRewardInfo(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) {
if (scoreRewardInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scoreRewardInfo_ = value;
} else {
scoreRewardInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public Builder setScoreRewardInfo(
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder builderForValue) {
if (scoreRewardInfoBuilder_ == null) {
scoreRewardInfo_ = builderForValue.build();
} else {
scoreRewardInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public Builder mergeScoreRewardInfo(emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo value) {
if (scoreRewardInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
scoreRewardInfo_ != null &&
scoreRewardInfo_ != emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance()) {
getScoreRewardInfoBuilder().mergeFrom(value);
} else {
scoreRewardInfo_ = value;
}
} else {
input.skipUnknownField();
scoreRewardInfoBuilder_.mergeFrom(value);
}
break;
if (scoreRewardInfo_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
case 672564399:
case 751191441: {
if (input.isAtField(FieldNames.scoreRewardInfo)) {
if (!input.trySkipNullValue()) {
input.readMessage(scoreRewardInfo);
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public Builder clearScoreRewardInfo() {
bitField0_ = (bitField0_ & ~0x00000001);
scoreRewardInfo_ = null;
if (scoreRewardInfoBuilder_ != null) {
scoreRewardInfoBuilder_.dispose();
scoreRewardInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder getScoreRewardInfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getScoreRewardInfoFieldBuilder().getBuilder();
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
public emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder getScoreRewardInfoOrBuilder() {
if (scoreRewardInfoBuilder_ != null) {
return scoreRewardInfoBuilder_.getMessageOrBuilder();
} else {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
return scoreRewardInfo_ == null ?
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.getDefaultInstance() : scoreRewardInfo_;
}
}
/**
* <code>.RogueScoreRewardInfo score_reward_info = 13;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder>
getScoreRewardInfoFieldBuilder() {
if (scoreRewardInfoBuilder_ == null) {
scoreRewardInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfo.Builder, emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.RogueScoreRewardInfoOrBuilder>(
getScoreRewardInfo(),
getParentForChildren(),
isClean());
scoreRewardInfo_ = null;
}
input.endObject();
return scoreRewardInfoBuilder_;
}
private int retcode_ ;
/**
* <code>uint32 retcode = 4;</code>
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* <code>uint32 retcode = 4;</code>
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>uint32 retcode = 4;</code>
* @return This builder for chaining.
*/
public Builder clearRetcode() {
bitField0_ = (bitField0_ & ~0x00000002);
retcode_ = 0;
onChanged();
return this;
}
@Override
public GetRogueScoreRewardInfoScRsp clone() {
return new GetRogueScoreRewardInfoScRsp().copyFrom(this);
// @@protoc_insertion_point(builder_scope:GetRogueScoreRewardInfoScRsp)
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
// @@protoc_insertion_point(class_scope:GetRogueScoreRewardInfoScRsp)
private static final emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp();
}
public static GetRogueScoreRewardInfoScRsp parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), data).checkInitialized();
public static emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
public static GetRogueScoreRewardInfoScRsp parseFrom(final ProtoSource input) throws
IOException {
return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), input).checkInitialized();
private static final com.google.protobuf.Parser<GetRogueScoreRewardInfoScRsp>
PARSER = new com.google.protobuf.AbstractParser<GetRogueScoreRewardInfoScRsp>() {
@java.lang.Override
public GetRogueScoreRewardInfoScRsp 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<GetRogueScoreRewardInfoScRsp> parser() {
return PARSER;
}
public static GetRogueScoreRewardInfoScRsp parseFrom(final JsonSource input) throws
IOException {
return ProtoMessage.mergeFrom(new GetRogueScoreRewardInfoScRsp(), input).checkInitialized();
@java.lang.Override
public com.google.protobuf.Parser<GetRogueScoreRewardInfoScRsp> getParserForType() {
return PARSER;
}
/**
* @return factory for creating GetRogueScoreRewardInfoScRsp messages
*/
public static MessageFactory<GetRogueScoreRewardInfoScRsp> getFactory() {
return GetRogueScoreRewardInfoScRspFactory.INSTANCE;
@java.lang.Override
public emu.lunarcore.proto.GetRogueScoreRewardInfoScRspOuterClass.GetRogueScoreRewardInfoScRsp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
private enum GetRogueScoreRewardInfoScRspFactory implements MessageFactory<GetRogueScoreRewardInfoScRsp> {
INSTANCE;
@Override
public GetRogueScoreRewardInfoScRsp create() {
return GetRogueScoreRewardInfoScRsp.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
*/
static class FieldNames {
static final FieldName retcode = FieldName.forField("retcode");
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetRogueScoreRewardInfoScRsp_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable;
static final FieldName scoreRewardInfo = FieldName.forField("scoreRewardInfo", "score_reward_info");
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\"GetRogueScoreRewardInfoScRsp.proto\032\032Ro" +
"gueScoreRewardInfo.proto\"a\n\034GetRogueScor" +
"eRewardInfoScRsp\0220\n\021score_reward_info\030\r " +
"\001(\0132\025.RogueScoreRewardInfo\022\017\n\007retcode\030\004 " +
"\001(\rB\025\n\023emu.lunarcore.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.getDescriptor(),
});
internal_static_GetRogueScoreRewardInfoScRsp_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GetRogueScoreRewardInfoScRsp_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_GetRogueScoreRewardInfoScRsp_descriptor,
new java.lang.String[] { "ScoreRewardInfo", "Retcode", });
descriptor.resolveAllFeatures();
emu.lunarcore.proto.RogueScoreRewardInfoOuterClass.getDescriptor();
}
// @@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 {
public static final class MazeGroup extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:MazeGroup)
MazeGroupOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 group_id = 6;</code>
*/
private int groupId;
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;
@Override
public MazeGroup mergeFrom(final MazeGroup other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasGroupId()) {
setGroupId(other.groupId);
}
return this;
}
@Override
public MazeGroup clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
groupId = 0;
return this;
}
@Override
public MazeGroup clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof MazeGroup)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (modifyTime_ != 0L) {
output.writeInt64(2, modifyTime_);
}
MazeGroup other = (MazeGroup) o;
return bitField0_ == other.bitField0_
&& (!hasGroupId() || groupId == other.groupId);
if (groupId_ != 0) {
output.writeUInt32(6, groupId_);
}
getUnknownFields().writeTo(output);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 48);
output.writeUInt32NoTag(groupId);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(groupId);
size = 0;
if (modifyTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, modifyTime_);
}
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;
@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);
}
case 0: {
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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
default: {
if (!input.skipField(tag)) {
return this;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.MazeGroupOuterClass.internal_static_MazeGroup_descriptor;
}
tag = input.readTag();
break;
@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_;
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.groupId, groupId);
}
output.endObject();
}
@Override
public MazeGroup mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
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;
}
@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 {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
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());
}
input.endObject();
if (other.getModifyTime() != 0L) {
setModifyTime(other.getModifyTime());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@Override
public MazeGroup clone() {
return new MazeGroup().copyFrom(this);
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
@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();
}
public static MazeGroup parseFrom(final byte[] data) throws InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new MazeGroup(), data).checkInitialized();
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
}
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();
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_ ;
/**
* @return factory for creating MazeGroup messages
* <code>uint32 group_id = 6;</code>
* @return The groupId.
*/
public static MessageFactory<MazeGroup> getFactory() {
return MazeGroupFactory.INSTANCE;
@java.lang.Override
public int getGroupId() {
return groupId_;
}
private enum MazeGroupFactory implements MessageFactory<MazeGroup> {
INSTANCE;
@Override
public MazeGroup create() {
return MazeGroup.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 group_id = 6;</code>
* @param value The groupId to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName groupId = FieldName.forField("groupId", "group_id");
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)
}
// @@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,420 +1,639 @@
// Code generated by protocol buffer compiler. Do not edit!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RogueUnlockProgress.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 RogueUnlockProgressOuterClass {
private RogueUnlockProgressOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
RogueUnlockProgressOuterClass.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 RogueUnlockProgressOrBuilder extends
// @@protoc_insertion_point(interface_extends:RogueUnlockProgress)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool finish = 12;</code>
* @return The finish.
*/
boolean getFinish();
/**
* <code>uint32 progress = 9;</code>
* @return The progress.
*/
int getProgress();
/**
* <code>uint32 unlock_id = 8;</code>
* @return The unlockId.
*/
int getUnlockId();
}
/**
* Protobuf type {@code RogueUnlockProgress}
*/
public static final class RogueUnlockProgress extends ProtoMessage<RogueUnlockProgress> implements Cloneable {
public static final class RogueUnlockProgress extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:RogueUnlockProgress)
RogueUnlockProgressOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 unlock_id = 11;</code>
*/
private int unlockId;
/**
* <code>optional uint32 progress = 13;</code>
*/
private int progress;
/**
* <code>optional bool finish = 4;</code>
*/
private boolean finish;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 26,
/* patch= */ 0,
/* suffix= */ "-rc1",
RogueUnlockProgress.class.getName());
}
// Use RogueUnlockProgress.newBuilder() to construct.
private RogueUnlockProgress(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private RogueUnlockProgress() {
}
/**
* @return a new empty instance of {@code RogueUnlockProgress}
*/
public static RogueUnlockProgress newInstance() {
return new RogueUnlockProgress();
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor;
}
/**
* <code>optional uint32 unlock_id = 11;</code>
* @return whether the unlockId field is set
*/
public boolean hasUnlockId() {
return (bitField0_ & 0x00000001) != 0;
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.class, emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.Builder.class);
}
public static final int FINISH_FIELD_NUMBER = 12;
private boolean finish_ = false;
/**
* <code>optional uint32 unlock_id = 11;</code>
* @return this
*/
public RogueUnlockProgress clearUnlockId() {
bitField0_ &= ~0x00000001;
unlockId = 0;
return this;
}
/**
* <code>optional uint32 unlock_id = 11;</code>
* @return the unlockId
*/
public int getUnlockId() {
return unlockId;
}
/**
* <code>optional uint32 unlock_id = 11;</code>
* @param value the unlockId to set
* @return this
*/
public RogueUnlockProgress setUnlockId(final int value) {
bitField0_ |= 0x00000001;
unlockId = value;
return this;
}
/**
* <code>optional uint32 progress = 13;</code>
* @return whether the progress field is set
*/
public boolean hasProgress() {
return (bitField0_ & 0x00000002) != 0;
}
/**
* <code>optional uint32 progress = 13;</code>
* @return this
*/
public RogueUnlockProgress clearProgress() {
bitField0_ &= ~0x00000002;
progress = 0;
return this;
}
/**
* <code>optional uint32 progress = 13;</code>
* @return the progress
*/
public int getProgress() {
return progress;
}
/**
* <code>optional uint32 progress = 13;</code>
* @param value the progress to set
* @return this
*/
public RogueUnlockProgress setProgress(final int value) {
bitField0_ |= 0x00000002;
progress = value;
return this;
}
/**
* <code>optional bool finish = 4;</code>
* @return whether the finish field is set
*/
public boolean hasFinish() {
return (bitField0_ & 0x00000004) != 0;
}
/**
* <code>optional bool finish = 4;</code>
* @return this
*/
public RogueUnlockProgress clearFinish() {
bitField0_ &= ~0x00000004;
finish = false;
return this;
}
/**
* <code>optional bool finish = 4;</code>
* @return the finish
* <code>bool finish = 12;</code>
* @return The finish.
*/
@java.lang.Override
public boolean getFinish() {
return finish;
return finish_;
}
public static final int PROGRESS_FIELD_NUMBER = 9;
private int progress_ = 0;
/**
* <code>optional bool finish = 4;</code>
* @param value the finish to set
* @return this
* <code>uint32 progress = 9;</code>
* @return The progress.
*/
public RogueUnlockProgress setFinish(final boolean value) {
bitField0_ |= 0x00000004;
finish = value;
return this;
@java.lang.Override
public int getProgress() {
return progress_;
}
@Override
public RogueUnlockProgress copyFrom(final RogueUnlockProgress other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
unlockId = other.unlockId;
progress = other.progress;
finish = other.finish;
}
return this;
public static final int UNLOCK_ID_FIELD_NUMBER = 8;
private int unlockId_ = 0;
/**
* <code>uint32 unlock_id = 8;</code>
* @return The unlockId.
*/
@java.lang.Override
public int getUnlockId() {
return unlockId_;
}
@Override
public RogueUnlockProgress mergeFrom(final RogueUnlockProgress other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasUnlockId()) {
setUnlockId(other.unlockId);
}
if (other.hasProgress()) {
setProgress(other.progress);
}
if (other.hasFinish()) {
setFinish(other.finish);
}
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;
@Override
public RogueUnlockProgress clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
unlockId = 0;
progress = 0;
finish = false;
return this;
}
@Override
public RogueUnlockProgress clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof RogueUnlockProgress)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (unlockId_ != 0) {
output.writeUInt32(8, unlockId_);
}
RogueUnlockProgress other = (RogueUnlockProgress) o;
return bitField0_ == other.bitField0_
&& (!hasUnlockId() || unlockId == other.unlockId)
&& (!hasProgress() || progress == other.progress)
&& (!hasFinish() || finish == other.finish);
if (progress_ != 0) {
output.writeUInt32(9, progress_);
}
if (finish_ != false) {
output.writeBool(12, finish_);
}
getUnknownFields().writeTo(output);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 88);
output.writeUInt32NoTag(unlockId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeRawByte((byte) 104);
output.writeUInt32NoTag(progress);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeRawByte((byte) 32);
output.writeBoolNoTag(finish);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(unlockId);
size = 0;
if (unlockId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, unlockId_);
}
if ((bitField0_ & 0x00000002) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(progress);
if (progress_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, progress_);
}
if ((bitField0_ & 0x00000004) != 0) {
size += 2;
if (finish_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, finish_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@Override
@SuppressWarnings("fallthrough")
public RogueUnlockProgress mergeFrom(final ProtoSource input) throws IOException {
// Enabled Fall-Through Optimization (QuickBuffers)
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress)) {
return super.equals(obj);
}
emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress other = (emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress) obj;
if (getFinish()
!= other.getFinish()) return false;
if (getProgress()
!= other.getProgress()) return false;
if (getUnlockId()
!= other.getUnlockId()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FINISH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFinish());
hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + getProgress();
hash = (37 * hash) + UNLOCK_ID_FIELD_NUMBER;
hash = (53 * hash) + getUnlockId();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress 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.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress 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.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress 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.RogueUnlockProgressOuterClass.RogueUnlockProgress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress 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.RogueUnlockProgressOuterClass.RogueUnlockProgress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress 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.RogueUnlockProgressOuterClass.RogueUnlockProgress 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 RogueUnlockProgress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:RogueUnlockProgress)
emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.class, emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.Builder.class);
}
// Construct using emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
finish_ = false;
progress_ = 0;
unlockId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.RogueUnlockProgressOuterClass.internal_static_RogueUnlockProgress_descriptor;
}
@java.lang.Override
public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstanceForType() {
return emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.getDefaultInstance();
}
@java.lang.Override
public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress build() {
emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress buildPartial() {
emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress result = new emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.finish_ = finish_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.progress_ = progress_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.unlockId_ = unlockId_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress) {
return mergeFrom((emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress other) {
if (other == emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress.getDefaultInstance()) return this;
if (other.getFinish() != false) {
setFinish(other.getFinish());
}
if (other.getProgress() != 0) {
setProgress(other.getProgress());
}
if (other.getUnlockId() != 0) {
setUnlockId(other.getUnlockId());
}
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();
while (true) {
switch (tag) {
case 88: {
// unlockId
unlockId = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 104) {
case 0:
done = true;
break;
}
}
case 104: {
// progress
progress = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 32) {
break;
}
}
case 32: {
// finish
finish = input.readBool();
case 64: {
unlockId_ = input.readUInt32();
bitField0_ |= 0x00000004;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
default: {
if (!input.skipField(tag)) {
return this;
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.unlockId, unlockId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.progress, progress);
}
if ((bitField0_ & 0x00000004) != 0) {
output.writeBool(FieldNames.finish, finish);
}
output.endObject();
}
@Override
public RogueUnlockProgress mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case -210950273:
case 2050497526: {
if (input.isAtField(FieldNames.unlockId)) {
if (!input.trySkipNullValue()) {
unlockId = input.readUInt32();
bitField0_ |= 0x00000001;
}
} else {
input.skipUnknownField();
}
break;
}
case -1001078227: {
if (input.isAtField(FieldNames.progress)) {
if (!input.trySkipNullValue()) {
progress = input.readUInt32();
} // case 64
case 72: {
progress_ = input.readUInt32();
bitField0_ |= 0x00000002;
}
} else {
input.skipUnknownField();
}
break;
}
case -1274442605: {
if (input.isAtField(FieldNames.finish)) {
if (!input.trySkipNullValue()) {
finish = input.readBool();
bitField0_ |= 0x00000004;
}
} else {
input.skipUnknownField();
}
} // case 72
case 96: {
finish_ = input.readBool();
bitField0_ |= 0x00000001;
break;
}
} // case 96
default: {
input.skipUnknownField();
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 boolean finish_ ;
/**
* <code>bool finish = 12;</code>
* @return The finish.
*/
@java.lang.Override
public boolean getFinish() {
return finish_;
}
/**
* <code>bool finish = 12;</code>
* @param value The finish to set.
* @return This builder for chaining.
*/
public Builder setFinish(boolean value) {
finish_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
input.endObject();
/**
* <code>bool finish = 12;</code>
* @return This builder for chaining.
*/
public Builder clearFinish() {
bitField0_ = (bitField0_ & ~0x00000001);
finish_ = false;
onChanged();
return this;
}
@Override
public RogueUnlockProgress clone() {
return new RogueUnlockProgress().copyFrom(this);
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
}
public static RogueUnlockProgress parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new RogueUnlockProgress(), data).checkInitialized();
}
public static RogueUnlockProgress parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized();
}
public static RogueUnlockProgress parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new RogueUnlockProgress(), input).checkInitialized();
}
private int progress_ ;
/**
* @return factory for creating RogueUnlockProgress messages
* <code>uint32 progress = 9;</code>
* @return The progress.
*/
public static MessageFactory<RogueUnlockProgress> getFactory() {
return RogueUnlockProgressFactory.INSTANCE;
@java.lang.Override
public int getProgress() {
return progress_;
}
private enum RogueUnlockProgressFactory implements MessageFactory<RogueUnlockProgress> {
INSTANCE;
@Override
public RogueUnlockProgress create() {
return RogueUnlockProgress.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 progress = 9;</code>
* @param value The progress to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName unlockId = FieldName.forField("unlockId", "unlock_id");
public Builder setProgress(int value) {
static final FieldName progress = FieldName.forField("progress");
progress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>uint32 progress = 9;</code>
* @return This builder for chaining.
*/
public Builder clearProgress() {
bitField0_ = (bitField0_ & ~0x00000002);
progress_ = 0;
onChanged();
return this;
}
static final FieldName finish = FieldName.forField("finish");
private int unlockId_ ;
/**
* <code>uint32 unlock_id = 8;</code>
* @return The unlockId.
*/
@java.lang.Override
public int getUnlockId() {
return unlockId_;
}
/**
* <code>uint32 unlock_id = 8;</code>
* @param value The unlockId to set.
* @return This builder for chaining.
*/
public Builder setUnlockId(int value) {
unlockId_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* <code>uint32 unlock_id = 8;</code>
* @return This builder for chaining.
*/
public Builder clearUnlockId() {
bitField0_ = (bitField0_ & ~0x00000004);
unlockId_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RogueUnlockProgress)
}
// @@protoc_insertion_point(class_scope:RogueUnlockProgress)
private static final emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress();
}
public static emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<RogueUnlockProgress>
PARSER = new com.google.protobuf.AbstractParser<RogueUnlockProgress>() {
@java.lang.Override
public RogueUnlockProgress 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<RogueUnlockProgress> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<RogueUnlockProgress> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.lunarcore.proto.RogueUnlockProgressOuterClass.RogueUnlockProgress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_RogueUnlockProgress_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RogueUnlockProgress_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\031RogueUnlockProgress.proto\"J\n\023RogueUnlo" +
"ckProgress\022\016\n\006finish\030\014 \001(\010\022\020\n\010progress\030\t" +
" \001(\r\022\021\n\tunlock_id\030\010 \001(\rB\025\n\023emu.lunarcore" +
".protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_RogueUnlockProgress_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_RogueUnlockProgress_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RogueUnlockProgress_descriptor,
new java.lang.String[] { "Finish", "Progress", "UnlockId", });
descriptor.resolveAllFeatures();
}
// @@protoc_insertion_point(outer_class_scope)
}

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 {
public static final class SceneMonsterWaveParam extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:SceneMonsterWaveParam)
SceneMonsterWaveParamOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 level = 8;</code>
*/
private int level;
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;
@Override
public SceneMonsterWaveParam mergeFrom(final SceneMonsterWaveParam other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasLevel()) {
setLevel(other.level);
}
return this;
}
@Override
public SceneMonsterWaveParam clear() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
level = 0;
return this;
}
@Override
public SceneMonsterWaveParam clearQuick() {
if (isEmpty()) {
return this;
}
cachedSize = -1;
bitField0_ = 0;
return this;
}
@Override
public boolean equals(Object o) {
if (o == this) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof SceneMonsterWaveParam)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hardLevelGroup_ != 0) {
output.writeUInt32(3, hardLevelGroup_);
}
SceneMonsterWaveParam other = (SceneMonsterWaveParam) o;
return bitField0_ == other.bitField0_
&& (!hasLevel() || level == other.level);
if (level_ != 0) {
output.writeUInt32(8, level_);
}
if (eliteGroup_ != 0) {
output.writeUInt32(10, eliteGroup_);
}
getUnknownFields().writeTo(output);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 64);
output.writeUInt32NoTag(level);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(level);
size = 0;
if (hardLevelGroup_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, hardLevelGroup_);
}
if (level_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, 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;
@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);
}
case 0: {
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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
default: {
if (!input.skipField(tag)) {
return this;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.SceneMonsterWaveParamOuterClass.internal_static_SceneMonsterWaveParam_descriptor;
}
tag = input.readTag();
break;
@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_;
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.level, level);
}
output.endObject();
}
@Override
public SceneMonsterWaveParam mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 102865796: {
if (input.isAtField(FieldNames.level)) {
if (!input.trySkipNullValue()) {
level = input.readUInt32();
bitField0_ |= 0x00000001;
}
@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 {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
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());
}
input.endObject();
if (other.getLevel() != 0) {
setLevel(other.getLevel());
}
if (other.getEliteGroup() != 0) {
setEliteGroup(other.getEliteGroup());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@Override
public SceneMonsterWaveParam clone() {
return new SceneMonsterWaveParam().copyFrom(this);
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
@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();
}
public static SceneMonsterWaveParam parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new SceneMonsterWaveParam(), data).checkInitialized();
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
}
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();
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_ ;
/**
* @return factory for creating SceneMonsterWaveParam messages
* <code>uint32 hard_level_group = 3;</code>
* @return The hardLevelGroup.
*/
public static MessageFactory<SceneMonsterWaveParam> getFactory() {
return SceneMonsterWaveParamFactory.INSTANCE;
@java.lang.Override
public int getHardLevelGroup() {
return hardLevelGroup_;
}
private enum SceneMonsterWaveParamFactory implements MessageFactory<SceneMonsterWaveParam> {
INSTANCE;
@Override
public SceneMonsterWaveParam create() {
return SceneMonsterWaveParam.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 hard_level_group = 3;</code>
* @param value The hardLevelGroup to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName level = FieldName.forField("level");
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)
}
// @@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 {
public static final class TakeChallengeRewardCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TakeChallengeRewardCsReq)
TakeChallengeRewardCsReqOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>optional uint32 group_id = 1;</code>
*/
private int groupId;
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;
@Override
public TakeChallengeRewardCsReq copyFrom(final TakeChallengeRewardCsReq other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
groupId = other.groupId;
}
return this;
}
@Override
public TakeChallengeRewardCsReq mergeFrom(final TakeChallengeRewardCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasGroupId()) {
setGroupId(other.groupId);
}
return this;
}
@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) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof TakeChallengeRewardCsReq)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (groupId_ != 0) {
output.writeUInt32(1, groupId_);
}
TakeChallengeRewardCsReq other = (TakeChallengeRewardCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasGroupId() || groupId == other.groupId);
getUnknownFields().writeTo(output);
}
@Override
public void writeTo(final ProtoSink output) throws IOException {
if ((bitField0_ & 0x00000001) != 0) {
output.writeRawByte((byte) 8);
output.writeUInt32NoTag(groupId);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@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;
@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);
}
case 0: {
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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
default: {
if (!input.skipField(tag)) {
return this;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.TakeChallengeRewardCsReqOuterClass.internal_static_TakeChallengeRewardCsReq_descriptor;
}
tag = input.readTag();
break;
@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_;
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.groupId, groupId);
}
output.endObject();
}
@Override
public TakeChallengeRewardCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
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;
}
@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 {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
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());
}
input.endObject();
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@Override
public TakeChallengeRewardCsReq clone() {
return new TakeChallengeRewardCsReq().copyFrom(this);
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
@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();
}
public static TakeChallengeRewardCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new TakeChallengeRewardCsReq(), data).checkInitialized();
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
}
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();
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_ ;
/**
* @return factory for creating TakeChallengeRewardCsReq messages
* <code>uint32 group_id = 1;</code>
* @return The groupId.
*/
public static MessageFactory<TakeChallengeRewardCsReq> getFactory() {
return TakeChallengeRewardCsReqFactory.INSTANCE;
@java.lang.Override
public int getGroupId() {
return groupId_;
}
private enum TakeChallengeRewardCsReqFactory implements MessageFactory<TakeChallengeRewardCsReq> {
INSTANCE;
@Override
public TakeChallengeRewardCsReq create() {
return TakeChallengeRewardCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 group_id = 1;</code>
* @param value The groupId to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName groupId = FieldName.forField("groupId", "group_id");
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)
}
// @@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 {
public static final class TakeMailAttachmentCsReq extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TakeMailAttachmentCsReq)
TakeMailAttachmentCsReqOrBuilder {
private static final long serialVersionUID = 0L;
/**
* <code>repeated uint32 mail_id_list = 12;</code>
*/
private final RepeatedInt mailIdList = RepeatedInt.newEmptyInstance();
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;
/**
* <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);
}
return this;
}
@Override
public TakeMailAttachmentCsReq mergeFrom(final TakeMailAttachmentCsReq other) {
if (other.isEmpty()) {
return this;
}
cachedSize = -1;
if (other.hasMailIdList()) {
getMutableMailIdList().addAll(other.mailIdList);
}
return this;
}
@Override
public TakeMailAttachmentCsReq clear() {
if (isEmpty()) {
return this;
}
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) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof TakeMailAttachmentCsReq)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (optionalRewardId_ != 0) {
output.writeUInt32(9, optionalRewardId_);
}
TakeMailAttachmentCsReq other = (TakeMailAttachmentCsReq) o;
return bitField0_ == other.bitField0_
&& (!hasMailIdList() || mailIdList.equals(other.mailIdList));
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 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]);
}
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += (1 * mailIdList.length()) + ProtoSink.computeRepeatedUInt32SizeNoTag(mailIdList);
size = 0;
if (optionalRewardId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, optionalRewardId_);
}
{
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;
}
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;
@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);
}
case 0: {
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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
default: {
if (!input.skipField(tag)) {
return this;
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.internal_static_TakeMailAttachmentCsReq_descriptor;
}
tag = input.readTag();
break;
@java.lang.Override
public emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq getDefaultInstanceForType() {
return emu.lunarcore.proto.TakeMailAttachmentCsReqOuterClass.TakeMailAttachmentCsReq.getDefaultInstance();
}
case 96: {
// mailIdList [packed=false]
tag = input.readRepeatedUInt32(mailIdList, tag);
bitField0_ |= 0x00000001;
break;
@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_;
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeRepeatedUInt32(FieldNames.mailIdList, mailIdList);
}
output.endObject();
}
@Override
public TakeMailAttachmentCsReq mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
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;
}
@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 {
input.skipUnknownField();
}
break;
}
default: {
input.skipUnknownField();
break;
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_);
}
input.endObject();
onChanged();
}
if (other.getOptionalRewardId() != 0) {
setOptionalRewardId(other.getOptionalRewardId());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@Override
public TakeMailAttachmentCsReq clone() {
return new TakeMailAttachmentCsReq().copyFrom(this);
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@Override
public boolean isEmpty() {
return ((bitField0_) == 0);
@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();
}
public static TakeMailAttachmentCsReq parseFrom(final byte[] data) throws
InvalidProtocolBufferException {
return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), data).checkInitialized();
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());
}
public static TakeMailAttachmentCsReq parseFrom(final ProtoSource input) throws IOException {
return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), input).checkInitialized();
input.popLimit(limit);
break;
} // case 98
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
public static TakeMailAttachmentCsReq parseFrom(final JsonSource input) throws IOException {
return ProtoMessage.mergeFrom(new TakeMailAttachmentCsReq(), input).checkInitialized();
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;
}
/**
* @return factory for creating TakeMailAttachmentCsReq messages
* <code>repeated uint32 mail_id_list = 12;</code>
* @return A list containing the mailIdList.
*/
public static MessageFactory<TakeMailAttachmentCsReq> getFactory() {
return TakeMailAttachmentCsReqFactory.INSTANCE;
public java.util.List<java.lang.Integer>
getMailIdListList() {
mailIdList_.makeImmutable();
return mailIdList_;
}
private enum TakeMailAttachmentCsReqFactory implements MessageFactory<TakeMailAttachmentCsReq> {
INSTANCE;
@Override
public TakeMailAttachmentCsReq create() {
return TakeMailAttachmentCsReq.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>repeated uint32 mail_id_list = 12;</code>
* @return The count of mailIdList.
*/
static class FieldNames {
static final FieldName mailIdList = FieldName.forField("mailIdList", "mail_id_list");
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)
}
// @@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 {
public static final class TextJoinInfo extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:TextJoinInfo)
TextJoinInfoOrBuilder {
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;
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;
@Override
public TextJoinInfo copyFrom(final TextJoinInfo other) {
cachedSize = other.cachedSize;
if ((bitField0_ | other.bitField0_) != 0) {
bitField0_ = other.bitField0_;
textItemId = other.textItemId;
textItemConfigId = other.textItemConfigId;
}
return this;
}
@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;
}
@Override
public TextJoinInfo clear() {
if (isEmpty()) {
return this;
}
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) {
memoizedIsInitialized = 1;
return true;
}
if (!(o instanceof TextJoinInfo)) {
return false;
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (textItemId_ != 0) {
output.writeUInt32(1, textItemId_);
}
TextJoinInfo other = (TextJoinInfo) o;
return bitField0_ == other.bitField0_
&& (!hasTextItemId() || textItemId == other.textItemId)
&& (!hasTextItemConfigId() || textItemConfigId == other.textItemConfigId);
if (textItemConfigId_ != 0) {
output.writeUInt32(6, textItemConfigId_);
}
getUnknownFields().writeTo(output);
}
@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);
}
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@Override
protected int computeSerializedSize() {
int size = 0;
if ((bitField0_ & 0x00000001) != 0) {
size += 1 + ProtoSink.computeUInt32SizeNoTag(textItemId);
size = 0;
if (textItemId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, 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)
@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;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
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;
}
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;
}
@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_;
}
}
@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();
while (true) {
switch (tag) {
case 16: {
// textItemId
textItemId = input.readUInt32();
case 0:
done = true;
break;
case 8: {
textItemId_ = input.readUInt32();
bitField0_ |= 0x00000001;
tag = input.readTag();
if (tag != 24) {
break;
}
}
case 24: {
// textItemConfigId
textItemConfigId = input.readUInt32();
} // case 8
case 48: {
textItemConfigId_ = input.readUInt32();
bitField0_ |= 0x00000002;
tag = input.readTag();
if (tag != 0) {
break;
}
}
case 0: {
return this;
}
} // case 48
default: {
if (!input.skipField(tag)) {
return this;
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
tag = input.readTag();
break;
}
}
}
}
@Override
public void writeTo(final JsonSink output) throws IOException {
output.beginObject();
if ((bitField0_ & 0x00000001) != 0) {
output.writeUInt32(FieldNames.textItemId, textItemId);
}
if ((bitField0_ & 0x00000002) != 0) {
output.writeUInt32(FieldNames.textItemConfigId, textItemConfigId);
}
output.endObject();
}
@Override
public TextJoinInfo mergeFrom(final JsonSource input) throws IOException {
if (!input.beginObject()) {
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
while (!input.isAtEnd()) {
switch (input.readFieldHash()) {
case 1565189915:
case -153409355: {
if (input.isAtField(FieldNames.textItemId)) {
if (!input.trySkipNullValue()) {
textItemId = input.readUInt32();
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;
}
} 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;
}
}
}
input.endObject();
/**
* <code>uint32 text_item_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearTextItemId() {
bitField0_ = (bitField0_ & ~0x00000001);
textItemId_ = 0;
onChanged();
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();
}
private int textItemConfigId_ ;
/**
* @return factory for creating TextJoinInfo messages
* <code>uint32 text_item_config_id = 6;</code>
* @return The textItemConfigId.
*/
public static MessageFactory<TextJoinInfo> getFactory() {
return TextJoinInfoFactory.INSTANCE;
@java.lang.Override
public int getTextItemConfigId() {
return textItemConfigId_;
}
private enum TextJoinInfoFactory implements MessageFactory<TextJoinInfo> {
INSTANCE;
@Override
public TextJoinInfo create() {
return TextJoinInfo.newInstance();
}
}
/**
* Contains name constants used for serializing JSON
* <code>uint32 text_item_config_id = 6;</code>
* @param value The textItemConfigId to set.
* @return This builder for chaining.
*/
static class FieldNames {
static final FieldName textItemId = FieldName.forField("textItemId", "text_item_id");
public Builder setTextItemConfigId(int value) {
static final FieldName textItemConfigId = FieldName.forField("textItemConfigId", "text_item_config_id");
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)
}
// @@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)
}