All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: RogueDiaryAvatar.proto

package emu.grasscutter.net.proto;

public final class RogueDiaryAvatarOuterClass {
  private RogueDiaryAvatarOuterClass() {}
  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 RogueDiaryAvatarOrBuilder extends
      // @@protoc_insertion_point(interface_extends:RogueDiaryAvatar)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6;
     * @return A list containing the disableStatusList.
     */
    java.util.List getDisableStatusListList();
    /**
     * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6;
     * @return The count of disableStatusList.
     */
    int getDisableStatusListCount();
    /**
     * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6;
     * @param index The index of the element to return.
     * @return The disableStatusList at the given index.
     */
    emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus getDisableStatusList(int index);
    /**
     * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6;
     * @return A list containing the enum numeric values on the wire for disableStatusList.
     */
    java.util.List
    getDisableStatusListValueList();
    /**
     * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6;
     * @param index The index of the value to return.
     * @return The enum numeric value on the wire of disableStatusList at the given index.
     */
    int getDisableStatusListValue(int index);

    /**
     * uint32 tired_round = 3;
     * @return The tiredRound.
     */
    int getTiredRound();

    /**
     * .ActivityDungeonAvatar avatar = 13;
     * @return Whether the avatar field is set.
     */
    boolean hasAvatar();
    /**
     * .ActivityDungeonAvatar avatar = 13;
     * @return The avatar.
     */
    emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar getAvatar();
    /**
     * .ActivityDungeonAvatar avatar = 13;
     */
    emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatarOrBuilder getAvatarOrBuilder();

    /**
     * uint32 level = 5;
     * @return The level.
     */
    int getLevel();
  }
  /**
   * 
   * Obf: EFJJCHONDHM
   * 
* * Protobuf type {@code RogueDiaryAvatar} */ public static final class RogueDiaryAvatar extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:RogueDiaryAvatar) RogueDiaryAvatarOrBuilder { private static final long serialVersionUID = 0L; // Use RogueDiaryAvatar.newBuilder() to construct. private RogueDiaryAvatar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RogueDiaryAvatar() { disableStatusList_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RogueDiaryAvatar(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RogueDiaryAvatar( 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 24: { tiredRound_ = input.readUInt32(); break; } case 40: { level_ = input.readUInt32(); break; } case 48: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { disableStatusList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } disableStatusList_.add(rawValue); break; } case 50: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { disableStatusList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } disableStatusList_.add(rawValue); } input.popLimit(oldLimit); break; } case 106: { emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.Builder subBuilder = null; if (avatar_ != null) { subBuilder = avatar_.toBuilder(); } avatar_ = input.readMessage(emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(avatar_); avatar_ = subBuilder.buildPartial(); } 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)) { disableStatusList_ = java.util.Collections.unmodifiableList(disableStatusList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.internal_static_RogueDiaryAvatar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.internal_static_RogueDiaryAvatar_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.class, emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.Builder.class); } public static final int DISABLE_STATUS_LIST_FIELD_NUMBER = 6; private java.util.List disableStatusList_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus> disableStatusList_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus>() { public emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus convert(java.lang.Integer from) { @SuppressWarnings("deprecation") emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus result = emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus.valueOf(from); return result == null ? emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus.UNRECOGNIZED : result; } }; /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return A list containing the disableStatusList. */ @java.lang.Override public java.util.List getDisableStatusListList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus>(disableStatusList_, disableStatusList_converter_); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return The count of disableStatusList. */ @java.lang.Override public int getDisableStatusListCount() { return disableStatusList_.size(); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param index The index of the element to return. * @return The disableStatusList at the given index. */ @java.lang.Override public emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus getDisableStatusList(int index) { return disableStatusList_converter_.convert(disableStatusList_.get(index)); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return A list containing the enum numeric values on the wire for disableStatusList. */ @java.lang.Override public java.util.List getDisableStatusListValueList() { return disableStatusList_; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of disableStatusList at the given index. */ @java.lang.Override public int getDisableStatusListValue(int index) { return disableStatusList_.get(index); } private int disableStatusListMemoizedSerializedSize; public static final int TIRED_ROUND_FIELD_NUMBER = 3; private int tiredRound_; /** * uint32 tired_round = 3; * @return The tiredRound. */ @java.lang.Override public int getTiredRound() { return tiredRound_; } public static final int AVATAR_FIELD_NUMBER = 13; private emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar avatar_; /** * .ActivityDungeonAvatar avatar = 13; * @return Whether the avatar field is set. */ @java.lang.Override public boolean hasAvatar() { return avatar_ != null; } /** * .ActivityDungeonAvatar avatar = 13; * @return The avatar. */ @java.lang.Override public emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar getAvatar() { return avatar_ == null ? emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.getDefaultInstance() : avatar_; } /** * .ActivityDungeonAvatar avatar = 13; */ @java.lang.Override public emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatarOrBuilder getAvatarOrBuilder() { return getAvatar(); } public static final int LEVEL_FIELD_NUMBER = 5; private int level_; /** * uint32 level = 5; * @return The level. */ @java.lang.Override public int getLevel() { return level_; } 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 (tiredRound_ != 0) { output.writeUInt32(3, tiredRound_); } if (level_ != 0) { output.writeUInt32(5, level_); } if (getDisableStatusListList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(disableStatusListMemoizedSerializedSize); } for (int i = 0; i < disableStatusList_.size(); i++) { output.writeEnumNoTag(disableStatusList_.get(i)); } if (avatar_ != null) { output.writeMessage(13, getAvatar()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (tiredRound_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, tiredRound_); } if (level_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, level_); } { int dataSize = 0; for (int i = 0; i < disableStatusList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(disableStatusList_.get(i)); } size += dataSize; if (!getDisableStatusListList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }disableStatusListMemoizedSerializedSize = dataSize; } if (avatar_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getAvatar()); } 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar)) { return super.equals(obj); } emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar other = (emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar) obj; if (!disableStatusList_.equals(other.disableStatusList_)) return false; if (getTiredRound() != other.getTiredRound()) return false; if (hasAvatar() != other.hasAvatar()) return false; if (hasAvatar()) { if (!getAvatar() .equals(other.getAvatar())) return false; } if (getLevel() != other.getLevel()) 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(); if (getDisableStatusListCount() > 0) { hash = (37 * hash) + DISABLE_STATUS_LIST_FIELD_NUMBER; hash = (53 * hash) + disableStatusList_.hashCode(); } hash = (37 * hash) + TIRED_ROUND_FIELD_NUMBER; hash = (53 * hash) + getTiredRound(); if (hasAvatar()) { hash = (37 * hash) + AVATAR_FIELD_NUMBER; hash = (53 * hash) + getAvatar().hashCode(); } hash = (37 * hash) + LEVEL_FIELD_NUMBER; hash = (53 * hash) + getLevel(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar 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; } /** *
     * Obf: EFJJCHONDHM
     * 
* * Protobuf type {@code RogueDiaryAvatar} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:RogueDiaryAvatar) emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatarOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.internal_static_RogueDiaryAvatar_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.internal_static_RogueDiaryAvatar_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.class, emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.Builder.class); } // Construct using emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.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(); disableStatusList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); tiredRound_ = 0; if (avatarBuilder_ == null) { avatar_ = null; } else { avatar_ = null; avatarBuilder_ = null; } level_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.internal_static_RogueDiaryAvatar_descriptor; } @java.lang.Override public emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar getDefaultInstanceForType() { return emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.getDefaultInstance(); } @java.lang.Override public emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar build() { emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar buildPartial() { emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar result = new emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { disableStatusList_ = java.util.Collections.unmodifiableList(disableStatusList_); bitField0_ = (bitField0_ & ~0x00000001); } result.disableStatusList_ = disableStatusList_; result.tiredRound_ = tiredRound_; if (avatarBuilder_ == null) { result.avatar_ = avatar_; } else { result.avatar_ = avatarBuilder_.build(); } result.level_ = level_; 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar) { return mergeFrom((emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar other) { if (other == emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar.getDefaultInstance()) return this; if (!other.disableStatusList_.isEmpty()) { if (disableStatusList_.isEmpty()) { disableStatusList_ = other.disableStatusList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDisableStatusListIsMutable(); disableStatusList_.addAll(other.disableStatusList_); } onChanged(); } if (other.getTiredRound() != 0) { setTiredRound(other.getTiredRound()); } if (other.hasAvatar()) { mergeAvatar(other.getAvatar()); } if (other.getLevel() != 0) { setLevel(other.getLevel()); } 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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List disableStatusList_ = java.util.Collections.emptyList(); private void ensureDisableStatusListIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { disableStatusList_ = new java.util.ArrayList(disableStatusList_); bitField0_ |= 0x00000001; } } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return A list containing the disableStatusList. */ public java.util.List getDisableStatusListList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus>(disableStatusList_, disableStatusList_converter_); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return The count of disableStatusList. */ public int getDisableStatusListCount() { return disableStatusList_.size(); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param index The index of the element to return. * @return The disableStatusList at the given index. */ public emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus getDisableStatusList(int index) { return disableStatusList_converter_.convert(disableStatusList_.get(index)); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param index The index to set the value at. * @param value The disableStatusList to set. * @return This builder for chaining. */ public Builder setDisableStatusList( int index, emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus value) { if (value == null) { throw new NullPointerException(); } ensureDisableStatusListIsMutable(); disableStatusList_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param value The disableStatusList to add. * @return This builder for chaining. */ public Builder addDisableStatusList(emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus value) { if (value == null) { throw new NullPointerException(); } ensureDisableStatusListIsMutable(); disableStatusList_.add(value.getNumber()); onChanged(); return this; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param values The disableStatusList to add. * @return This builder for chaining. */ public Builder addAllDisableStatusList( java.lang.Iterable values) { ensureDisableStatusListIsMutable(); for (emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.RogueDiaryAvatarDisableStatus value : values) { disableStatusList_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return This builder for chaining. */ public Builder clearDisableStatusList() { disableStatusList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @return A list containing the enum numeric values on the wire for disableStatusList. */ public java.util.List getDisableStatusListValueList() { return java.util.Collections.unmodifiableList(disableStatusList_); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of disableStatusList at the given index. */ public int getDisableStatusListValue(int index) { return disableStatusList_.get(index); } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of disableStatusList at the given index. * @return This builder for chaining. */ public Builder setDisableStatusListValue( int index, int value) { ensureDisableStatusListIsMutable(); disableStatusList_.set(index, value); onChanged(); return this; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param value The enum numeric value on the wire for disableStatusList to add. * @return This builder for chaining. */ public Builder addDisableStatusListValue(int value) { ensureDisableStatusListIsMutable(); disableStatusList_.add(value); onChanged(); return this; } /** * repeated .RogueDiaryAvatarDisableStatus disable_status_list = 6; * @param values The enum numeric values on the wire for disableStatusList to add. * @return This builder for chaining. */ public Builder addAllDisableStatusListValue( java.lang.Iterable values) { ensureDisableStatusListIsMutable(); for (int value : values) { disableStatusList_.add(value); } onChanged(); return this; } private int tiredRound_ ; /** * uint32 tired_round = 3; * @return The tiredRound. */ @java.lang.Override public int getTiredRound() { return tiredRound_; } /** * uint32 tired_round = 3; * @param value The tiredRound to set. * @return This builder for chaining. */ public Builder setTiredRound(int value) { tiredRound_ = value; onChanged(); return this; } /** * uint32 tired_round = 3; * @return This builder for chaining. */ public Builder clearTiredRound() { tiredRound_ = 0; onChanged(); return this; } private emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar avatar_; private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar, emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.Builder, emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatarOrBuilder> avatarBuilder_; /** * .ActivityDungeonAvatar avatar = 13; * @return Whether the avatar field is set. */ public boolean hasAvatar() { return avatarBuilder_ != null || avatar_ != null; } /** * .ActivityDungeonAvatar avatar = 13; * @return The avatar. */ public emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar getAvatar() { if (avatarBuilder_ == null) { return avatar_ == null ? emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.getDefaultInstance() : avatar_; } else { return avatarBuilder_.getMessage(); } } /** * .ActivityDungeonAvatar avatar = 13; */ public Builder setAvatar(emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar value) { if (avatarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } avatar_ = value; onChanged(); } else { avatarBuilder_.setMessage(value); } return this; } /** * .ActivityDungeonAvatar avatar = 13; */ public Builder setAvatar( emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.Builder builderForValue) { if (avatarBuilder_ == null) { avatar_ = builderForValue.build(); onChanged(); } else { avatarBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ActivityDungeonAvatar avatar = 13; */ public Builder mergeAvatar(emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar value) { if (avatarBuilder_ == null) { if (avatar_ != null) { avatar_ = emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); } else { avatar_ = value; } onChanged(); } else { avatarBuilder_.mergeFrom(value); } return this; } /** * .ActivityDungeonAvatar avatar = 13; */ public Builder clearAvatar() { if (avatarBuilder_ == null) { avatar_ = null; onChanged(); } else { avatar_ = null; avatarBuilder_ = null; } return this; } /** * .ActivityDungeonAvatar avatar = 13; */ public emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.Builder getAvatarBuilder() { onChanged(); return getAvatarFieldBuilder().getBuilder(); } /** * .ActivityDungeonAvatar avatar = 13; */ public emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatarOrBuilder getAvatarOrBuilder() { if (avatarBuilder_ != null) { return avatarBuilder_.getMessageOrBuilder(); } else { return avatar_ == null ? emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.getDefaultInstance() : avatar_; } } /** * .ActivityDungeonAvatar avatar = 13; */ private com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar, emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.Builder, emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatarOrBuilder> getAvatarFieldBuilder() { if (avatarBuilder_ == null) { avatarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar, emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatar.Builder, emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.ActivityDungeonAvatarOrBuilder>( getAvatar(), getParentForChildren(), isClean()); avatar_ = null; } return avatarBuilder_; } private int level_ ; /** * uint32 level = 5; * @return The level. */ @java.lang.Override public int getLevel() { return level_; } /** * uint32 level = 5; * @param value The level to set. * @return This builder for chaining. */ public Builder setLevel(int value) { level_ = value; onChanged(); return this; } /** * uint32 level = 5; * @return This builder for chaining. */ public Builder clearLevel() { level_ = 0; 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:RogueDiaryAvatar) } // @@protoc_insertion_point(class_scope:RogueDiaryAvatar) private static final emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar(); } public static emu.grasscutter.net.proto.RogueDiaryAvatarOuterClass.RogueDiaryAvatar getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RogueDiaryAvatar parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RogueDiaryAvatar(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.RogueDiaryAvatarOuterClass.RogueDiaryAvatar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_RogueDiaryAvatar_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_RogueDiaryAvatar_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\026RogueDiaryAvatar.proto\032#RogueDiaryAvat" + "arDisableStatus.proto\032\033ActivityDungeonAv" + "atar.proto\"\233\001\n\020RogueDiaryAvatar\022;\n\023disab" + "le_status_list\030\006 \003(\0162\036.RogueDiaryAvatarD" + "isableStatus\022\023\n\013tired_round\030\003 \001(\r\022&\n\006ava" + "tar\030\r \001(\0132\026.ActivityDungeonAvatar\022\r\n\005lev" + "el\030\005 \001(\rB\033\n\031emu.grasscutter.net.protob\006p" + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.getDescriptor(), emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.getDescriptor(), }); internal_static_RogueDiaryAvatar_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_RogueDiaryAvatar_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_RogueDiaryAvatar_descriptor, new java.lang.String[] { "DisableStatusList", "TiredRound", "Avatar", "Level", }); emu.grasscutter.net.proto.RogueDiaryAvatarDisableStatusOuterClass.getDescriptor(); emu.grasscutter.net.proto.ActivityDungeonAvatarOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy