Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/HomeBasicInfoOuterClass.java
2022-08-21 11:33:54 +00:00

1249 lines
42 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HomeBasicInfo.proto
package emu.grasscutter.net.proto;
public final class HomeBasicInfoOuterClass {
private HomeBasicInfoOuterClass() {}
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 HomeBasicInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:HomeBasicInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <code>uint32 level = 10;</code>
* @return The level.
*/
int getLevel();
/**
* <code>uint32 cur_room_scene_id = 13;</code>
* @return The curRoomSceneId.
*/
int getCurRoomSceneId();
/**
* <code>uint32 cur_module_id = 9;</code>
* @return The curModuleId.
*/
int getCurModuleId();
/**
* <code>bool is_in_edit_mode = 5;</code>
* @return The isInEditMode.
*/
boolean getIsInEditMode();
/**
* <code>uint32 home_owner_uid = 3;</code>
* @return The homeOwnerUid.
*/
int getHomeOwnerUid();
/**
* <code>uint64 exp = 14;</code>
* @return The exp.
*/
long getExp();
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
* @return Whether the limitedShopInfo field is set.
*/
boolean hasLimitedShopInfo();
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
* @return The limitedShopInfo.
*/
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo getLimitedShopInfo();
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfoOrBuilder getLimitedShopInfoOrBuilder();
/**
* <code>string owner_nick_name = 4;</code>
* @return The ownerNickName.
*/
java.lang.String getOwnerNickName();
/**
* <code>string owner_nick_name = 4;</code>
* @return The bytes for ownerNickName.
*/
com.google.protobuf.ByteString
getOwnerNickNameBytes();
}
/**
* Protobuf type {@code HomeBasicInfo}
*/
public static final class HomeBasicInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:HomeBasicInfo)
HomeBasicInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use HomeBasicInfo.newBuilder() to construct.
private HomeBasicInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HomeBasicInfo() {
ownerNickName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HomeBasicInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HomeBasicInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
homeOwnerUid_ = input.readUInt32();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
ownerNickName_ = s;
break;
}
case 40: {
isInEditMode_ = input.readBool();
break;
}
case 72: {
curModuleId_ = input.readUInt32();
break;
}
case 80: {
level_ = input.readUInt32();
break;
}
case 104: {
curRoomSceneId_ = input.readUInt32();
break;
}
case 112: {
exp_ = input.readUInt64();
break;
}
case 122: {
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.Builder subBuilder = null;
if (limitedShopInfo_ != null) {
subBuilder = limitedShopInfo_.toBuilder();
}
limitedShopInfo_ = input.readMessage(emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(limitedShopInfo_);
limitedShopInfo_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeBasicInfoOuterClass.internal_static_HomeBasicInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeBasicInfoOuterClass.internal_static_HomeBasicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.class, emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.Builder.class);
}
public static final int LEVEL_FIELD_NUMBER = 10;
private int level_;
/**
* <code>uint32 level = 10;</code>
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
public static final int CUR_ROOM_SCENE_ID_FIELD_NUMBER = 13;
private int curRoomSceneId_;
/**
* <code>uint32 cur_room_scene_id = 13;</code>
* @return The curRoomSceneId.
*/
@java.lang.Override
public int getCurRoomSceneId() {
return curRoomSceneId_;
}
public static final int CUR_MODULE_ID_FIELD_NUMBER = 9;
private int curModuleId_;
/**
* <code>uint32 cur_module_id = 9;</code>
* @return The curModuleId.
*/
@java.lang.Override
public int getCurModuleId() {
return curModuleId_;
}
public static final int IS_IN_EDIT_MODE_FIELD_NUMBER = 5;
private boolean isInEditMode_;
/**
* <code>bool is_in_edit_mode = 5;</code>
* @return The isInEditMode.
*/
@java.lang.Override
public boolean getIsInEditMode() {
return isInEditMode_;
}
public static final int HOME_OWNER_UID_FIELD_NUMBER = 3;
private int homeOwnerUid_;
/**
* <code>uint32 home_owner_uid = 3;</code>
* @return The homeOwnerUid.
*/
@java.lang.Override
public int getHomeOwnerUid() {
return homeOwnerUid_;
}
public static final int EXP_FIELD_NUMBER = 14;
private long exp_;
/**
* <code>uint64 exp = 14;</code>
* @return The exp.
*/
@java.lang.Override
public long getExp() {
return exp_;
}
public static final int LIMITED_SHOP_INFO_FIELD_NUMBER = 15;
private emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo limitedShopInfo_;
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
* @return Whether the limitedShopInfo field is set.
*/
@java.lang.Override
public boolean hasLimitedShopInfo() {
return limitedShopInfo_ != null;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
* @return The limitedShopInfo.
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo getLimitedShopInfo() {
return limitedShopInfo_ == null ? emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.getDefaultInstance() : limitedShopInfo_;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfoOrBuilder getLimitedShopInfoOrBuilder() {
return getLimitedShopInfo();
}
public static final int OWNER_NICK_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object ownerNickName_;
/**
* <code>string owner_nick_name = 4;</code>
* @return The ownerNickName.
*/
@java.lang.Override
public java.lang.String getOwnerNickName() {
java.lang.Object ref = ownerNickName_;
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();
ownerNickName_ = s;
return s;
}
}
/**
* <code>string owner_nick_name = 4;</code>
* @return The bytes for ownerNickName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerNickNameBytes() {
java.lang.Object ref = ownerNickName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerNickName_ = 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 (homeOwnerUid_ != 0) {
output.writeUInt32(3, homeOwnerUid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerNickName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ownerNickName_);
}
if (isInEditMode_ != false) {
output.writeBool(5, isInEditMode_);
}
if (curModuleId_ != 0) {
output.writeUInt32(9, curModuleId_);
}
if (level_ != 0) {
output.writeUInt32(10, level_);
}
if (curRoomSceneId_ != 0) {
output.writeUInt32(13, curRoomSceneId_);
}
if (exp_ != 0L) {
output.writeUInt64(14, exp_);
}
if (limitedShopInfo_ != null) {
output.writeMessage(15, getLimitedShopInfo());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (homeOwnerUid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, homeOwnerUid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerNickName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ownerNickName_);
}
if (isInEditMode_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isInEditMode_);
}
if (curModuleId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, curModuleId_);
}
if (level_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, level_);
}
if (curRoomSceneId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, curRoomSceneId_);
}
if (exp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(14, exp_);
}
if (limitedShopInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getLimitedShopInfo());
}
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.HomeBasicInfoOuterClass.HomeBasicInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo other = (emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo) obj;
if (getLevel()
!= other.getLevel()) return false;
if (getCurRoomSceneId()
!= other.getCurRoomSceneId()) return false;
if (getCurModuleId()
!= other.getCurModuleId()) return false;
if (getIsInEditMode()
!= other.getIsInEditMode()) return false;
if (getHomeOwnerUid()
!= other.getHomeOwnerUid()) return false;
if (getExp()
!= other.getExp()) return false;
if (hasLimitedShopInfo() != other.hasLimitedShopInfo()) return false;
if (hasLimitedShopInfo()) {
if (!getLimitedShopInfo()
.equals(other.getLimitedShopInfo())) return false;
}
if (!getOwnerNickName()
.equals(other.getOwnerNickName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLevel();
hash = (37 * hash) + CUR_ROOM_SCENE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCurRoomSceneId();
hash = (37 * hash) + CUR_MODULE_ID_FIELD_NUMBER;
hash = (53 * hash) + getCurModuleId();
hash = (37 * hash) + IS_IN_EDIT_MODE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsInEditMode());
hash = (37 * hash) + HOME_OWNER_UID_FIELD_NUMBER;
hash = (53 * hash) + getHomeOwnerUid();
hash = (37 * hash) + EXP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExp());
if (hasLimitedShopInfo()) {
hash = (37 * hash) + LIMITED_SHOP_INFO_FIELD_NUMBER;
hash = (53 * hash) + getLimitedShopInfo().hashCode();
}
hash = (37 * hash) + OWNER_NICK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getOwnerNickName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo 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.HomeBasicInfoOuterClass.HomeBasicInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo 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.HomeBasicInfoOuterClass.HomeBasicInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo 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.HomeBasicInfoOuterClass.HomeBasicInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo 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.HomeBasicInfoOuterClass.HomeBasicInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo 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.HomeBasicInfoOuterClass.HomeBasicInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code HomeBasicInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:HomeBasicInfo)
emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.HomeBasicInfoOuterClass.internal_static_HomeBasicInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.HomeBasicInfoOuterClass.internal_static_HomeBasicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.class, emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.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();
level_ = 0;
curRoomSceneId_ = 0;
curModuleId_ = 0;
isInEditMode_ = false;
homeOwnerUid_ = 0;
exp_ = 0L;
if (limitedShopInfoBuilder_ == null) {
limitedShopInfo_ = null;
} else {
limitedShopInfo_ = null;
limitedShopInfoBuilder_ = null;
}
ownerNickName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.HomeBasicInfoOuterClass.internal_static_HomeBasicInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo build() {
emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo buildPartial() {
emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo result = new emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo(this);
result.level_ = level_;
result.curRoomSceneId_ = curRoomSceneId_;
result.curModuleId_ = curModuleId_;
result.isInEditMode_ = isInEditMode_;
result.homeOwnerUid_ = homeOwnerUid_;
result.exp_ = exp_;
if (limitedShopInfoBuilder_ == null) {
result.limitedShopInfo_ = limitedShopInfo_;
} else {
result.limitedShopInfo_ = limitedShopInfoBuilder_.build();
}
result.ownerNickName_ = ownerNickName_;
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.HomeBasicInfoOuterClass.HomeBasicInfo) {
return mergeFrom((emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo other) {
if (other == emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo.getDefaultInstance()) return this;
if (other.getLevel() != 0) {
setLevel(other.getLevel());
}
if (other.getCurRoomSceneId() != 0) {
setCurRoomSceneId(other.getCurRoomSceneId());
}
if (other.getCurModuleId() != 0) {
setCurModuleId(other.getCurModuleId());
}
if (other.getIsInEditMode() != false) {
setIsInEditMode(other.getIsInEditMode());
}
if (other.getHomeOwnerUid() != 0) {
setHomeOwnerUid(other.getHomeOwnerUid());
}
if (other.getExp() != 0L) {
setExp(other.getExp());
}
if (other.hasLimitedShopInfo()) {
mergeLimitedShopInfo(other.getLimitedShopInfo());
}
if (!other.getOwnerNickName().isEmpty()) {
ownerNickName_ = other.ownerNickName_;
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.HomeBasicInfoOuterClass.HomeBasicInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int level_ ;
/**
* <code>uint32 level = 10;</code>
* @return The level.
*/
@java.lang.Override
public int getLevel() {
return level_;
}
/**
* <code>uint32 level = 10;</code>
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevel(int value) {
level_ = value;
onChanged();
return this;
}
/**
* <code>uint32 level = 10;</code>
* @return This builder for chaining.
*/
public Builder clearLevel() {
level_ = 0;
onChanged();
return this;
}
private int curRoomSceneId_ ;
/**
* <code>uint32 cur_room_scene_id = 13;</code>
* @return The curRoomSceneId.
*/
@java.lang.Override
public int getCurRoomSceneId() {
return curRoomSceneId_;
}
/**
* <code>uint32 cur_room_scene_id = 13;</code>
* @param value The curRoomSceneId to set.
* @return This builder for chaining.
*/
public Builder setCurRoomSceneId(int value) {
curRoomSceneId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cur_room_scene_id = 13;</code>
* @return This builder for chaining.
*/
public Builder clearCurRoomSceneId() {
curRoomSceneId_ = 0;
onChanged();
return this;
}
private int curModuleId_ ;
/**
* <code>uint32 cur_module_id = 9;</code>
* @return The curModuleId.
*/
@java.lang.Override
public int getCurModuleId() {
return curModuleId_;
}
/**
* <code>uint32 cur_module_id = 9;</code>
* @param value The curModuleId to set.
* @return This builder for chaining.
*/
public Builder setCurModuleId(int value) {
curModuleId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 cur_module_id = 9;</code>
* @return This builder for chaining.
*/
public Builder clearCurModuleId() {
curModuleId_ = 0;
onChanged();
return this;
}
private boolean isInEditMode_ ;
/**
* <code>bool is_in_edit_mode = 5;</code>
* @return The isInEditMode.
*/
@java.lang.Override
public boolean getIsInEditMode() {
return isInEditMode_;
}
/**
* <code>bool is_in_edit_mode = 5;</code>
* @param value The isInEditMode to set.
* @return This builder for chaining.
*/
public Builder setIsInEditMode(boolean value) {
isInEditMode_ = value;
onChanged();
return this;
}
/**
* <code>bool is_in_edit_mode = 5;</code>
* @return This builder for chaining.
*/
public Builder clearIsInEditMode() {
isInEditMode_ = false;
onChanged();
return this;
}
private int homeOwnerUid_ ;
/**
* <code>uint32 home_owner_uid = 3;</code>
* @return The homeOwnerUid.
*/
@java.lang.Override
public int getHomeOwnerUid() {
return homeOwnerUid_;
}
/**
* <code>uint32 home_owner_uid = 3;</code>
* @param value The homeOwnerUid to set.
* @return This builder for chaining.
*/
public Builder setHomeOwnerUid(int value) {
homeOwnerUid_ = value;
onChanged();
return this;
}
/**
* <code>uint32 home_owner_uid = 3;</code>
* @return This builder for chaining.
*/
public Builder clearHomeOwnerUid() {
homeOwnerUid_ = 0;
onChanged();
return this;
}
private long exp_ ;
/**
* <code>uint64 exp = 14;</code>
* @return The exp.
*/
@java.lang.Override
public long getExp() {
return exp_;
}
/**
* <code>uint64 exp = 14;</code>
* @param value The exp to set.
* @return This builder for chaining.
*/
public Builder setExp(long value) {
exp_ = value;
onChanged();
return this;
}
/**
* <code>uint64 exp = 14;</code>
* @return This builder for chaining.
*/
public Builder clearExp() {
exp_ = 0L;
onChanged();
return this;
}
private emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo limitedShopInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo, emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.Builder, emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfoOrBuilder> limitedShopInfoBuilder_;
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
* @return Whether the limitedShopInfo field is set.
*/
public boolean hasLimitedShopInfo() {
return limitedShopInfoBuilder_ != null || limitedShopInfo_ != null;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
* @return The limitedShopInfo.
*/
public emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo getLimitedShopInfo() {
if (limitedShopInfoBuilder_ == null) {
return limitedShopInfo_ == null ? emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.getDefaultInstance() : limitedShopInfo_;
} else {
return limitedShopInfoBuilder_.getMessage();
}
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
public Builder setLimitedShopInfo(emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo value) {
if (limitedShopInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
limitedShopInfo_ = value;
onChanged();
} else {
limitedShopInfoBuilder_.setMessage(value);
}
return this;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
public Builder setLimitedShopInfo(
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.Builder builderForValue) {
if (limitedShopInfoBuilder_ == null) {
limitedShopInfo_ = builderForValue.build();
onChanged();
} else {
limitedShopInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
public Builder mergeLimitedShopInfo(emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo value) {
if (limitedShopInfoBuilder_ == null) {
if (limitedShopInfo_ != null) {
limitedShopInfo_ =
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.newBuilder(limitedShopInfo_).mergeFrom(value).buildPartial();
} else {
limitedShopInfo_ = value;
}
onChanged();
} else {
limitedShopInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
public Builder clearLimitedShopInfo() {
if (limitedShopInfoBuilder_ == null) {
limitedShopInfo_ = null;
onChanged();
} else {
limitedShopInfo_ = null;
limitedShopInfoBuilder_ = null;
}
return this;
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
public emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.Builder getLimitedShopInfoBuilder() {
onChanged();
return getLimitedShopInfoFieldBuilder().getBuilder();
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
public emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfoOrBuilder getLimitedShopInfoOrBuilder() {
if (limitedShopInfoBuilder_ != null) {
return limitedShopInfoBuilder_.getMessageOrBuilder();
} else {
return limitedShopInfo_ == null ?
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.getDefaultInstance() : limitedShopInfo_;
}
}
/**
* <code>.HomeLimitedShopInfo limited_shop_info = 15;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo, emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.Builder, emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfoOrBuilder>
getLimitedShopInfoFieldBuilder() {
if (limitedShopInfoBuilder_ == null) {
limitedShopInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo, emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfo.Builder, emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.HomeLimitedShopInfoOrBuilder>(
getLimitedShopInfo(),
getParentForChildren(),
isClean());
limitedShopInfo_ = null;
}
return limitedShopInfoBuilder_;
}
private java.lang.Object ownerNickName_ = "";
/**
* <code>string owner_nick_name = 4;</code>
* @return The ownerNickName.
*/
public java.lang.String getOwnerNickName() {
java.lang.Object ref = ownerNickName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ownerNickName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string owner_nick_name = 4;</code>
* @return The bytes for ownerNickName.
*/
public com.google.protobuf.ByteString
getOwnerNickNameBytes() {
java.lang.Object ref = ownerNickName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerNickName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string owner_nick_name = 4;</code>
* @param value The ownerNickName to set.
* @return This builder for chaining.
*/
public Builder setOwnerNickName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ownerNickName_ = value;
onChanged();
return this;
}
/**
* <code>string owner_nick_name = 4;</code>
* @return This builder for chaining.
*/
public Builder clearOwnerNickName() {
ownerNickName_ = getDefaultInstance().getOwnerNickName();
onChanged();
return this;
}
/**
* <code>string owner_nick_name = 4;</code>
* @param value The bytes for ownerNickName to set.
* @return This builder for chaining.
*/
public Builder setOwnerNickNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ownerNickName_ = 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:HomeBasicInfo)
}
// @@protoc_insertion_point(class_scope:HomeBasicInfo)
private static final emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo();
}
public static emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HomeBasicInfo>
PARSER = new com.google.protobuf.AbstractParser<HomeBasicInfo>() {
@java.lang.Override
public HomeBasicInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HomeBasicInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HomeBasicInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HomeBasicInfo> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.HomeBasicInfoOuterClass.HomeBasicInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_HomeBasicInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_HomeBasicInfo_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\023HomeBasicInfo.proto\032\031HomeLimitedShopIn" +
"fo.proto\"\330\001\n\rHomeBasicInfo\022\r\n\005level\030\n \001(" +
"\r\022\031\n\021cur_room_scene_id\030\r \001(\r\022\025\n\rcur_modu" +
"le_id\030\t \001(\r\022\027\n\017is_in_edit_mode\030\005 \001(\010\022\026\n\016" +
"home_owner_uid\030\003 \001(\r\022\013\n\003exp\030\016 \001(\004\022/\n\021lim" +
"ited_shop_info\030\017 \001(\0132\024.HomeLimitedShopIn" +
"fo\022\027\n\017owner_nick_name\030\004 \001(\tB\033\n\031emu.grass" +
"cutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.getDescriptor(),
});
internal_static_HomeBasicInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_HomeBasicInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_HomeBasicInfo_descriptor,
new java.lang.String[] { "Level", "CurRoomSceneId", "CurModuleId", "IsInEditMode", "HomeOwnerUid", "Exp", "LimitedShopInfo", "OwnerNickName", });
emu.grasscutter.net.proto.HomeLimitedShopInfoOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}