emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grasscutter Show documentation
Show all versions of grasscutter Show documentation
A server software reimplementation for an anime game.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeAvatarRewardEventNotify.proto
package emu.grasscutter.net.proto;
public final class HomeAvatarRewardEventNotifyOuterClass {
private HomeAvatarRewardEventNotifyOuterClass() {}
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 HomeAvatarRewardEventNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeAvatarRewardEventNotify)
com.google.protobuf.MessageOrBuilder {
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
* @return Whether the rewardEvent field is set.
*/
boolean hasRewardEvent();
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
* @return The rewardEvent.
*/
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo getRewardEvent();
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder getRewardEventOrBuilder();
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
java.util.List
getPendingListList();
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo getPendingList(int index);
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
int getPendingListCount();
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
java.util.List extends emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>
getPendingListOrBuilderList();
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder getPendingListOrBuilder(
int index);
/**
* bool is_event_trigger = 7;
* @return The isEventTrigger.
*/
boolean getIsEventTrigger();
}
/**
*
* CmdId: 2640
* Obf: DCCPJJPIGAB
*
*
* Protobuf type {@code HomeAvatarRewardEventNotify}
*/
public static final class HomeAvatarRewardEventNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeAvatarRewardEventNotify)
HomeAvatarRewardEventNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeAvatarRewardEventNotify.newBuilder() to construct.
private HomeAvatarRewardEventNotify(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HomeAvatarRewardEventNotify() {
pendingList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeAvatarRewardEventNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeAvatarRewardEventNotify(
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 34: {
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder subBuilder = null;
if (rewardEvent_ != null) {
subBuilder = rewardEvent_.toBuilder();
}
rewardEvent_ = input.readMessage(emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rewardEvent_);
rewardEvent_ = subBuilder.buildPartial();
}
break;
}
case 56: {
isEventTrigger_ = input.readBool();
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
pendingList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
pendingList_.add(
input.readMessage(emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.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)) {
pendingList_ = java.util.Collections.unmodifiableList(pendingList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.internal_static_HomeAvatarRewardEventNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.internal_static_HomeAvatarRewardEventNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.class, emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.Builder.class);
}
public static final int REWARD_EVENT_FIELD_NUMBER = 4;
private emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo rewardEvent_;
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
* @return Whether the rewardEvent field is set.
*/
@java.lang.Override
public boolean hasRewardEvent() {
return rewardEvent_ != null;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
* @return The rewardEvent.
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo getRewardEvent() {
return rewardEvent_ == null ? emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.getDefaultInstance() : rewardEvent_;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder getRewardEventOrBuilder() {
return getRewardEvent();
}
public static final int PENDING_LIST_FIELD_NUMBER = 12;
private java.util.List pendingList_;
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
@java.lang.Override
public java.util.List getPendingListList() {
return pendingList_;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
@java.lang.Override
public java.util.List extends emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>
getPendingListOrBuilderList() {
return pendingList_;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
@java.lang.Override
public int getPendingListCount() {
return pendingList_.size();
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo getPendingList(int index) {
return pendingList_.get(index);
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder getPendingListOrBuilder(
int index) {
return pendingList_.get(index);
}
public static final int IS_EVENT_TRIGGER_FIELD_NUMBER = 7;
private boolean isEventTrigger_;
/**
* bool is_event_trigger = 7;
* @return The isEventTrigger.
*/
@java.lang.Override
public boolean getIsEventTrigger() {
return isEventTrigger_;
}
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 {
if (rewardEvent_ != null) {
output.writeMessage(4, getRewardEvent());
}
if (isEventTrigger_ != false) {
output.writeBool(7, isEventTrigger_);
}
for (int i = 0; i < pendingList_.size(); i++) {
output.writeMessage(12, pendingList_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rewardEvent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRewardEvent());
}
if (isEventTrigger_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isEventTrigger_);
}
for (int i = 0; i < pendingList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, pendingList_.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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify other = (emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify) obj;
if (hasRewardEvent() != other.hasRewardEvent()) return false;
if (hasRewardEvent()) {
if (!getRewardEvent()
.equals(other.getRewardEvent())) return false;
}
if (!getPendingListList()
.equals(other.getPendingListList())) return false;
if (getIsEventTrigger()
!= other.getIsEventTrigger()) 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 (hasRewardEvent()) {
hash = (37 * hash) + REWARD_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getRewardEvent().hashCode();
}
if (getPendingListCount() > 0) {
hash = (37 * hash) + PENDING_LIST_FIELD_NUMBER;
hash = (53 * hash) + getPendingListList().hashCode();
}
hash = (37 * hash) + IS_EVENT_TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsEventTrigger());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify 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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify 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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify 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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify 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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify 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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify 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;
}
/**
*
* CmdId: 2640
* Obf: DCCPJJPIGAB
*
*
* Protobuf type {@code HomeAvatarRewardEventNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:HomeAvatarRewardEventNotify)
emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.internal_static_HomeAvatarRewardEventNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.internal_static_HomeAvatarRewardEventNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.class, emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPendingListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (rewardEventBuilder_ == null) {
rewardEvent_ = null;
} else {
rewardEvent_ = null;
rewardEventBuilder_ = null;
}
if (pendingListBuilder_ == null) {
pendingList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
pendingListBuilder_.clear();
}
isEventTrigger_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.internal_static_HomeAvatarRewardEventNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify build() {
emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify buildPartial() {
emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify result = new emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify(this);
int from_bitField0_ = bitField0_;
if (rewardEventBuilder_ == null) {
result.rewardEvent_ = rewardEvent_;
} else {
result.rewardEvent_ = rewardEventBuilder_.build();
}
if (pendingListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
pendingList_ = java.util.Collections.unmodifiableList(pendingList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.pendingList_ = pendingList_;
} else {
result.pendingList_ = pendingListBuilder_.build();
}
result.isEventTrigger_ = isEventTrigger_;
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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify) {
return mergeFrom((emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify other) {
if (other == emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify.getDefaultInstance()) return this;
if (other.hasRewardEvent()) {
mergeRewardEvent(other.getRewardEvent());
}
if (pendingListBuilder_ == null) {
if (!other.pendingList_.isEmpty()) {
if (pendingList_.isEmpty()) {
pendingList_ = other.pendingList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePendingListIsMutable();
pendingList_.addAll(other.pendingList_);
}
onChanged();
}
} else {
if (!other.pendingList_.isEmpty()) {
if (pendingListBuilder_.isEmpty()) {
pendingListBuilder_.dispose();
pendingListBuilder_ = null;
pendingList_ = other.pendingList_;
bitField0_ = (bitField0_ & ~0x00000001);
pendingListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPendingListFieldBuilder() : null;
} else {
pendingListBuilder_.addAllMessages(other.pendingList_);
}
}
}
if (other.getIsEventTrigger() != false) {
setIsEventTrigger(other.getIsEventTrigger());
}
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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo rewardEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder> rewardEventBuilder_;
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
* @return Whether the rewardEvent field is set.
*/
public boolean hasRewardEvent() {
return rewardEventBuilder_ != null || rewardEvent_ != null;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
* @return The rewardEvent.
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo getRewardEvent() {
if (rewardEventBuilder_ == null) {
return rewardEvent_ == null ? emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.getDefaultInstance() : rewardEvent_;
} else {
return rewardEventBuilder_.getMessage();
}
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
public Builder setRewardEvent(emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo value) {
if (rewardEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rewardEvent_ = value;
onChanged();
} else {
rewardEventBuilder_.setMessage(value);
}
return this;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
public Builder setRewardEvent(
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder builderForValue) {
if (rewardEventBuilder_ == null) {
rewardEvent_ = builderForValue.build();
onChanged();
} else {
rewardEventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
public Builder mergeRewardEvent(emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo value) {
if (rewardEventBuilder_ == null) {
if (rewardEvent_ != null) {
rewardEvent_ =
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.newBuilder(rewardEvent_).mergeFrom(value).buildPartial();
} else {
rewardEvent_ = value;
}
onChanged();
} else {
rewardEventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
public Builder clearRewardEvent() {
if (rewardEventBuilder_ == null) {
rewardEvent_ = null;
onChanged();
} else {
rewardEvent_ = null;
rewardEventBuilder_ = null;
}
return this;
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder getRewardEventBuilder() {
onChanged();
return getRewardEventFieldBuilder().getBuilder();
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder getRewardEventOrBuilder() {
if (rewardEventBuilder_ != null) {
return rewardEventBuilder_.getMessageOrBuilder();
} else {
return rewardEvent_ == null ?
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.getDefaultInstance() : rewardEvent_;
}
}
/**
* .HomeAvatarRewardEventInfo reward_event = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>
getRewardEventFieldBuilder() {
if (rewardEventBuilder_ == null) {
rewardEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>(
getRewardEvent(),
getParentForChildren(),
isClean());
rewardEvent_ = null;
}
return rewardEventBuilder_;
}
private java.util.List pendingList_ =
java.util.Collections.emptyList();
private void ensurePendingListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
pendingList_ = new java.util.ArrayList(pendingList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder> pendingListBuilder_;
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public java.util.List getPendingListList() {
if (pendingListBuilder_ == null) {
return java.util.Collections.unmodifiableList(pendingList_);
} else {
return pendingListBuilder_.getMessageList();
}
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public int getPendingListCount() {
if (pendingListBuilder_ == null) {
return pendingList_.size();
} else {
return pendingListBuilder_.getCount();
}
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo getPendingList(int index) {
if (pendingListBuilder_ == null) {
return pendingList_.get(index);
} else {
return pendingListBuilder_.getMessage(index);
}
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder setPendingList(
int index, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo value) {
if (pendingListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePendingListIsMutable();
pendingList_.set(index, value);
onChanged();
} else {
pendingListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder setPendingList(
int index, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder builderForValue) {
if (pendingListBuilder_ == null) {
ensurePendingListIsMutable();
pendingList_.set(index, builderForValue.build());
onChanged();
} else {
pendingListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder addPendingList(emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo value) {
if (pendingListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePendingListIsMutable();
pendingList_.add(value);
onChanged();
} else {
pendingListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder addPendingList(
int index, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo value) {
if (pendingListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePendingListIsMutable();
pendingList_.add(index, value);
onChanged();
} else {
pendingListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder addPendingList(
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder builderForValue) {
if (pendingListBuilder_ == null) {
ensurePendingListIsMutable();
pendingList_.add(builderForValue.build());
onChanged();
} else {
pendingListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder addPendingList(
int index, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder builderForValue) {
if (pendingListBuilder_ == null) {
ensurePendingListIsMutable();
pendingList_.add(index, builderForValue.build());
onChanged();
} else {
pendingListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder addAllPendingList(
java.lang.Iterable extends emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo> values) {
if (pendingListBuilder_ == null) {
ensurePendingListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pendingList_);
onChanged();
} else {
pendingListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder clearPendingList() {
if (pendingListBuilder_ == null) {
pendingList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pendingListBuilder_.clear();
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public Builder removePendingList(int index) {
if (pendingListBuilder_ == null) {
ensurePendingListIsMutable();
pendingList_.remove(index);
onChanged();
} else {
pendingListBuilder_.remove(index);
}
return this;
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder getPendingListBuilder(
int index) {
return getPendingListFieldBuilder().getBuilder(index);
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder getPendingListOrBuilder(
int index) {
if (pendingListBuilder_ == null) {
return pendingList_.get(index); } else {
return pendingListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public java.util.List extends emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>
getPendingListOrBuilderList() {
if (pendingListBuilder_ != null) {
return pendingListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pendingList_);
}
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder addPendingListBuilder() {
return getPendingListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.getDefaultInstance());
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder addPendingListBuilder(
int index) {
return getPendingListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.getDefaultInstance());
}
/**
* repeated .HomeAvatarRewardEventInfo pending_list = 12;
*/
public java.util.List
getPendingListBuilderList() {
return getPendingListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>
getPendingListFieldBuilder() {
if (pendingListBuilder_ == null) {
pendingListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfo.Builder, emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.HomeAvatarRewardEventInfoOrBuilder>(
pendingList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
pendingList_ = null;
}
return pendingListBuilder_;
}
private boolean isEventTrigger_ ;
/**
* bool is_event_trigger = 7;
* @return The isEventTrigger.
*/
@java.lang.Override
public boolean getIsEventTrigger() {
return isEventTrigger_;
}
/**
* bool is_event_trigger = 7;
* @param value The isEventTrigger to set.
* @return This builder for chaining.
*/
public Builder setIsEventTrigger(boolean value) {
isEventTrigger_ = value;
onChanged();
return this;
}
/**
* bool is_event_trigger = 7;
* @return This builder for chaining.
*/
public Builder clearIsEventTrigger() {
isEventTrigger_ = false;
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:HomeAvatarRewardEventNotify)
}
// @@protoc_insertion_point(class_scope:HomeAvatarRewardEventNotify)
private static final emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify();
}
public static emu.grasscutter.net.proto.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HomeAvatarRewardEventNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeAvatarRewardEventNotify(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.HomeAvatarRewardEventNotifyOuterClass.HomeAvatarRewardEventNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeAvatarRewardEventNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeAvatarRewardEventNotify_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!HomeAvatarRewardEventNotify.proto\032\037Hom" +
"eAvatarRewardEventInfo.proto\"\233\001\n\033HomeAva" +
"tarRewardEventNotify\0220\n\014reward_event\030\004 \001" +
"(\0132\032.HomeAvatarRewardEventInfo\0220\n\014pendin" +
"g_list\030\014 \003(\0132\032.HomeAvatarRewardEventInfo" +
"\022\030\n\020is_event_trigger\030\007 \001(\010B\033\n\031emu.grassc" +
"utter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.getDescriptor(),
});
internal_static_HomeAvatarRewardEventNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeAvatarRewardEventNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeAvatarRewardEventNotify_descriptor,
new java.lang.String[] { "RewardEvent", "PendingList", "IsEventTrigger", });
emu.grasscutter.net.proto.HomeAvatarRewardEventInfoOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}