// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ClientGadgetInfo.proto
package emu.grasscutter.net.proto;
public final class ClientGadgetInfoOuterClass {
private ClientGadgetInfoOuterClass() {}
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 ClientGadgetInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:ClientGadgetInfo)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 camp_id = 1;
*
* @return The campId.
*/
int getCampId();
/**
* uint32 camp_type = 2;
*
* @return The campType.
*/
int getCampType();
/**
* uint64 guid = 3;
*
* @return The guid.
*/
long getGuid();
/**
* uint32 owner_entity_id = 4;
*
* @return The ownerEntityId.
*/
int getOwnerEntityId();
/**
* uint32 target_entity_id = 5;
*
* @return The targetEntityId.
*/
int getTargetEntityId();
/**
* bool async_load = 6;
*
* @return The asyncLoad.
*/
boolean getAsyncLoad();
/**
* bool is_peer_id_from_player = 7;
*
* @return The isPeerIdFromPlayer.
*/
boolean getIsPeerIdFromPlayer();
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return A list containing the targetEntityIdList.
*/
java.util.List getTargetEntityIdListList();
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return The count of targetEntityIdList.
*/
int getTargetEntityIdListCount();
/**
* repeated uint32 target_entity_id_list = 8;
*
* @param index The index of the element to return.
* @return The targetEntityIdList at the given index.
*/
int getTargetEntityIdList(int index);
}
/**
*
*
*
* Name: ANHIPICCPMI
*
*
* Protobuf type {@code ClientGadgetInfo}
*/
public static final class ClientGadgetInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:ClientGadgetInfo)
ClientGadgetInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientGadgetInfo.newBuilder() to construct.
private ClientGadgetInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientGadgetInfo() {
targetEntityIdList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ClientGadgetInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private ClientGadgetInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
campId_ = input.readUInt32();
break;
}
case 16:
{
campType_ = input.readUInt32();
break;
}
case 24:
{
guid_ = input.readUInt64();
break;
}
case 32:
{
ownerEntityId_ = input.readUInt32();
break;
}
case 40:
{
targetEntityId_ = input.readUInt32();
break;
}
case 48:
{
asyncLoad_ = input.readBool();
break;
}
case 56:
{
isPeerIdFromPlayer_ = input.readBool();
break;
}
case 64:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
targetEntityIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
targetEntityIdList_.addInt(input.readUInt32());
break;
}
case 66:
{
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
targetEntityIdList_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
targetEntityIdList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
targetEntityIdList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return emu.grasscutter.net.proto.ClientGadgetInfoOuterClass
.internal_static_ClientGadgetInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ClientGadgetInfoOuterClass
.internal_static_ClientGadgetInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo.class,
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo.Builder.class);
}
public static final int CAMP_ID_FIELD_NUMBER = 1;
private int campId_;
/**
* uint32 camp_id = 1;
*
* @return The campId.
*/
@java.lang.Override
public int getCampId() {
return campId_;
}
public static final int CAMP_TYPE_FIELD_NUMBER = 2;
private int campType_;
/**
* uint32 camp_type = 2;
*
* @return The campType.
*/
@java.lang.Override
public int getCampType() {
return campType_;
}
public static final int GUID_FIELD_NUMBER = 3;
private long guid_;
/**
* uint64 guid = 3;
*
* @return The guid.
*/
@java.lang.Override
public long getGuid() {
return guid_;
}
public static final int OWNER_ENTITY_ID_FIELD_NUMBER = 4;
private int ownerEntityId_;
/**
* uint32 owner_entity_id = 4;
*
* @return The ownerEntityId.
*/
@java.lang.Override
public int getOwnerEntityId() {
return ownerEntityId_;
}
public static final int TARGET_ENTITY_ID_FIELD_NUMBER = 5;
private int targetEntityId_;
/**
* uint32 target_entity_id = 5;
*
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
public static final int ASYNC_LOAD_FIELD_NUMBER = 6;
private boolean asyncLoad_;
/**
* bool async_load = 6;
*
* @return The asyncLoad.
*/
@java.lang.Override
public boolean getAsyncLoad() {
return asyncLoad_;
}
public static final int IS_PEER_ID_FROM_PLAYER_FIELD_NUMBER = 7;
private boolean isPeerIdFromPlayer_;
/**
* bool is_peer_id_from_player = 7;
*
* @return The isPeerIdFromPlayer.
*/
@java.lang.Override
public boolean getIsPeerIdFromPlayer() {
return isPeerIdFromPlayer_;
}
public static final int TARGET_ENTITY_ID_LIST_FIELD_NUMBER = 8;
private com.google.protobuf.Internal.IntList targetEntityIdList_;
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return A list containing the targetEntityIdList.
*/
@java.lang.Override
public java.util.List getTargetEntityIdListList() {
return targetEntityIdList_;
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return The count of targetEntityIdList.
*/
public int getTargetEntityIdListCount() {
return targetEntityIdList_.size();
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @param index The index of the element to return.
* @return The targetEntityIdList at the given index.
*/
public int getTargetEntityIdList(int index) {
return targetEntityIdList_.getInt(index);
}
private int targetEntityIdListMemoizedSerializedSize = -1;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
getSerializedSize();
if (campId_ != 0) {
output.writeUInt32(1, campId_);
}
if (campType_ != 0) {
output.writeUInt32(2, campType_);
}
if (guid_ != 0L) {
output.writeUInt64(3, guid_);
}
if (ownerEntityId_ != 0) {
output.writeUInt32(4, ownerEntityId_);
}
if (targetEntityId_ != 0) {
output.writeUInt32(5, targetEntityId_);
}
if (asyncLoad_ != false) {
output.writeBool(6, asyncLoad_);
}
if (isPeerIdFromPlayer_ != false) {
output.writeBool(7, isPeerIdFromPlayer_);
}
if (getTargetEntityIdListList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(targetEntityIdListMemoizedSerializedSize);
}
for (int i = 0; i < targetEntityIdList_.size(); i++) {
output.writeUInt32NoTag(targetEntityIdList_.getInt(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (campId_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(1, campId_);
}
if (campType_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(2, campType_);
}
if (guid_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeUInt64Size(3, guid_);
}
if (ownerEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, ownerEntityId_);
}
if (targetEntityId_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeUInt32Size(5, targetEntityId_);
}
if (asyncLoad_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, asyncLoad_);
}
if (isPeerIdFromPlayer_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, isPeerIdFromPlayer_);
}
{
int dataSize = 0;
for (int i = 0; i < targetEntityIdList_.size(); i++) {
dataSize +=
com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(
targetEntityIdList_.getInt(i));
}
size += dataSize;
if (!getTargetEntityIdListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
}
targetEntityIdListMemoizedSerializedSize = dataSize;
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo other =
(emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo) obj;
if (getCampId() != other.getCampId()) return false;
if (getCampType() != other.getCampType()) return false;
if (getGuid() != other.getGuid()) return false;
if (getOwnerEntityId() != other.getOwnerEntityId()) return false;
if (getTargetEntityId() != other.getTargetEntityId()) return false;
if (getAsyncLoad() != other.getAsyncLoad()) return false;
if (getIsPeerIdFromPlayer() != other.getIsPeerIdFromPlayer()) return false;
if (!getTargetEntityIdListList().equals(other.getTargetEntityIdListList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CAMP_ID_FIELD_NUMBER;
hash = (53 * hash) + getCampId();
hash = (37 * hash) + CAMP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getCampType();
hash = (37 * hash) + GUID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGuid());
hash = (37 * hash) + OWNER_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getOwnerEntityId();
hash = (37 * hash) + TARGET_ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getTargetEntityId();
hash = (37 * hash) + ASYNC_LOAD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAsyncLoad());
hash = (37 * hash) + IS_PEER_ID_FROM_PLAYER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPeerIdFromPlayer());
if (getTargetEntityIdListCount() > 0) {
hash = (37 * hash) + TARGET_ENTITY_ID_LIST_FIELD_NUMBER;
hash = (53 * hash) + getTargetEntityIdListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Name: ANHIPICCPMI
*
*
* Protobuf type {@code ClientGadgetInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:ClientGadgetInfo)
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return emu.grasscutter.net.proto.ClientGadgetInfoOuterClass
.internal_static_ClientGadgetInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ClientGadgetInfoOuterClass
.internal_static_ClientGadgetInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo.class,
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo.Builder
.class);
}
// Construct using
// emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
campId_ = 0;
campType_ = 0;
guid_ = 0L;
ownerEntityId_ = 0;
targetEntityId_ = 0;
asyncLoad_ = false;
isPeerIdFromPlayer_ = false;
targetEntityIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return emu.grasscutter.net.proto.ClientGadgetInfoOuterClass
.internal_static_ClientGadgetInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo build() {
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo buildPartial() {
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo result =
new emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo(this);
int from_bitField0_ = bitField0_;
result.campId_ = campId_;
result.campType_ = campType_;
result.guid_ = guid_;
result.ownerEntityId_ = ownerEntityId_;
result.targetEntityId_ = targetEntityId_;
result.asyncLoad_ = asyncLoad_;
result.isPeerIdFromPlayer_ = isPeerIdFromPlayer_;
if (((bitField0_ & 0x00000001) != 0)) {
targetEntityIdList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.targetEntityIdList_ = targetEntityIdList_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo) {
return mergeFrom(
(emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo other) {
if (other
== emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
.getDefaultInstance()) return this;
if (other.getCampId() != 0) {
setCampId(other.getCampId());
}
if (other.getCampType() != 0) {
setCampType(other.getCampType());
}
if (other.getGuid() != 0L) {
setGuid(other.getGuid());
}
if (other.getOwnerEntityId() != 0) {
setOwnerEntityId(other.getOwnerEntityId());
}
if (other.getTargetEntityId() != 0) {
setTargetEntityId(other.getTargetEntityId());
}
if (other.getAsyncLoad() != false) {
setAsyncLoad(other.getAsyncLoad());
}
if (other.getIsPeerIdFromPlayer() != false) {
setIsPeerIdFromPlayer(other.getIsPeerIdFromPlayer());
}
if (!other.targetEntityIdList_.isEmpty()) {
if (targetEntityIdList_.isEmpty()) {
targetEntityIdList_ = other.targetEntityIdList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTargetEntityIdListIsMutable();
targetEntityIdList_.addAll(other.targetEntityIdList_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage =
(emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo)
e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int campId_;
/**
* uint32 camp_id = 1;
*
* @return The campId.
*/
@java.lang.Override
public int getCampId() {
return campId_;
}
/**
* uint32 camp_id = 1;
*
* @param value The campId to set.
* @return This builder for chaining.
*/
public Builder setCampId(int value) {
campId_ = value;
onChanged();
return this;
}
/**
* uint32 camp_id = 1;
*
* @return This builder for chaining.
*/
public Builder clearCampId() {
campId_ = 0;
onChanged();
return this;
}
private int campType_;
/**
* uint32 camp_type = 2;
*
* @return The campType.
*/
@java.lang.Override
public int getCampType() {
return campType_;
}
/**
* uint32 camp_type = 2;
*
* @param value The campType to set.
* @return This builder for chaining.
*/
public Builder setCampType(int value) {
campType_ = value;
onChanged();
return this;
}
/**
* uint32 camp_type = 2;
*
* @return This builder for chaining.
*/
public Builder clearCampType() {
campType_ = 0;
onChanged();
return this;
}
private long guid_;
/**
* uint64 guid = 3;
*
* @return The guid.
*/
@java.lang.Override
public long getGuid() {
return guid_;
}
/**
* uint64 guid = 3;
*
* @param value The guid to set.
* @return This builder for chaining.
*/
public Builder setGuid(long value) {
guid_ = value;
onChanged();
return this;
}
/**
* uint64 guid = 3;
*
* @return This builder for chaining.
*/
public Builder clearGuid() {
guid_ = 0L;
onChanged();
return this;
}
private int ownerEntityId_;
/**
* uint32 owner_entity_id = 4;
*
* @return The ownerEntityId.
*/
@java.lang.Override
public int getOwnerEntityId() {
return ownerEntityId_;
}
/**
* uint32 owner_entity_id = 4;
*
* @param value The ownerEntityId to set.
* @return This builder for chaining.
*/
public Builder setOwnerEntityId(int value) {
ownerEntityId_ = value;
onChanged();
return this;
}
/**
* uint32 owner_entity_id = 4;
*
* @return This builder for chaining.
*/
public Builder clearOwnerEntityId() {
ownerEntityId_ = 0;
onChanged();
return this;
}
private int targetEntityId_;
/**
* uint32 target_entity_id = 5;
*
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
/**
* uint32 target_entity_id = 5;
*
* @param value The targetEntityId to set.
* @return This builder for chaining.
*/
public Builder setTargetEntityId(int value) {
targetEntityId_ = value;
onChanged();
return this;
}
/**
* uint32 target_entity_id = 5;
*
* @return This builder for chaining.
*/
public Builder clearTargetEntityId() {
targetEntityId_ = 0;
onChanged();
return this;
}
private boolean asyncLoad_;
/**
* bool async_load = 6;
*
* @return The asyncLoad.
*/
@java.lang.Override
public boolean getAsyncLoad() {
return asyncLoad_;
}
/**
* bool async_load = 6;
*
* @param value The asyncLoad to set.
* @return This builder for chaining.
*/
public Builder setAsyncLoad(boolean value) {
asyncLoad_ = value;
onChanged();
return this;
}
/**
* bool async_load = 6;
*
* @return This builder for chaining.
*/
public Builder clearAsyncLoad() {
asyncLoad_ = false;
onChanged();
return this;
}
private boolean isPeerIdFromPlayer_;
/**
* bool is_peer_id_from_player = 7;
*
* @return The isPeerIdFromPlayer.
*/
@java.lang.Override
public boolean getIsPeerIdFromPlayer() {
return isPeerIdFromPlayer_;
}
/**
* bool is_peer_id_from_player = 7;
*
* @param value The isPeerIdFromPlayer to set.
* @return This builder for chaining.
*/
public Builder setIsPeerIdFromPlayer(boolean value) {
isPeerIdFromPlayer_ = value;
onChanged();
return this;
}
/**
* bool is_peer_id_from_player = 7;
*
* @return This builder for chaining.
*/
public Builder clearIsPeerIdFromPlayer() {
isPeerIdFromPlayer_ = false;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList targetEntityIdList_ = emptyIntList();
private void ensureTargetEntityIdListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
targetEntityIdList_ = mutableCopy(targetEntityIdList_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return A list containing the targetEntityIdList.
*/
public java.util.List getTargetEntityIdListList() {
return ((bitField0_ & 0x00000001) != 0)
? java.util.Collections.unmodifiableList(targetEntityIdList_)
: targetEntityIdList_;
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return The count of targetEntityIdList.
*/
public int getTargetEntityIdListCount() {
return targetEntityIdList_.size();
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @param index The index of the element to return.
* @return The targetEntityIdList at the given index.
*/
public int getTargetEntityIdList(int index) {
return targetEntityIdList_.getInt(index);
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @param index The index to set the value at.
* @param value The targetEntityIdList to set.
* @return This builder for chaining.
*/
public Builder setTargetEntityIdList(int index, int value) {
ensureTargetEntityIdListIsMutable();
targetEntityIdList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @param value The targetEntityIdList to add.
* @return This builder for chaining.
*/
public Builder addTargetEntityIdList(int value) {
ensureTargetEntityIdListIsMutable();
targetEntityIdList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @param values The targetEntityIdList to add.
* @return This builder for chaining.
*/
public Builder addAllTargetEntityIdList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureTargetEntityIdListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetEntityIdList_);
onChanged();
return this;
}
/**
* repeated uint32 target_entity_id_list = 8;
*
* @return This builder for chaining.
*/
public Builder clearTargetEntityIdList() {
targetEntityIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ClientGadgetInfo)
}
// @@protoc_insertion_point(class_scope:ClientGadgetInfo)
private static final emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo();
}
public static emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientGadgetInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientGadgetInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ClientGadgetInfoOuterClass.ClientGadgetInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ClientGadgetInfo_descriptor;
private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ClientGadgetInfo_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\026ClientGadgetInfo.proto\"\312\001\n\020ClientGadge"
+ "tInfo\022\017\n\007camp_id\030\001 \001(\r\022\021\n\tcamp_type\030\002 \001("
+ "\r\022\014\n\004guid\030\003 \001(\004\022\027\n\017owner_entity_id\030\004 \001(\r"
+ "\022\030\n\020target_entity_id\030\005 \001(\r\022\022\n\nasync_load"
+ "\030\006 \001(\010\022\036\n\026is_peer_id_from_player\030\007 \001(\010\022\035"
+ "\n\025target_entity_id_list\030\010 \003(\rB\033\n\031emu.gra"
+ "sscutter.net.protob\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
internal_static_ClientGadgetInfo_descriptor = getDescriptor().getMessageTypes().get(0);
internal_static_ClientGadgetInfo_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ClientGadgetInfo_descriptor,
new java.lang.String[] {
"CampId",
"CampType",
"Guid",
"OwnerEntityId",
"TargetEntityId",
"AsyncLoad",
"IsPeerIdFromPlayer",
"TargetEntityIdList",
});
}
// @@protoc_insertion_point(outer_class_scope)
}