2
0
mirror of https://github.com/Grasscutters/Grasscutter synced 2025-08-25 19:38:07 +00:00
Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/ClientGadgetInfoOuterClass.java

1363 lines
46 KiB
Java
Raw Permalink Normal View History

2023-08-14 18:57:43 -04:00
// 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 {
/**
* <code>uint32 camp_id = 1;</code>
* @return The campId.
*/
int getCampId();
/**
* <code>uint32 camp_type = 2;</code>
* @return The campType.
*/
int getCampType();
/**
* <code>uint64 guid = 3;</code>
* @return The guid.
*/
long getGuid();
/**
* <code>uint32 owner_entity_id = 4;</code>
* @return The ownerEntityId.
*/
int getOwnerEntityId();
/**
* <code>uint32 target_entity_id = 5;</code>
* @return The targetEntityId.
*/
int getTargetEntityId();
/**
* <code>bool async_load = 6;</code>
* @return The asyncLoad.
*/
boolean getAsyncLoad();
/**
* <code>bool is_peer_id_from_player = 7;</code>
* @return The isPeerIdFromPlayer.
*/
boolean getIsPeerIdFromPlayer();
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return A list containing the targetEntityIdList.
*/
java.util.List<java.lang.Integer> getTargetEntityIdListList();
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return The count of targetEntityIdList.
*/
int getTargetEntityIdListCount();
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @param index The index of the element to return.
* @return The targetEntityIdList at the given index.
*/
int getTargetEntityIdList(int index);
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return A list containing the targetLockPointIndexList.
*/
java.util.List<java.lang.Integer> getTargetLockPointIndexListList();
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return The count of targetLockPointIndexList.
*/
int getTargetLockPointIndexListCount();
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @param index The index of the element to return.
* @return The targetLockPointIndexList at the given index.
*/
int getTargetLockPointIndexList(int index);
}
/**
* <pre>
* Obf: KCPDCBKPNNL
* </pre>
*
* 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();
targetLockPointIndexList_ = 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;
}
case 72: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
targetLockPointIndexList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
targetLockPointIndexList_.addInt(input.readUInt32());
break;
}
case 74: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
targetLockPointIndexList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
targetLockPointIndexList_.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
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
targetLockPointIndexList_.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_;
/**
* <code>uint32 camp_id = 1;</code>
* @return The campId.
*/
@java.lang.Override
public int getCampId() {
return campId_;
}
public static final int CAMP_TYPE_FIELD_NUMBER = 2;
private int campType_;
/**
* <code>uint32 camp_type = 2;</code>
* @return The campType.
*/
@java.lang.Override
public int getCampType() {
return campType_;
}
public static final int GUID_FIELD_NUMBER = 3;
private long guid_;
/**
* <code>uint64 guid = 3;</code>
* @return The guid.
*/
@java.lang.Override
public long getGuid() {
return guid_;
}
public static final int OWNER_ENTITY_ID_FIELD_NUMBER = 4;
private int ownerEntityId_;
/**
* <code>uint32 owner_entity_id = 4;</code>
* @return The ownerEntityId.
*/
@java.lang.Override
public int getOwnerEntityId() {
return ownerEntityId_;
}
public static final int TARGET_ENTITY_ID_FIELD_NUMBER = 5;
private int targetEntityId_;
/**
* <code>uint32 target_entity_id = 5;</code>
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
public static final int ASYNC_LOAD_FIELD_NUMBER = 6;
private boolean asyncLoad_;
/**
* <code>bool async_load = 6;</code>
* @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_;
/**
* <code>bool is_peer_id_from_player = 7;</code>
* @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_;
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return A list containing the targetEntityIdList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getTargetEntityIdListList() {
return targetEntityIdList_;
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return The count of targetEntityIdList.
*/
public int getTargetEntityIdListCount() {
return targetEntityIdList_.size();
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @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;
public static final int TARGET_LOCK_POINT_INDEX_LIST_FIELD_NUMBER = 9;
private com.google.protobuf.Internal.IntList targetLockPointIndexList_;
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return A list containing the targetLockPointIndexList.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getTargetLockPointIndexListList() {
return targetLockPointIndexList_;
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return The count of targetLockPointIndexList.
*/
public int getTargetLockPointIndexListCount() {
return targetLockPointIndexList_.size();
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @param index The index of the element to return.
* @return The targetLockPointIndexList at the given index.
*/
public int getTargetLockPointIndexList(int index) {
return targetLockPointIndexList_.getInt(index);
}
private int targetLockPointIndexListMemoizedSerializedSize = -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));
}
if (getTargetLockPointIndexListList().size() > 0) {
output.writeUInt32NoTag(74);
output.writeUInt32NoTag(targetLockPointIndexListMemoizedSerializedSize);
}
for (int i = 0; i < targetLockPointIndexList_.size(); i++) {
output.writeUInt32NoTag(targetLockPointIndexList_.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;
}
{
int dataSize = 0;
for (int i = 0; i < targetLockPointIndexList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(targetLockPointIndexList_.getInt(i));
}
size += dataSize;
if (!getTargetLockPointIndexListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
targetLockPointIndexListMemoizedSerializedSize = 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 (!getTargetLockPointIndexListList()
.equals(other.getTargetLockPointIndexListList())) 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();
}
if (getTargetLockPointIndexListCount() > 0) {
hash = (37 * hash) + TARGET_LOCK_POINT_INDEX_LIST_FIELD_NUMBER;
hash = (53 * hash) + getTargetLockPointIndexListList().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;
}
/**
* <pre>
* Obf: KCPDCBKPNNL
* </pre>
*
* Protobuf type {@code ClientGadgetInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<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);
targetLockPointIndexList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
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_;
if (((bitField0_ & 0x00000002) != 0)) {
targetLockPointIndexList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.targetLockPointIndexList_ = targetLockPointIndexList_;
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();
}
if (!other.targetLockPointIndexList_.isEmpty()) {
if (targetLockPointIndexList_.isEmpty()) {
targetLockPointIndexList_ = other.targetLockPointIndexList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTargetLockPointIndexListIsMutable();
targetLockPointIndexList_.addAll(other.targetLockPointIndexList_);
}
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_ ;
/**
* <code>uint32 camp_id = 1;</code>
* @return The campId.
*/
@java.lang.Override
public int getCampId() {
return campId_;
}
/**
* <code>uint32 camp_id = 1;</code>
* @param value The campId to set.
* @return This builder for chaining.
*/
public Builder setCampId(int value) {
campId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 camp_id = 1;</code>
* @return This builder for chaining.
*/
public Builder clearCampId() {
campId_ = 0;
onChanged();
return this;
}
private int campType_ ;
/**
* <code>uint32 camp_type = 2;</code>
* @return The campType.
*/
@java.lang.Override
public int getCampType() {
return campType_;
}
/**
* <code>uint32 camp_type = 2;</code>
* @param value The campType to set.
* @return This builder for chaining.
*/
public Builder setCampType(int value) {
campType_ = value;
onChanged();
return this;
}
/**
* <code>uint32 camp_type = 2;</code>
* @return This builder for chaining.
*/
public Builder clearCampType() {
campType_ = 0;
onChanged();
return this;
}
private long guid_ ;
/**
* <code>uint64 guid = 3;</code>
* @return The guid.
*/
@java.lang.Override
public long getGuid() {
return guid_;
}
/**
* <code>uint64 guid = 3;</code>
* @param value The guid to set.
* @return This builder for chaining.
*/
public Builder setGuid(long value) {
guid_ = value;
onChanged();
return this;
}
/**
* <code>uint64 guid = 3;</code>
* @return This builder for chaining.
*/
public Builder clearGuid() {
guid_ = 0L;
onChanged();
return this;
}
private int ownerEntityId_ ;
/**
* <code>uint32 owner_entity_id = 4;</code>
* @return The ownerEntityId.
*/
@java.lang.Override
public int getOwnerEntityId() {
return ownerEntityId_;
}
/**
* <code>uint32 owner_entity_id = 4;</code>
* @param value The ownerEntityId to set.
* @return This builder for chaining.
*/
public Builder setOwnerEntityId(int value) {
ownerEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 owner_entity_id = 4;</code>
* @return This builder for chaining.
*/
public Builder clearOwnerEntityId() {
ownerEntityId_ = 0;
onChanged();
return this;
}
private int targetEntityId_ ;
/**
* <code>uint32 target_entity_id = 5;</code>
* @return The targetEntityId.
*/
@java.lang.Override
public int getTargetEntityId() {
return targetEntityId_;
}
/**
* <code>uint32 target_entity_id = 5;</code>
* @param value The targetEntityId to set.
* @return This builder for chaining.
*/
public Builder setTargetEntityId(int value) {
targetEntityId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 target_entity_id = 5;</code>
* @return This builder for chaining.
*/
public Builder clearTargetEntityId() {
targetEntityId_ = 0;
onChanged();
return this;
}
private boolean asyncLoad_ ;
/**
* <code>bool async_load = 6;</code>
* @return The asyncLoad.
*/
@java.lang.Override
public boolean getAsyncLoad() {
return asyncLoad_;
}
/**
* <code>bool async_load = 6;</code>
* @param value The asyncLoad to set.
* @return This builder for chaining.
*/
public Builder setAsyncLoad(boolean value) {
asyncLoad_ = value;
onChanged();
return this;
}
/**
* <code>bool async_load = 6;</code>
* @return This builder for chaining.
*/
public Builder clearAsyncLoad() {
asyncLoad_ = false;
onChanged();
return this;
}
private boolean isPeerIdFromPlayer_ ;
/**
* <code>bool is_peer_id_from_player = 7;</code>
* @return The isPeerIdFromPlayer.
*/
@java.lang.Override
public boolean getIsPeerIdFromPlayer() {
return isPeerIdFromPlayer_;
}
/**
* <code>bool is_peer_id_from_player = 7;</code>
* @param value The isPeerIdFromPlayer to set.
* @return This builder for chaining.
*/
public Builder setIsPeerIdFromPlayer(boolean value) {
isPeerIdFromPlayer_ = value;
onChanged();
return this;
}
/**
* <code>bool is_peer_id_from_player = 7;</code>
* @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;
}
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return A list containing the targetEntityIdList.
*/
public java.util.List<java.lang.Integer>
getTargetEntityIdListList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(targetEntityIdList_) : targetEntityIdList_;
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return The count of targetEntityIdList.
*/
public int getTargetEntityIdListCount() {
return targetEntityIdList_.size();
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @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);
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @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;
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @param value The targetEntityIdList to add.
* @return This builder for chaining.
*/
public Builder addTargetEntityIdList(int value) {
ensureTargetEntityIdListIsMutable();
targetEntityIdList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @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;
}
/**
* <code>repeated uint32 target_entity_id_list = 8;</code>
* @return This builder for chaining.
*/
public Builder clearTargetEntityIdList() {
targetEntityIdList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList targetLockPointIndexList_ = emptyIntList();
private void ensureTargetLockPointIndexListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
targetLockPointIndexList_ = mutableCopy(targetLockPointIndexList_);
bitField0_ |= 0x00000002;
}
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return A list containing the targetLockPointIndexList.
*/
public java.util.List<java.lang.Integer>
getTargetLockPointIndexListList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(targetLockPointIndexList_) : targetLockPointIndexList_;
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return The count of targetLockPointIndexList.
*/
public int getTargetLockPointIndexListCount() {
return targetLockPointIndexList_.size();
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @param index The index of the element to return.
* @return The targetLockPointIndexList at the given index.
*/
public int getTargetLockPointIndexList(int index) {
return targetLockPointIndexList_.getInt(index);
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @param index The index to set the value at.
* @param value The targetLockPointIndexList to set.
* @return This builder for chaining.
*/
public Builder setTargetLockPointIndexList(
int index, int value) {
ensureTargetLockPointIndexListIsMutable();
targetLockPointIndexList_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @param value The targetLockPointIndexList to add.
* @return This builder for chaining.
*/
public Builder addTargetLockPointIndexList(int value) {
ensureTargetLockPointIndexListIsMutable();
targetLockPointIndexList_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @param values The targetLockPointIndexList to add.
* @return This builder for chaining.
*/
public Builder addAllTargetLockPointIndexList(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureTargetLockPointIndexListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targetLockPointIndexList_);
onChanged();
return this;
}
/**
* <code>repeated uint32 target_lock_point_index_list = 9;</code>
* @return This builder for chaining.
*/
public Builder clearTargetLockPointIndexList() {
targetLockPointIndexList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
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<ClientGadgetInfo>
PARSER = new com.google.protobuf.AbstractParser<ClientGadgetInfo>() {
@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<ClientGadgetInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ClientGadgetInfo> 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\"\360\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(\r\022$\n\034target_" +
"lock_point_index_list\030\t \003(\rB\033\n\031emu.grass" +
"cutter.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", "TargetLockPointIndexList", });
}
// @@protoc_insertion_point(outer_class_scope)
}