2
0
mirror of https://github.com/Grasscutters/Grasscutter synced 2025-08-24 19:07:55 +00:00
Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/ActivityRecvGiftDataOuterClass.java
2023-08-14 18:57:07 -04:00

1386 lines
48 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ActivityRecvGiftData.proto
package emu.grasscutter.net.proto;
public final class ActivityRecvGiftDataOuterClass {
private ActivityRecvGiftDataOuterClass() {}
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 ActivityRecvGiftDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:ActivityRecvGiftData)
com.google.protobuf.MessageOrBuilder {
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
int getGiftNumMapCount();
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
boolean containsGiftNumMap(
int key);
/**
* Use {@link #getGiftNumMapMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.Integer, java.lang.Integer>
getGiftNumMap();
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
java.util.Map<java.lang.Integer, java.lang.Integer>
getGiftNumMapMap();
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
int getGiftNumMapOrDefault(
int key,
int defaultValue);
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
int getGiftNumMapOrThrow(
int key);
/**
* <code>uint32 uid = 14;</code>
* @return The uid.
*/
int getUid();
/**
* <code>.ProfilePicture profile_picture = 9;</code>
* @return Whether the profilePicture field is set.
*/
boolean hasProfilePicture();
/**
* <code>.ProfilePicture profile_picture = 9;</code>
* @return The profilePicture.
*/
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture getProfilePicture();
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder getProfilePictureOrBuilder();
/**
* <code>string remark_name = 12;</code>
* @return The remarkName.
*/
java.lang.String getRemarkName();
/**
* <code>string remark_name = 12;</code>
* @return The bytes for remarkName.
*/
com.google.protobuf.ByteString
getRemarkNameBytes();
/**
* <code>string nickname = 13;</code>
* @return The nickname.
*/
java.lang.String getNickname();
/**
* <code>string nickname = 13;</code>
* @return The bytes for nickname.
*/
com.google.protobuf.ByteString
getNicknameBytes();
}
/**
* <pre>
* Obf: HNOIMLAIGBN
* </pre>
*
* Protobuf type {@code ActivityRecvGiftData}
*/
public static final class ActivityRecvGiftData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ActivityRecvGiftData)
ActivityRecvGiftDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActivityRecvGiftData.newBuilder() to construct.
private ActivityRecvGiftData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ActivityRecvGiftData() {
remarkName_ = "";
nickname_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActivityRecvGiftData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActivityRecvGiftData(
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 74: {
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder subBuilder = null;
if (profilePicture_ != null) {
subBuilder = profilePicture_.toBuilder();
}
profilePicture_ = input.readMessage(emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(profilePicture_);
profilePicture_ = subBuilder.buildPartial();
}
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
giftNumMap_ = com.google.protobuf.MapField.newMapField(
GiftNumMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
giftNumMap__ = input.readMessage(
GiftNumMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
giftNumMap_.getMutableMap().put(
giftNumMap__.getKey(), giftNumMap__.getValue());
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
remarkName_ = s;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
nickname_ = s;
break;
}
case 112: {
uid_ = input.readUInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.internal_static_ActivityRecvGiftData_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 11:
return internalGetGiftNumMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.internal_static_ActivityRecvGiftData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.class, emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.Builder.class);
}
public static final int GIFT_NUM_MAP_FIELD_NUMBER = 11;
private static final class GiftNumMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.<java.lang.Integer, java.lang.Integer>newDefaultInstance(
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.internal_static_ActivityRecvGiftData_GiftNumMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.UINT32,
0,
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> giftNumMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetGiftNumMap() {
if (giftNumMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GiftNumMapDefaultEntryHolder.defaultEntry);
}
return giftNumMap_;
}
public int getGiftNumMapCount() {
return internalGetGiftNumMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public boolean containsGiftNumMap(
int key) {
return internalGetGiftNumMap().getMap().containsKey(key);
}
/**
* Use {@link #getGiftNumMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getGiftNumMap() {
return getGiftNumMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getGiftNumMapMap() {
return internalGetGiftNumMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public int getGiftNumMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetGiftNumMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public int getGiftNumMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetGiftNumMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int UID_FIELD_NUMBER = 14;
private int uid_;
/**
* <code>uint32 uid = 14;</code>
* @return The uid.
*/
@java.lang.Override
public int getUid() {
return uid_;
}
public static final int PROFILE_PICTURE_FIELD_NUMBER = 9;
private emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture profilePicture_;
/**
* <code>.ProfilePicture profile_picture = 9;</code>
* @return Whether the profilePicture field is set.
*/
@java.lang.Override
public boolean hasProfilePicture() {
return profilePicture_ != null;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
* @return The profilePicture.
*/
@java.lang.Override
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture getProfilePicture() {
return profilePicture_ == null ? emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.getDefaultInstance() : profilePicture_;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder getProfilePictureOrBuilder() {
return getProfilePicture();
}
public static final int REMARK_NAME_FIELD_NUMBER = 12;
private volatile java.lang.Object remarkName_;
/**
* <code>string remark_name = 12;</code>
* @return The remarkName.
*/
@java.lang.Override
public java.lang.String getRemarkName() {
java.lang.Object ref = remarkName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
remarkName_ = s;
return s;
}
}
/**
* <code>string remark_name = 12;</code>
* @return The bytes for remarkName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemarkNameBytes() {
java.lang.Object ref = remarkName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remarkName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NICKNAME_FIELD_NUMBER = 13;
private volatile java.lang.Object nickname_;
/**
* <code>string nickname = 13;</code>
* @return The nickname.
*/
@java.lang.Override
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nickname_ = s;
return s;
}
}
/**
* <code>string nickname = 13;</code>
* @return The bytes for nickname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (profilePicture_ != null) {
output.writeMessage(9, getProfilePicture());
}
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetGiftNumMap(),
GiftNumMapDefaultEntryHolder.defaultEntry,
11);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, remarkName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, nickname_);
}
if (uid_ != 0) {
output.writeUInt32(14, uid_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (profilePicture_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getProfilePicture());
}
for (java.util.Map.Entry<java.lang.Integer, java.lang.Integer> entry
: internalGetGiftNumMap().getMap().entrySet()) {
com.google.protobuf.MapEntry<java.lang.Integer, java.lang.Integer>
giftNumMap__ = GiftNumMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, giftNumMap__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remarkName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, remarkName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nickname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, nickname_);
}
if (uid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, uid_);
}
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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData other = (emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData) obj;
if (!internalGetGiftNumMap().equals(
other.internalGetGiftNumMap())) return false;
if (getUid()
!= other.getUid()) return false;
if (hasProfilePicture() != other.hasProfilePicture()) return false;
if (hasProfilePicture()) {
if (!getProfilePicture()
.equals(other.getProfilePicture())) return false;
}
if (!getRemarkName()
.equals(other.getRemarkName())) return false;
if (!getNickname()
.equals(other.getNickname())) 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 (!internalGetGiftNumMap().getMap().isEmpty()) {
hash = (37 * hash) + GIFT_NUM_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetGiftNumMap().hashCode();
}
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid();
if (hasProfilePicture()) {
hash = (37 * hash) + PROFILE_PICTURE_FIELD_NUMBER;
hash = (53 * hash) + getProfilePicture().hashCode();
}
hash = (37 * hash) + REMARK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRemarkName().hashCode();
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
hash = (53 * hash) + getNickname().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData 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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData 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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData 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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData 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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData 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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Obf: HNOIMLAIGBN
* </pre>
*
* Protobuf type {@code ActivityRecvGiftData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ActivityRecvGiftData)
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.internal_static_ActivityRecvGiftData_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 11:
return internalGetGiftNumMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 11:
return internalGetMutableGiftNumMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.internal_static_ActivityRecvGiftData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.class, emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.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();
internalGetMutableGiftNumMap().clear();
uid_ = 0;
if (profilePictureBuilder_ == null) {
profilePicture_ = null;
} else {
profilePicture_ = null;
profilePictureBuilder_ = null;
}
remarkName_ = "";
nickname_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.internal_static_ActivityRecvGiftData_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData build() {
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData buildPartial() {
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData result = new emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData(this);
int from_bitField0_ = bitField0_;
result.giftNumMap_ = internalGetGiftNumMap();
result.giftNumMap_.makeImmutable();
result.uid_ = uid_;
if (profilePictureBuilder_ == null) {
result.profilePicture_ = profilePicture_;
} else {
result.profilePicture_ = profilePictureBuilder_.build();
}
result.remarkName_ = remarkName_;
result.nickname_ = nickname_;
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.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData) {
return mergeFrom((emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData other) {
if (other == emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData.getDefaultInstance()) return this;
internalGetMutableGiftNumMap().mergeFrom(
other.internalGetGiftNumMap());
if (other.getUid() != 0) {
setUid(other.getUid());
}
if (other.hasProfilePicture()) {
mergeProfilePicture(other.getProfilePicture());
}
if (!other.getRemarkName().isEmpty()) {
remarkName_ = other.remarkName_;
onChanged();
}
if (!other.getNickname().isEmpty()) {
nickname_ = other.nickname_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> giftNumMap_;
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetGiftNumMap() {
if (giftNumMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
GiftNumMapDefaultEntryHolder.defaultEntry);
}
return giftNumMap_;
}
private com.google.protobuf.MapField<java.lang.Integer, java.lang.Integer>
internalGetMutableGiftNumMap() {
onChanged();;
if (giftNumMap_ == null) {
giftNumMap_ = com.google.protobuf.MapField.newMapField(
GiftNumMapDefaultEntryHolder.defaultEntry);
}
if (!giftNumMap_.isMutable()) {
giftNumMap_ = giftNumMap_.copy();
}
return giftNumMap_;
}
public int getGiftNumMapCount() {
return internalGetGiftNumMap().getMap().size();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public boolean containsGiftNumMap(
int key) {
return internalGetGiftNumMap().getMap().containsKey(key);
}
/**
* Use {@link #getGiftNumMapMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer> getGiftNumMap() {
return getGiftNumMapMap();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public java.util.Map<java.lang.Integer, java.lang.Integer> getGiftNumMapMap() {
return internalGetGiftNumMap().getMap();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public int getGiftNumMapOrDefault(
int key,
int defaultValue) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetGiftNumMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
@java.lang.Override
public int getGiftNumMapOrThrow(
int key) {
java.util.Map<java.lang.Integer, java.lang.Integer> map =
internalGetGiftNumMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearGiftNumMap() {
internalGetMutableGiftNumMap().getMutableMap()
.clear();
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
public Builder removeGiftNumMap(
int key) {
internalGetMutableGiftNumMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.Integer, java.lang.Integer>
getMutableGiftNumMap() {
return internalGetMutableGiftNumMap().getMutableMap();
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
public Builder putGiftNumMap(
int key,
int value) {
internalGetMutableGiftNumMap().getMutableMap()
.put(key, value);
return this;
}
/**
* <code>map&lt;uint32, uint32&gt; gift_num_map = 11;</code>
*/
public Builder putAllGiftNumMap(
java.util.Map<java.lang.Integer, java.lang.Integer> values) {
internalGetMutableGiftNumMap().getMutableMap()
.putAll(values);
return this;
}
private int uid_ ;
/**
* <code>uint32 uid = 14;</code>
* @return The uid.
*/
@java.lang.Override
public int getUid() {
return uid_;
}
/**
* <code>uint32 uid = 14;</code>
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(int value) {
uid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 uid = 14;</code>
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = 0;
onChanged();
return this;
}
private emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture profilePicture_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder> profilePictureBuilder_;
/**
* <code>.ProfilePicture profile_picture = 9;</code>
* @return Whether the profilePicture field is set.
*/
public boolean hasProfilePicture() {
return profilePictureBuilder_ != null || profilePicture_ != null;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
* @return The profilePicture.
*/
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture getProfilePicture() {
if (profilePictureBuilder_ == null) {
return profilePicture_ == null ? emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.getDefaultInstance() : profilePicture_;
} else {
return profilePictureBuilder_.getMessage();
}
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
public Builder setProfilePicture(emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture value) {
if (profilePictureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profilePicture_ = value;
onChanged();
} else {
profilePictureBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
public Builder setProfilePicture(
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder builderForValue) {
if (profilePictureBuilder_ == null) {
profilePicture_ = builderForValue.build();
onChanged();
} else {
profilePictureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
public Builder mergeProfilePicture(emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture value) {
if (profilePictureBuilder_ == null) {
if (profilePicture_ != null) {
profilePicture_ =
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.newBuilder(profilePicture_).mergeFrom(value).buildPartial();
} else {
profilePicture_ = value;
}
onChanged();
} else {
profilePictureBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
public Builder clearProfilePicture() {
if (profilePictureBuilder_ == null) {
profilePicture_ = null;
onChanged();
} else {
profilePicture_ = null;
profilePictureBuilder_ = null;
}
return this;
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder getProfilePictureBuilder() {
onChanged();
return getProfilePictureFieldBuilder().getBuilder();
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
public emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder getProfilePictureOrBuilder() {
if (profilePictureBuilder_ != null) {
return profilePictureBuilder_.getMessageOrBuilder();
} else {
return profilePicture_ == null ?
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.getDefaultInstance() : profilePicture_;
}
}
/**
* <code>.ProfilePicture profile_picture = 9;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder>
getProfilePictureFieldBuilder() {
if (profilePictureBuilder_ == null) {
profilePictureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePicture.Builder, emu.grasscutter.net.proto.ProfilePictureOuterClass.ProfilePictureOrBuilder>(
getProfilePicture(),
getParentForChildren(),
isClean());
profilePicture_ = null;
}
return profilePictureBuilder_;
}
private java.lang.Object remarkName_ = "";
/**
* <code>string remark_name = 12;</code>
* @return The remarkName.
*/
public java.lang.String getRemarkName() {
java.lang.Object ref = remarkName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
remarkName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string remark_name = 12;</code>
* @return The bytes for remarkName.
*/
public com.google.protobuf.ByteString
getRemarkNameBytes() {
java.lang.Object ref = remarkName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remarkName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string remark_name = 12;</code>
* @param value The remarkName to set.
* @return This builder for chaining.
*/
public Builder setRemarkName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
remarkName_ = value;
onChanged();
return this;
}
/**
* <code>string remark_name = 12;</code>
* @return This builder for chaining.
*/
public Builder clearRemarkName() {
remarkName_ = getDefaultInstance().getRemarkName();
onChanged();
return this;
}
/**
* <code>string remark_name = 12;</code>
* @param value The bytes for remarkName to set.
* @return This builder for chaining.
*/
public Builder setRemarkNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
remarkName_ = value;
onChanged();
return this;
}
private java.lang.Object nickname_ = "";
/**
* <code>string nickname = 13;</code>
* @return The nickname.
*/
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nickname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string nickname = 13;</code>
* @return The bytes for nickname.
*/
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string nickname = 13;</code>
* @param value The nickname to set.
* @return This builder for chaining.
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nickname_ = value;
onChanged();
return this;
}
/**
* <code>string nickname = 13;</code>
* @return This builder for chaining.
*/
public Builder clearNickname() {
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* <code>string nickname = 13;</code>
* @param value The bytes for nickname to set.
* @return This builder for chaining.
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nickname_ = value;
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:ActivityRecvGiftData)
}
// @@protoc_insertion_point(class_scope:ActivityRecvGiftData)
private static final emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData();
}
public static emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ActivityRecvGiftData>
PARSER = new com.google.protobuf.AbstractParser<ActivityRecvGiftData>() {
@java.lang.Override
public ActivityRecvGiftData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActivityRecvGiftData(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ActivityRecvGiftData> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ActivityRecvGiftData> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ActivityRecvGiftDataOuterClass.ActivityRecvGiftData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ActivityRecvGiftData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ActivityRecvGiftData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ActivityRecvGiftData_GiftNumMapEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ActivityRecvGiftData_GiftNumMapEntry_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\032ActivityRecvGiftData.proto\032\024ProfilePic" +
"ture.proto\"\344\001\n\024ActivityRecvGiftData\022;\n\014g" +
"ift_num_map\030\013 \003(\0132%.ActivityRecvGiftData" +
".GiftNumMapEntry\022\013\n\003uid\030\016 \001(\r\022(\n\017profile" +
"_picture\030\t \001(\0132\017.ProfilePicture\022\023\n\013remar" +
"k_name\030\014 \001(\t\022\020\n\010nickname\030\r \001(\t\0321\n\017GiftNu" +
"mMapEntry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002 \001(\r:\0028" +
"\001B\033\n\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.ProfilePictureOuterClass.getDescriptor(),
});
internal_static_ActivityRecvGiftData_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ActivityRecvGiftData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ActivityRecvGiftData_descriptor,
new java.lang.String[] { "GiftNumMap", "Uid", "ProfilePicture", "RemarkName", "Nickname", });
internal_static_ActivityRecvGiftData_GiftNumMapEntry_descriptor =
internal_static_ActivityRecvGiftData_descriptor.getNestedTypes().get(0);
internal_static_ActivityRecvGiftData_GiftNumMapEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ActivityRecvGiftData_GiftNumMapEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
emu.grasscutter.net.proto.ProfilePictureOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}