// Generated by the protocol buffer compiler. DO NOT EDIT! // source: AbilityMixinRecoverInfo.proto package emu.grasscutter.net.proto; public final class AbilityMixinRecoverInfoOuterClass { private AbilityMixinRecoverInfoOuterClass() {} 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 AbilityMixinRecoverInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:AbilityMixinRecoverInfo) com.google.protobuf.MessageOrBuilder { /** * uint32 instancedAbilityId = 1; * @return Whether the instancedAbilityId field is set. */ boolean hasInstancedAbilityId(); /** * uint32 instancedAbilityId = 1; * @return The instancedAbilityId. */ int getInstancedAbilityId(); /** * uint32 instancedModifierId = 2; * @return Whether the instancedModifierId field is set. */ boolean hasInstancedModifierId(); /** * uint32 instancedModifierId = 2; * @return The instancedModifierId. */ int getInstancedModifierId(); /** * uint32 localId = 3; * @return The localId. */ int getLocalId(); /** * repeated uint32 dataList = 4; * @return A list containing the dataList. */ java.util.List getDataListList(); /** * repeated uint32 dataList = 4; * @return The count of dataList. */ int getDataListCount(); /** * repeated uint32 dataList = 4; * @param index The index of the element to return. * @return The dataList at the given index. */ int getDataList(int index); /** * bool isServerbuffModifier = 5; * @return The isServerbuffModifier. */ boolean getIsServerbuffModifier(); /** * repeated .MassivePropSyncInfo massivePropList = 6; */ java.util.List getMassivePropListList(); /** * repeated .MassivePropSyncInfo massivePropList = 6; */ emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index); /** * repeated .MassivePropSyncInfo massivePropList = 6; */ int getMassivePropListCount(); /** * repeated .MassivePropSyncInfo massivePropList = 6; */ java.util.List getMassivePropListOrBuilderList(); /** * repeated .MassivePropSyncInfo massivePropList = 6; */ emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( int index); public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.SourceCase getSourceCase(); } /** * Protobuf type {@code AbilityMixinRecoverInfo} */ public static final class AbilityMixinRecoverInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:AbilityMixinRecoverInfo) AbilityMixinRecoverInfoOrBuilder { private static final long serialVersionUID = 0L; // Use AbilityMixinRecoverInfo.newBuilder() to construct. private AbilityMixinRecoverInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AbilityMixinRecoverInfo() { dataList_ = emptyIntList(); massivePropList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AbilityMixinRecoverInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AbilityMixinRecoverInfo( 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: { sourceCase_ = 1; source_ = input.readUInt32(); break; } case 16: { sourceCase_ = 2; source_ = input.readUInt32(); break; } case 24: { localId_ = input.readUInt32(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dataList_ = newIntList(); mutable_bitField0_ |= 0x00000001; } dataList_.addInt(input.readUInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { dataList_ = newIntList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { dataList_.addInt(input.readUInt32()); } input.popLimit(limit); break; } case 40: { isServerbuffModifier_ = input.readBool(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { massivePropList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } massivePropList_.add( input.readMessage(emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dataList_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { massivePropList_ = java.util.Collections.unmodifiableList(massivePropList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.class, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; public enum SourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INSTANCEDABILITYID(1), INSTANCEDMODIFIERID(2), SOURCE_NOT_SET(0); private final int value; private SourceCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SourceCase valueOf(int value) { return forNumber(value); } public static SourceCase forNumber(int value) { switch (value) { case 1: return INSTANCEDABILITYID; case 2: return INSTANCEDMODIFIERID; case 0: return SOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public static final int INSTANCEDABILITYID_FIELD_NUMBER = 1; /** * uint32 instancedAbilityId = 1; * @return Whether the instancedAbilityId field is set. */ @java.lang.Override public boolean hasInstancedAbilityId() { return sourceCase_ == 1; } /** * uint32 instancedAbilityId = 1; * @return The instancedAbilityId. */ @java.lang.Override public int getInstancedAbilityId() { if (sourceCase_ == 1) { return (java.lang.Integer) source_; } return 0; } public static final int INSTANCEDMODIFIERID_FIELD_NUMBER = 2; /** * uint32 instancedModifierId = 2; * @return Whether the instancedModifierId field is set. */ @java.lang.Override public boolean hasInstancedModifierId() { return sourceCase_ == 2; } /** * uint32 instancedModifierId = 2; * @return The instancedModifierId. */ @java.lang.Override public int getInstancedModifierId() { if (sourceCase_ == 2) { return (java.lang.Integer) source_; } return 0; } public static final int LOCALID_FIELD_NUMBER = 3; private int localId_; /** * uint32 localId = 3; * @return The localId. */ @java.lang.Override public int getLocalId() { return localId_; } public static final int DATALIST_FIELD_NUMBER = 4; private com.google.protobuf.Internal.IntList dataList_; /** * repeated uint32 dataList = 4; * @return A list containing the dataList. */ @java.lang.Override public java.util.List getDataListList() { return dataList_; } /** * repeated uint32 dataList = 4; * @return The count of dataList. */ public int getDataListCount() { return dataList_.size(); } /** * repeated uint32 dataList = 4; * @param index The index of the element to return. * @return The dataList at the given index. */ public int getDataList(int index) { return dataList_.getInt(index); } private int dataListMemoizedSerializedSize = -1; public static final int ISSERVERBUFFMODIFIER_FIELD_NUMBER = 5; private boolean isServerbuffModifier_; /** * bool isServerbuffModifier = 5; * @return The isServerbuffModifier. */ @java.lang.Override public boolean getIsServerbuffModifier() { return isServerbuffModifier_; } public static final int MASSIVEPROPLIST_FIELD_NUMBER = 6; private java.util.List massivePropList_; /** * repeated .MassivePropSyncInfo massivePropList = 6; */ @java.lang.Override public java.util.List getMassivePropListList() { return massivePropList_; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ @java.lang.Override public java.util.List getMassivePropListOrBuilderList() { return massivePropList_; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ @java.lang.Override public int getMassivePropListCount() { return massivePropList_.size(); } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ @java.lang.Override public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index) { return massivePropList_.get(index); } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ @java.lang.Override public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( int index) { return massivePropList_.get(index); } 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 (sourceCase_ == 1) { output.writeUInt32( 1, (int)((java.lang.Integer) source_)); } if (sourceCase_ == 2) { output.writeUInt32( 2, (int)((java.lang.Integer) source_)); } if (localId_ != 0) { output.writeUInt32(3, localId_); } if (getDataListList().size() > 0) { output.writeUInt32NoTag(34); output.writeUInt32NoTag(dataListMemoizedSerializedSize); } for (int i = 0; i < dataList_.size(); i++) { output.writeUInt32NoTag(dataList_.getInt(i)); } if (isServerbuffModifier_ != false) { output.writeBool(5, isServerbuffModifier_); } for (int i = 0; i < massivePropList_.size(); i++) { output.writeMessage(6, massivePropList_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sourceCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 1, (int)((java.lang.Integer) source_)); } if (sourceCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 2, (int)((java.lang.Integer) source_)); } if (localId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, localId_); } { int dataSize = 0; for (int i = 0; i < dataList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataList_.getInt(i)); } size += dataSize; if (!getDataListList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } dataListMemoizedSerializedSize = dataSize; } if (isServerbuffModifier_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isServerbuffModifier_); } for (int i = 0; i < massivePropList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, massivePropList_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo)) { return super.equals(obj); } emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo other = (emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo) obj; if (getLocalId() != other.getLocalId()) return false; if (!getDataListList() .equals(other.getDataListList())) return false; if (getIsServerbuffModifier() != other.getIsServerbuffModifier()) return false; if (!getMassivePropListList() .equals(other.getMassivePropListList())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: if (getInstancedAbilityId() != other.getInstancedAbilityId()) return false; break; case 2: if (getInstancedModifierId() != other.getInstancedModifierId()) return false; break; case 0: default: } 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) + LOCALID_FIELD_NUMBER; hash = (53 * hash) + getLocalId(); if (getDataListCount() > 0) { hash = (37 * hash) + DATALIST_FIELD_NUMBER; hash = (53 * hash) + getDataListList().hashCode(); } hash = (37 * hash) + ISSERVERBUFFMODIFIER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsServerbuffModifier()); if (getMassivePropListCount() > 0) { hash = (37 * hash) + MASSIVEPROPLIST_FIELD_NUMBER; hash = (53 * hash) + getMassivePropListList().hashCode(); } switch (sourceCase_) { case 1: hash = (37 * hash) + INSTANCEDABILITYID_FIELD_NUMBER; hash = (53 * hash) + getInstancedAbilityId(); break; case 2: hash = (37 * hash) + INSTANCEDMODIFIERID_FIELD_NUMBER; hash = (53 * hash) + getInstancedModifierId(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code AbilityMixinRecoverInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:AbilityMixinRecoverInfo) emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.class, emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.Builder.class); } // Construct using emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMassivePropListFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); localId_ = 0; dataList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); isServerbuffModifier_ = false; if (massivePropListBuilder_ == null) { massivePropList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { massivePropListBuilder_.clear(); } sourceCase_ = 0; source_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.internal_static_AbilityMixinRecoverInfo_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getDefaultInstanceForType() { return emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo build() { emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo buildPartial() { emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo result = new emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo(this); int from_bitField0_ = bitField0_; if (sourceCase_ == 1) { result.source_ = source_; } if (sourceCase_ == 2) { result.source_ = source_; } result.localId_ = localId_; if (((bitField0_ & 0x00000001) != 0)) { dataList_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.dataList_ = dataList_; result.isServerbuffModifier_ = isServerbuffModifier_; if (massivePropListBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { massivePropList_ = java.util.Collections.unmodifiableList(massivePropList_); bitField0_ = (bitField0_ & ~0x00000002); } result.massivePropList_ = massivePropList_; } else { result.massivePropList_ = massivePropListBuilder_.build(); } result.sourceCase_ = sourceCase_; 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo) { return mergeFrom((emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo other) { if (other == emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo.getDefaultInstance()) return this; if (other.getLocalId() != 0) { setLocalId(other.getLocalId()); } if (!other.dataList_.isEmpty()) { if (dataList_.isEmpty()) { dataList_ = other.dataList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDataListIsMutable(); dataList_.addAll(other.dataList_); } onChanged(); } if (other.getIsServerbuffModifier() != false) { setIsServerbuffModifier(other.getIsServerbuffModifier()); } if (massivePropListBuilder_ == null) { if (!other.massivePropList_.isEmpty()) { if (massivePropList_.isEmpty()) { massivePropList_ = other.massivePropList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMassivePropListIsMutable(); massivePropList_.addAll(other.massivePropList_); } onChanged(); } } else { if (!other.massivePropList_.isEmpty()) { if (massivePropListBuilder_.isEmpty()) { massivePropListBuilder_.dispose(); massivePropListBuilder_ = null; massivePropList_ = other.massivePropList_; bitField0_ = (bitField0_ & ~0x00000002); massivePropListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMassivePropListFieldBuilder() : null; } else { massivePropListBuilder_.addAllMessages(other.massivePropList_); } } } switch (other.getSourceCase()) { case INSTANCEDABILITYID: { setInstancedAbilityId(other.getInstancedAbilityId()); break; } case INSTANCEDMODIFIERID: { setInstancedModifierId(other.getInstancedModifierId()); break; } case SOURCE_NOT_SET: { break; } } 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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sourceCase_ = 0; private java.lang.Object source_; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public Builder clearSource() { sourceCase_ = 0; source_ = null; onChanged(); return this; } private int bitField0_; /** * uint32 instancedAbilityId = 1; * @return Whether the instancedAbilityId field is set. */ public boolean hasInstancedAbilityId() { return sourceCase_ == 1; } /** * uint32 instancedAbilityId = 1; * @return The instancedAbilityId. */ public int getInstancedAbilityId() { if (sourceCase_ == 1) { return (java.lang.Integer) source_; } return 0; } /** * uint32 instancedAbilityId = 1; * @param value The instancedAbilityId to set. * @return This builder for chaining. */ public Builder setInstancedAbilityId(int value) { sourceCase_ = 1; source_ = value; onChanged(); return this; } /** * uint32 instancedAbilityId = 1; * @return This builder for chaining. */ public Builder clearInstancedAbilityId() { if (sourceCase_ == 1) { sourceCase_ = 0; source_ = null; onChanged(); } return this; } /** * uint32 instancedModifierId = 2; * @return Whether the instancedModifierId field is set. */ public boolean hasInstancedModifierId() { return sourceCase_ == 2; } /** * uint32 instancedModifierId = 2; * @return The instancedModifierId. */ public int getInstancedModifierId() { if (sourceCase_ == 2) { return (java.lang.Integer) source_; } return 0; } /** * uint32 instancedModifierId = 2; * @param value The instancedModifierId to set. * @return This builder for chaining. */ public Builder setInstancedModifierId(int value) { sourceCase_ = 2; source_ = value; onChanged(); return this; } /** * uint32 instancedModifierId = 2; * @return This builder for chaining. */ public Builder clearInstancedModifierId() { if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; onChanged(); } return this; } private int localId_ ; /** * uint32 localId = 3; * @return The localId. */ @java.lang.Override public int getLocalId() { return localId_; } /** * uint32 localId = 3; * @param value The localId to set. * @return This builder for chaining. */ public Builder setLocalId(int value) { localId_ = value; onChanged(); return this; } /** * uint32 localId = 3; * @return This builder for chaining. */ public Builder clearLocalId() { localId_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList dataList_ = emptyIntList(); private void ensureDataListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dataList_ = mutableCopy(dataList_); bitField0_ |= 0x00000001; } } /** * repeated uint32 dataList = 4; * @return A list containing the dataList. */ public java.util.List getDataListList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(dataList_) : dataList_; } /** * repeated uint32 dataList = 4; * @return The count of dataList. */ public int getDataListCount() { return dataList_.size(); } /** * repeated uint32 dataList = 4; * @param index The index of the element to return. * @return The dataList at the given index. */ public int getDataList(int index) { return dataList_.getInt(index); } /** * repeated uint32 dataList = 4; * @param index The index to set the value at. * @param value The dataList to set. * @return This builder for chaining. */ public Builder setDataList( int index, int value) { ensureDataListIsMutable(); dataList_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 dataList = 4; * @param value The dataList to add. * @return This builder for chaining. */ public Builder addDataList(int value) { ensureDataListIsMutable(); dataList_.addInt(value); onChanged(); return this; } /** * repeated uint32 dataList = 4; * @param values The dataList to add. * @return This builder for chaining. */ public Builder addAllDataList( java.lang.Iterable values) { ensureDataListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dataList_); onChanged(); return this; } /** * repeated uint32 dataList = 4; * @return This builder for chaining. */ public Builder clearDataList() { dataList_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private boolean isServerbuffModifier_ ; /** * bool isServerbuffModifier = 5; * @return The isServerbuffModifier. */ @java.lang.Override public boolean getIsServerbuffModifier() { return isServerbuffModifier_; } /** * bool isServerbuffModifier = 5; * @param value The isServerbuffModifier to set. * @return This builder for chaining. */ public Builder setIsServerbuffModifier(boolean value) { isServerbuffModifier_ = value; onChanged(); return this; } /** * bool isServerbuffModifier = 5; * @return This builder for chaining. */ public Builder clearIsServerbuffModifier() { isServerbuffModifier_ = false; onChanged(); return this; } private java.util.List massivePropList_ = java.util.Collections.emptyList(); private void ensureMassivePropListIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { massivePropList_ = new java.util.ArrayList(massivePropList_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> massivePropListBuilder_; /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public java.util.List getMassivePropListList() { if (massivePropListBuilder_ == null) { return java.util.Collections.unmodifiableList(massivePropList_); } else { return massivePropListBuilder_.getMessageList(); } } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public int getMassivePropListCount() { if (massivePropListBuilder_ == null) { return massivePropList_.size(); } else { return massivePropListBuilder_.getCount(); } } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo getMassivePropList(int index) { if (massivePropListBuilder_ == null) { return massivePropList_.get(index); } else { return massivePropListBuilder_.getMessage(index); } } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder setMassivePropList( int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo value) { if (massivePropListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMassivePropListIsMutable(); massivePropList_.set(index, value); onChanged(); } else { massivePropListBuilder_.setMessage(index, value); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder setMassivePropList( int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder builderForValue) { if (massivePropListBuilder_ == null) { ensureMassivePropListIsMutable(); massivePropList_.set(index, builderForValue.build()); onChanged(); } else { massivePropListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder addMassivePropList(emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo value) { if (massivePropListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMassivePropListIsMutable(); massivePropList_.add(value); onChanged(); } else { massivePropListBuilder_.addMessage(value); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder addMassivePropList( int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo value) { if (massivePropListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMassivePropListIsMutable(); massivePropList_.add(index, value); onChanged(); } else { massivePropListBuilder_.addMessage(index, value); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder addMassivePropList( emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder builderForValue) { if (massivePropListBuilder_ == null) { ensureMassivePropListIsMutable(); massivePropList_.add(builderForValue.build()); onChanged(); } else { massivePropListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder addMassivePropList( int index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder builderForValue) { if (massivePropListBuilder_ == null) { ensureMassivePropListIsMutable(); massivePropList_.add(index, builderForValue.build()); onChanged(); } else { massivePropListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder addAllMassivePropList( java.lang.Iterable values) { if (massivePropListBuilder_ == null) { ensureMassivePropListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, massivePropList_); onChanged(); } else { massivePropListBuilder_.addAllMessages(values); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder clearMassivePropList() { if (massivePropListBuilder_ == null) { massivePropList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { massivePropListBuilder_.clear(); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public Builder removeMassivePropList(int index) { if (massivePropListBuilder_ == null) { ensureMassivePropListIsMutable(); massivePropList_.remove(index); onChanged(); } else { massivePropListBuilder_.remove(index); } return this; } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder getMassivePropListBuilder( int index) { return getMassivePropListFieldBuilder().getBuilder(index); } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder getMassivePropListOrBuilder( int index) { if (massivePropListBuilder_ == null) { return massivePropList_.get(index); } else { return massivePropListBuilder_.getMessageOrBuilder(index); } } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public java.util.List getMassivePropListOrBuilderList() { if (massivePropListBuilder_ != null) { return massivePropListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(massivePropList_); } } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder addMassivePropListBuilder() { return getMassivePropListFieldBuilder().addBuilder( emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()); } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder addMassivePropListBuilder( int index) { return getMassivePropListFieldBuilder().addBuilder( index, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.getDefaultInstance()); } /** * repeated .MassivePropSyncInfo massivePropList = 6; */ public java.util.List getMassivePropListBuilderList() { return getMassivePropListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder> getMassivePropListFieldBuilder() { if (massivePropListBuilder_ == null) { massivePropListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfo.Builder, emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.MassivePropSyncInfoOrBuilder>( massivePropList_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); massivePropList_ = null; } return massivePropListBuilder_; } @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:AbilityMixinRecoverInfo) } // @@protoc_insertion_point(class_scope:AbilityMixinRecoverInfo) private static final emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo(); } public static emu.grasscutter.net.proto.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AbilityMixinRecoverInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AbilityMixinRecoverInfo(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.AbilityMixinRecoverInfoOuterClass.AbilityMixinRecoverInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_AbilityMixinRecoverInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_AbilityMixinRecoverInfo_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\035AbilityMixinRecoverInfo.proto\032\031Massive" + "PropSyncInfo.proto\"\320\001\n\027AbilityMixinRecov" + "erInfo\022\034\n\022instancedAbilityId\030\001 \001(\rH\000\022\035\n\023" + "instancedModifierId\030\002 \001(\rH\000\022\017\n\007localId\030\003" + " \001(\r\022\020\n\010dataList\030\004 \003(\r\022\034\n\024isServerbuffMo" + "difier\030\005 \001(\010\022-\n\017massivePropList\030\006 \003(\0132\024." + "MassivePropSyncInfoB\010\n\006sourceB\033\n\031emu.gra" + "sscutter.net.protob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.getDescriptor(), }); internal_static_AbilityMixinRecoverInfo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_AbilityMixinRecoverInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_AbilityMixinRecoverInfo_descriptor, new java.lang.String[] { "InstancedAbilityId", "InstancedModifierId", "LocalId", "DataList", "IsServerbuffModifier", "MassivePropList", "Source", }); emu.grasscutter.net.proto.MassivePropSyncInfoOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }