// Generated by the protocol buffer compiler. DO NOT EDIT! // source: core/config.proto package com.akaxin.proto.core; public final class ConfigProto { private ConfigProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } /** *
*实名枚举 ** * Protobuf enum {@code core.RealNameConfig} */ public enum RealNameConfig implements com.google.protobuf.ProtocolMessageEnum { /** *
*匿名方式 ** *
REALNAME_NO = 0;
*/
REALNAME_NO(0),
/**
* *实名方式,必须用户是实名 ** *
REALNAME_YES = 1;
*/
REALNAME_YES(1),
/**
* *优先实名方式,其次接受非实名用户 ** *
REALNAME_YES_NO = 2;
*/
REALNAME_YES_NO(2),
UNRECOGNIZED(-1),
;
/**
* *匿名方式 ** *
REALNAME_NO = 0;
*/
public static final int REALNAME_NO_VALUE = 0;
/**
* *实名方式,必须用户是实名 ** *
REALNAME_YES = 1;
*/
public static final int REALNAME_YES_VALUE = 1;
/**
* *优先实名方式,其次接受非实名用户 ** *
REALNAME_YES_NO = 2;
*/
public static final int REALNAME_YES_NO_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RealNameConfig valueOf(int value) {
return forNumber(value);
}
public static RealNameConfig forNumber(int value) {
switch (value) {
case 0: return REALNAME_NO;
case 1: return REALNAME_YES;
case 2: return REALNAME_YES_NO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*邀请码枚举 ** * Protobuf enum {@code core.InviteCodeConfig} */ public enum InviteCodeConfig implements com.google.protobuf.ProtocolMessageEnum { /** *
*不需要 ** *
UIC_NO = 0;
*/
UIC_NO(0),
/**
* *关闭邀请码 ** *
UIC_YES = 1;
*/
UIC_YES(1),
UNRECOGNIZED(-1),
;
/**
* *不需要 ** *
UIC_NO = 0;
*/
public static final int UIC_NO_VALUE = 0;
/**
* *关闭邀请码 ** *
UIC_YES = 1;
*/
public static final int UIC_YES_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static InviteCodeConfig valueOf(int value) {
return forNumber(value);
}
public static InviteCodeConfig forNumber(int value) {
switch (value) {
case 0: return UIC_NO;
case 1: return UIC_YES;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*站点开启,关闭状态 ** * Protobuf enum {@code core.SiteStatusConfig} */ public enum SiteStatusConfig implements com.google.protobuf.ProtocolMessageEnum { /** *
*站点关闭状态 ** *
CLOSE = 0;
*/
CLOSE(0),
/**
* *站点开启状态 ** *
OPEN = 1;
*/
OPEN(1),
UNRECOGNIZED(-1),
;
/**
* *站点关闭状态 ** *
CLOSE = 0;
*/
public static final int CLOSE_VALUE = 0;
/**
* *站点开启状态 ** *
OPEN = 1;
*/
public static final int OPEN_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SiteStatusConfig valueOf(int value) {
return forNumber(value);
}
public static SiteStatusConfig forNumber(int value) {
switch (value) {
case 0: return CLOSE;
case 1: return OPEN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*二人加密状态枚举 ** * Protobuf enum {@code core.U2EncryptionConfig} */ public enum U2EncryptionConfig implements com.google.protobuf.ProtocolMessageEnum { /** *
*二人加密关闭 ** *
U2_CLOSE = 0;
*/
U2_CLOSE(0),
/**
* *二人加密开启 ** *
U2_OPEN = 1;
*/
U2_OPEN(1),
UNRECOGNIZED(-1),
;
/**
* *二人加密关闭 ** *
U2_CLOSE = 0;
*/
public static final int U2_CLOSE_VALUE = 0;
/**
* *二人加密开启 ** *
U2_OPEN = 1;
*/
public static final int U2_OPEN_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static U2EncryptionConfig valueOf(int value) {
return forNumber(value);
}
public static U2EncryptionConfig forNumber(int value) {
switch (value) {
case 0: return U2_CLOSE;
case 1: return U2_OPEN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*站点后台管理配置key ** * Protobuf enum {@code core.ConfigKey} */ public enum ConfigKey implements com.google.protobuf.ProtocolMessageEnum { /** *
*站点地址 ** *
SITE_ADDRESS = 0;
*/
SITE_ADDRESS(0),
/**
* *站点端口 ** *
SITE_PORT = 1;
*/
SITE_PORT(1),
/**
* *站点名称 ** *
SITE_NAME = 2;
*/
SITE_NAME(2),
/**
* *站点logo ** *
SITE_LOGO = 3;
*/
SITE_LOGO(3),
/**
* *站点版本 ** *
SITE_VERSION = 4;
*/
SITE_VERSION(4),
/**
* *站点介绍 ** *
SITE_INTRODUCTION = 5;
*/
SITE_INTRODUCTION(5),
/**
* *实名状态 ** *
REALNAME_STATUS = 6;
*/
REALNAME_STATUS(6),
/**
* *站点支持群最大成员数 ** *
GROUP_MEMBERS_COUNT = 7;
*/
GROUP_MEMBERS_COUNT(7),
/**
* *站点图片支持最大尺寸 ** *
PIC_SIZE = 8;
*/
PIC_SIZE(8),
/**
* *站点图片存放位置 ** *
PIC_PATH = 9;
*/
PIC_PATH(9),
/**
* *站点状态,站点关闭(status=0)/站点开启(status=1) ** *
SITE_STATUS = 10;
*/
SITE_STATUS(10),
/**
* *站点关闭情况下,需要一个说明 ** *
SITE_STATUS_INFO = 11;
*/
SITE_STATUS_INFO(11),
/**
* *站点超级管理员,唯一一个用户 ** *
SITE_ADMIN = 12;
*/
SITE_ADMIN(12),
/**
* *站点http服务地址 ** *
SITE_HTTP_ADDRESS = 13;
*/
SITE_HTTP_ADDRESS(13),
/**
* *站点http服务地址ip ** *
SITE_HTTP_PORT = 14;
*/
SITE_HTTP_PORT(14),
/**
* *二人消息绝密功能是否开启 ** *
U2_ENCRYPTION_STATUS = 15;
*/
U2_ENCRYPTION_STATUS(15),
/**
* *数据库路径 ** *
DB_PATH = 16;
*/
DB_PATH(16),
/**
* *PushClientStatus ** *
PUSH_CLIENT_STATUS = 17;
*/
PUSH_CLIENT_STATUS(17),
/**
* *系统的日志级别 DEBUG/INFO/ERROR ** *
LOG_LEVEL = 18;
*/
LOG_LEVEL(18),
/**
* *站点管理员,多个用户,用“,”隔开 ** *
SITE_MANAGER = 19;
*/
SITE_MANAGER(19),
/**
* *邀请码状态 ** *
INVITE_CODE_STATUS = 20;
*/
INVITE_CODE_STATUS(20),
/**
* *默认添加的用户好友 ** *
DEFAULT_USER_FRIENDS = 21;
*/
DEFAULT_USER_FRIENDS(21),
/**
* *默认添加的用户群组 ** *
DEFAULT_USER_GROUPS = 22;
*/
DEFAULT_USER_GROUPS(22),
/**
* *是否允许添加还有 ** *
CONFIG_FRIEND_REQUEST = 23;
*/
CONFIG_FRIEND_REQUEST(23),
/**
* *是否允许添加群组 ** *
CONFIG_CREATE_GROUP = 24;
*/
CONFIG_CREATE_GROUP(24),
/**
* *群二维码过期时间 ** *
GROUP_QR_EXPIRE_TIME = 25;
*/
GROUP_QR_EXPIRE_TIME(25),
UNRECOGNIZED(-1),
;
/**
* *站点地址 ** *
SITE_ADDRESS = 0;
*/
public static final int SITE_ADDRESS_VALUE = 0;
/**
* *站点端口 ** *
SITE_PORT = 1;
*/
public static final int SITE_PORT_VALUE = 1;
/**
* *站点名称 ** *
SITE_NAME = 2;
*/
public static final int SITE_NAME_VALUE = 2;
/**
* *站点logo ** *
SITE_LOGO = 3;
*/
public static final int SITE_LOGO_VALUE = 3;
/**
* *站点版本 ** *
SITE_VERSION = 4;
*/
public static final int SITE_VERSION_VALUE = 4;
/**
* *站点介绍 ** *
SITE_INTRODUCTION = 5;
*/
public static final int SITE_INTRODUCTION_VALUE = 5;
/**
* *实名状态 ** *
REALNAME_STATUS = 6;
*/
public static final int REALNAME_STATUS_VALUE = 6;
/**
* *站点支持群最大成员数 ** *
GROUP_MEMBERS_COUNT = 7;
*/
public static final int GROUP_MEMBERS_COUNT_VALUE = 7;
/**
* *站点图片支持最大尺寸 ** *
PIC_SIZE = 8;
*/
public static final int PIC_SIZE_VALUE = 8;
/**
* *站点图片存放位置 ** *
PIC_PATH = 9;
*/
public static final int PIC_PATH_VALUE = 9;
/**
* *站点状态,站点关闭(status=0)/站点开启(status=1) ** *
SITE_STATUS = 10;
*/
public static final int SITE_STATUS_VALUE = 10;
/**
* *站点关闭情况下,需要一个说明 ** *
SITE_STATUS_INFO = 11;
*/
public static final int SITE_STATUS_INFO_VALUE = 11;
/**
* *站点超级管理员,唯一一个用户 ** *
SITE_ADMIN = 12;
*/
public static final int SITE_ADMIN_VALUE = 12;
/**
* *站点http服务地址 ** *
SITE_HTTP_ADDRESS = 13;
*/
public static final int SITE_HTTP_ADDRESS_VALUE = 13;
/**
* *站点http服务地址ip ** *
SITE_HTTP_PORT = 14;
*/
public static final int SITE_HTTP_PORT_VALUE = 14;
/**
* *二人消息绝密功能是否开启 ** *
U2_ENCRYPTION_STATUS = 15;
*/
public static final int U2_ENCRYPTION_STATUS_VALUE = 15;
/**
* *数据库路径 ** *
DB_PATH = 16;
*/
public static final int DB_PATH_VALUE = 16;
/**
* *PushClientStatus ** *
PUSH_CLIENT_STATUS = 17;
*/
public static final int PUSH_CLIENT_STATUS_VALUE = 17;
/**
* *系统的日志级别 DEBUG/INFO/ERROR ** *
LOG_LEVEL = 18;
*/
public static final int LOG_LEVEL_VALUE = 18;
/**
* *站点管理员,多个用户,用“,”隔开 ** *
SITE_MANAGER = 19;
*/
public static final int SITE_MANAGER_VALUE = 19;
/**
* *邀请码状态 ** *
INVITE_CODE_STATUS = 20;
*/
public static final int INVITE_CODE_STATUS_VALUE = 20;
/**
* *默认添加的用户好友 ** *
DEFAULT_USER_FRIENDS = 21;
*/
public static final int DEFAULT_USER_FRIENDS_VALUE = 21;
/**
* *默认添加的用户群组 ** *
DEFAULT_USER_GROUPS = 22;
*/
public static final int DEFAULT_USER_GROUPS_VALUE = 22;
/**
* *是否允许添加还有 ** *
CONFIG_FRIEND_REQUEST = 23;
*/
public static final int CONFIG_FRIEND_REQUEST_VALUE = 23;
/**
* *是否允许添加群组 ** *
CONFIG_CREATE_GROUP = 24;
*/
public static final int CONFIG_CREATE_GROUP_VALUE = 24;
/**
* *群二维码过期时间 ** *
GROUP_QR_EXPIRE_TIME = 25;
*/
public static final int GROUP_QR_EXPIRE_TIME_VALUE = 25;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigKey valueOf(int value) {
return forNumber(value);
}
public static ConfigKey forNumber(int value) {
switch (value) {
case 0: return SITE_ADDRESS;
case 1: return SITE_PORT;
case 2: return SITE_NAME;
case 3: return SITE_LOGO;
case 4: return SITE_VERSION;
case 5: return SITE_INTRODUCTION;
case 6: return REALNAME_STATUS;
case 7: return GROUP_MEMBERS_COUNT;
case 8: return PIC_SIZE;
case 9: return PIC_PATH;
case 10: return SITE_STATUS;
case 11: return SITE_STATUS_INFO;
case 12: return SITE_ADMIN;
case 13: return SITE_HTTP_ADDRESS;
case 14: return SITE_HTTP_PORT;
case 15: return U2_ENCRYPTION_STATUS;
case 16: return DB_PATH;
case 17: return PUSH_CLIENT_STATUS;
case 18: return LOG_LEVEL;
case 19: return SITE_MANAGER;
case 20: return INVITE_CODE_STATUS;
case 21: return DEFAULT_USER_FRIENDS;
case 22: return DEFAULT_USER_GROUPS;
case 23: return CONFIG_FRIEND_REQUEST;
case 24: return CONFIG_CREATE_GROUP;
case 25: return GROUP_QR_EXPIRE_TIME;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*站点发送PUSH给客户端的三种状态 ** * Protobuf enum {@code core.PushClientStatus} */ public enum PushClientStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
*站点不发送push给客户端 ** *
PUSH_NO = 0;
*/
PUSH_NO(0),
/**
* *站点发送PUSH不展示文本内容 ** *
PUSH_HIDDEN_TEXT = 1;
*/
PUSH_HIDDEN_TEXT(1),
/**
* *站点发送PUSH显示文本内容 ** *
PUSH_DISPLAY_TEXT = 2;
*/
PUSH_DISPLAY_TEXT(2),
UNRECOGNIZED(-1),
;
/**
* *站点不发送push给客户端 ** *
PUSH_NO = 0;
*/
public static final int PUSH_NO_VALUE = 0;
/**
* *站点发送PUSH不展示文本内容 ** *
PUSH_HIDDEN_TEXT = 1;
*/
public static final int PUSH_HIDDEN_TEXT_VALUE = 1;
/**
* *站点发送PUSH显示文本内容 ** *
PUSH_DISPLAY_TEXT = 2;
*/
public static final int PUSH_DISPLAY_TEXT_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PushClientStatus valueOf(int value) {
return forNumber(value);
}
public static PushClientStatus forNumber(int value) {
switch (value) {
case 0: return PUSH_NO;
case 1: return PUSH_HIDDEN_TEXT;
case 2: return PUSH_DISPLAY_TEXT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* 是否允许用户加好友(发送好友请求) * 默认值为YES * enum的0值必须为默认值 * https://developers.google.com/protocol-buffers/docs/proto3#enum ** * Protobuf enum {@code core.ConfigFriendRequest} */ public enum ConfigFriendRequest implements com.google.protobuf.ProtocolMessageEnum { /** *
ConfigFriendRequest_YES = 0;
*/
ConfigFriendRequest_YES(0),
/**
* ConfigFriendRequest_NO = 1;
*/
ConfigFriendRequest_NO(1),
UNRECOGNIZED(-1),
;
/**
* ConfigFriendRequest_YES = 0;
*/
public static final int ConfigFriendRequest_YES_VALUE = 0;
/**
* ConfigFriendRequest_NO = 1;
*/
public static final int ConfigFriendRequest_NO_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigFriendRequest valueOf(int value) {
return forNumber(value);
}
public static ConfigFriendRequest forNumber(int value) {
switch (value) {
case 0: return ConfigFriendRequest_YES;
case 1: return ConfigFriendRequest_NO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* 是否允许用户创建群组 * 默认值为YES * enum的0值必须为默认值 * https://developers.google.com/protocol-buffers/docs/proto3#enum ** * Protobuf enum {@code core.ConfigCreateGroup} */ public enum ConfigCreateGroup implements com.google.protobuf.ProtocolMessageEnum { /** *
ConfigCreateGroup_YES = 0;
*/
ConfigCreateGroup_YES(0),
/**
* ConfigCreateGroup_NO = 1;
*/
ConfigCreateGroup_NO(1),
UNRECOGNIZED(-1),
;
/**
* ConfigCreateGroup_YES = 0;
*/
public static final int ConfigCreateGroup_YES_VALUE = 0;
/**
* ConfigCreateGroup_NO = 1;
*/
public static final int ConfigCreateGroup_NO_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigCreateGroup valueOf(int value) {
return forNumber(value);
}
public static ConfigCreateGroup forNumber(int value) {
switch (value) {
case 0: return ConfigCreateGroup_YES;
case 1: return ConfigCreateGroup_NO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapEXPIRE_1_DAY = 0;
*/
EXPIRE_1_DAY(0),
/**
* EXPIRE_7_DAYS = 1;
*/
EXPIRE_7_DAYS(1),
/**
* EXPIRE_14_DAYS = 2;
*/
EXPIRE_14_DAYS(2),
UNRECOGNIZED(-1),
;
/**
* EXPIRE_1_DAY = 0;
*/
public static final int EXPIRE_1_DAY_VALUE = 0;
/**
* EXPIRE_7_DAYS = 1;
*/
public static final int EXPIRE_7_DAYS_VALUE = 1;
/**
* EXPIRE_14_DAYS = 2;
*/
public static final int EXPIRE_14_DAYS_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigGroupQRExpireTime valueOf(int value) {
return forNumber(value);
}
public static ConfigGroupQRExpireTime forNumber(int value) {
switch (value) {
case 0: return EXPIRE_1_DAY;
case 1: return EXPIRE_7_DAYS;
case 2: return EXPIRE_14_DAYS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap*站点ip ** *
string site_address = 1;
*/
java.lang.String getSiteAddress();
/**
* *站点ip ** *
string site_address = 1;
*/
com.google.protobuf.ByteString
getSiteAddressBytes();
/**
* *站点地址 ** *
int32 site_port = 2;
*/
int getSitePort();
/**
* *站点名称 ** *
string site_name = 3;
*/
java.lang.String getSiteName();
/**
* *站点名称 ** *
string site_name = 3;
*/
com.google.protobuf.ByteString
getSiteNameBytes();
/**
* *站点logo ** *
string site_logo = 4;
*/
java.lang.String getSiteLogo();
/**
* *站点logo ** *
string site_logo = 4;
*/
com.google.protobuf.ByteString
getSiteLogoBytes();
/**
* *站点版本 ** *
string site_version = 5;
*/
java.lang.String getSiteVersion();
/**
* *站点版本 ** *
string site_version = 5;
*/
com.google.protobuf.ByteString
getSiteVersionBytes();
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
java.lang.String getSiteIntroduction();
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
com.google.protobuf.ByteString
getSiteIntroductionBytes();
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
int getRealNameConfigValue();
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
com.akaxin.proto.core.ConfigProto.RealNameConfig getRealNameConfig();
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
java.lang.String getPicSize();
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
com.google.protobuf.ByteString
getPicSizeBytes();
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
int getSiteStatusConfigValue();
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
com.akaxin.proto.core.ConfigProto.SiteStatusConfig getSiteStatusConfig();
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
java.lang.String getSiteStatusInfo();
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
com.google.protobuf.ByteString
getSiteStatusInfoBytes();
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
int getU2EncryptionConfigValue();
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
com.akaxin.proto.core.ConfigProto.U2EncryptionConfig getU2EncryptionConfig();
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
int getInviteCodeConfigValue();
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
com.akaxin.proto.core.ConfigProto.InviteCodeConfig getInviteCodeConfig();
}
/**
* * 站点配置信息 ** * Protobuf type {@code core.SiteConfig} */ public static final class SiteConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.SiteConfig) SiteConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SiteConfig.newBuilder() to construct. private SiteConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private SiteConfig() { siteAddress_ = ""; sitePort_ = 0; siteName_ = ""; siteLogo_ = ""; siteVersion_ = ""; siteIntroduction_ = ""; realNameConfig_ = 0; picSize_ = ""; siteStatusConfig_ = 0; siteStatusInfo_ = ""; u2EncryptionConfig_ = 0; inviteCodeConfig_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SiteConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); siteAddress_ = s; break; } case 16: { sitePort_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); siteName_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); siteLogo_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); siteVersion_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); siteIntroduction_ = s; break; } case 56: { int rawValue = input.readEnum(); realNameConfig_ = rawValue; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); picSize_ = s; break; } case 72: { int rawValue = input.readEnum(); siteStatusConfig_ = rawValue; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); siteStatusInfo_ = s; break; } case 88: { int rawValue = input.readEnum(); u2EncryptionConfig_ = rawValue; break; } case 96: { int rawValue = input.readEnum(); inviteCodeConfig_ = rawValue; 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 com.akaxin.proto.core.ConfigProto.internal_static_core_SiteConfig_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.core.ConfigProto.internal_static_core_SiteConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.core.ConfigProto.SiteConfig.class, com.akaxin.proto.core.ConfigProto.SiteConfig.Builder.class); } public static final int SITE_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object siteAddress_; /** *
*站点ip ** *
string site_address = 1;
*/
public java.lang.String getSiteAddress() {
java.lang.Object ref = siteAddress_;
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();
siteAddress_ = s;
return s;
}
}
/**
* *站点ip ** *
string site_address = 1;
*/
public com.google.protobuf.ByteString
getSiteAddressBytes() {
java.lang.Object ref = siteAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_PORT_FIELD_NUMBER = 2;
private int sitePort_;
/**
* *站点地址 ** *
int32 site_port = 2;
*/
public int getSitePort() {
return sitePort_;
}
public static final int SITE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object siteName_;
/**
* *站点名称 ** *
string site_name = 3;
*/
public java.lang.String getSiteName() {
java.lang.Object ref = siteName_;
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();
siteName_ = s;
return s;
}
}
/**
* *站点名称 ** *
string site_name = 3;
*/
public com.google.protobuf.ByteString
getSiteNameBytes() {
java.lang.Object ref = siteName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_LOGO_FIELD_NUMBER = 4;
private volatile java.lang.Object siteLogo_;
/**
* *站点logo ** *
string site_logo = 4;
*/
public java.lang.String getSiteLogo() {
java.lang.Object ref = siteLogo_;
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();
siteLogo_ = s;
return s;
}
}
/**
* *站点logo ** *
string site_logo = 4;
*/
public com.google.protobuf.ByteString
getSiteLogoBytes() {
java.lang.Object ref = siteLogo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteLogo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_VERSION_FIELD_NUMBER = 5;
private volatile java.lang.Object siteVersion_;
/**
* *站点版本 ** *
string site_version = 5;
*/
public java.lang.String getSiteVersion() {
java.lang.Object ref = siteVersion_;
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();
siteVersion_ = s;
return s;
}
}
/**
* *站点版本 ** *
string site_version = 5;
*/
public com.google.protobuf.ByteString
getSiteVersionBytes() {
java.lang.Object ref = siteVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_INTRODUCTION_FIELD_NUMBER = 6;
private volatile java.lang.Object siteIntroduction_;
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public java.lang.String getSiteIntroduction() {
java.lang.Object ref = siteIntroduction_;
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();
siteIntroduction_ = s;
return s;
}
}
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public com.google.protobuf.ByteString
getSiteIntroductionBytes() {
java.lang.Object ref = siteIntroduction_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteIntroduction_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REAL_NAME_CONFIG_FIELD_NUMBER = 7;
private int realNameConfig_;
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public int getRealNameConfigValue() {
return realNameConfig_;
}
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public com.akaxin.proto.core.ConfigProto.RealNameConfig getRealNameConfig() {
com.akaxin.proto.core.ConfigProto.RealNameConfig result = com.akaxin.proto.core.ConfigProto.RealNameConfig.valueOf(realNameConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.RealNameConfig.UNRECOGNIZED : result;
}
public static final int PIC_SIZE_FIELD_NUMBER = 8;
private volatile java.lang.Object picSize_;
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public java.lang.String getPicSize() {
java.lang.Object ref = picSize_;
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();
picSize_ = s;
return s;
}
}
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public com.google.protobuf.ByteString
getPicSizeBytes() {
java.lang.Object ref = picSize_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
picSize_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_STATUS_CONFIG_FIELD_NUMBER = 9;
private int siteStatusConfig_;
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public int getSiteStatusConfigValue() {
return siteStatusConfig_;
}
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public com.akaxin.proto.core.ConfigProto.SiteStatusConfig getSiteStatusConfig() {
com.akaxin.proto.core.ConfigProto.SiteStatusConfig result = com.akaxin.proto.core.ConfigProto.SiteStatusConfig.valueOf(siteStatusConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.SiteStatusConfig.UNRECOGNIZED : result;
}
public static final int SITE_STATUS_INFO_FIELD_NUMBER = 10;
private volatile java.lang.Object siteStatusInfo_;
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public java.lang.String getSiteStatusInfo() {
java.lang.Object ref = siteStatusInfo_;
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();
siteStatusInfo_ = s;
return s;
}
}
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public com.google.protobuf.ByteString
getSiteStatusInfoBytes() {
java.lang.Object ref = siteStatusInfo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteStatusInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int U2_ENCRYPTION_CONFIG_FIELD_NUMBER = 11;
private int u2EncryptionConfig_;
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public int getU2EncryptionConfigValue() {
return u2EncryptionConfig_;
}
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public com.akaxin.proto.core.ConfigProto.U2EncryptionConfig getU2EncryptionConfig() {
com.akaxin.proto.core.ConfigProto.U2EncryptionConfig result = com.akaxin.proto.core.ConfigProto.U2EncryptionConfig.valueOf(u2EncryptionConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.U2EncryptionConfig.UNRECOGNIZED : result;
}
public static final int INVITE_CODE_CONFIG_FIELD_NUMBER = 12;
private int inviteCodeConfig_;
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public int getInviteCodeConfigValue() {
return inviteCodeConfig_;
}
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public com.akaxin.proto.core.ConfigProto.InviteCodeConfig getInviteCodeConfig() {
com.akaxin.proto.core.ConfigProto.InviteCodeConfig result = com.akaxin.proto.core.ConfigProto.InviteCodeConfig.valueOf(inviteCodeConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.InviteCodeConfig.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSiteAddressBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteAddress_);
}
if (sitePort_ != 0) {
output.writeInt32(2, sitePort_);
}
if (!getSiteNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, siteName_);
}
if (!getSiteLogoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, siteLogo_);
}
if (!getSiteVersionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, siteVersion_);
}
if (!getSiteIntroductionBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, siteIntroduction_);
}
if (realNameConfig_ != com.akaxin.proto.core.ConfigProto.RealNameConfig.REALNAME_NO.getNumber()) {
output.writeEnum(7, realNameConfig_);
}
if (!getPicSizeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, picSize_);
}
if (siteStatusConfig_ != com.akaxin.proto.core.ConfigProto.SiteStatusConfig.CLOSE.getNumber()) {
output.writeEnum(9, siteStatusConfig_);
}
if (!getSiteStatusInfoBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, siteStatusInfo_);
}
if (u2EncryptionConfig_ != com.akaxin.proto.core.ConfigProto.U2EncryptionConfig.U2_CLOSE.getNumber()) {
output.writeEnum(11, u2EncryptionConfig_);
}
if (inviteCodeConfig_ != com.akaxin.proto.core.ConfigProto.InviteCodeConfig.UIC_NO.getNumber()) {
output.writeEnum(12, inviteCodeConfig_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSiteAddressBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteAddress_);
}
if (sitePort_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, sitePort_);
}
if (!getSiteNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, siteName_);
}
if (!getSiteLogoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, siteLogo_);
}
if (!getSiteVersionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, siteVersion_);
}
if (!getSiteIntroductionBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, siteIntroduction_);
}
if (realNameConfig_ != com.akaxin.proto.core.ConfigProto.RealNameConfig.REALNAME_NO.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, realNameConfig_);
}
if (!getPicSizeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, picSize_);
}
if (siteStatusConfig_ != com.akaxin.proto.core.ConfigProto.SiteStatusConfig.CLOSE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, siteStatusConfig_);
}
if (!getSiteStatusInfoBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, siteStatusInfo_);
}
if (u2EncryptionConfig_ != com.akaxin.proto.core.ConfigProto.U2EncryptionConfig.U2_CLOSE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, u2EncryptionConfig_);
}
if (inviteCodeConfig_ != com.akaxin.proto.core.ConfigProto.InviteCodeConfig.UIC_NO.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, inviteCodeConfig_);
}
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 com.akaxin.proto.core.ConfigProto.SiteConfig)) {
return super.equals(obj);
}
com.akaxin.proto.core.ConfigProto.SiteConfig other = (com.akaxin.proto.core.ConfigProto.SiteConfig) obj;
boolean result = true;
result = result && getSiteAddress()
.equals(other.getSiteAddress());
result = result && (getSitePort()
== other.getSitePort());
result = result && getSiteName()
.equals(other.getSiteName());
result = result && getSiteLogo()
.equals(other.getSiteLogo());
result = result && getSiteVersion()
.equals(other.getSiteVersion());
result = result && getSiteIntroduction()
.equals(other.getSiteIntroduction());
result = result && realNameConfig_ == other.realNameConfig_;
result = result && getPicSize()
.equals(other.getPicSize());
result = result && siteStatusConfig_ == other.siteStatusConfig_;
result = result && getSiteStatusInfo()
.equals(other.getSiteStatusInfo());
result = result && u2EncryptionConfig_ == other.u2EncryptionConfig_;
result = result && inviteCodeConfig_ == other.inviteCodeConfig_;
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SITE_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getSiteAddress().hashCode();
hash = (37 * hash) + SITE_PORT_FIELD_NUMBER;
hash = (53 * hash) + getSitePort();
hash = (37 * hash) + SITE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSiteName().hashCode();
hash = (37 * hash) + SITE_LOGO_FIELD_NUMBER;
hash = (53 * hash) + getSiteLogo().hashCode();
hash = (37 * hash) + SITE_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getSiteVersion().hashCode();
hash = (37 * hash) + SITE_INTRODUCTION_FIELD_NUMBER;
hash = (53 * hash) + getSiteIntroduction().hashCode();
hash = (37 * hash) + REAL_NAME_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + realNameConfig_;
hash = (37 * hash) + PIC_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getPicSize().hashCode();
hash = (37 * hash) + SITE_STATUS_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + siteStatusConfig_;
hash = (37 * hash) + SITE_STATUS_INFO_FIELD_NUMBER;
hash = (53 * hash) + getSiteStatusInfo().hashCode();
hash = (37 * hash) + U2_ENCRYPTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + u2EncryptionConfig_;
hash = (37 * hash) + INVITE_CODE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + inviteCodeConfig_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig 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 com.akaxin.proto.core.ConfigProto.SiteConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig 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 com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.core.ConfigProto.SiteConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 core.SiteConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
*站点ip ** *
string site_address = 1;
*/
public java.lang.String getSiteAddress() {
java.lang.Object ref = siteAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点ip ** *
string site_address = 1;
*/
public com.google.protobuf.ByteString
getSiteAddressBytes() {
java.lang.Object ref = siteAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点ip ** *
string site_address = 1;
*/
public Builder setSiteAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteAddress_ = value;
onChanged();
return this;
}
/**
* *站点ip ** *
string site_address = 1;
*/
public Builder clearSiteAddress() {
siteAddress_ = getDefaultInstance().getSiteAddress();
onChanged();
return this;
}
/**
* *站点ip ** *
string site_address = 1;
*/
public Builder setSiteAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteAddress_ = value;
onChanged();
return this;
}
private int sitePort_ ;
/**
* *站点地址 ** *
int32 site_port = 2;
*/
public int getSitePort() {
return sitePort_;
}
/**
* *站点地址 ** *
int32 site_port = 2;
*/
public Builder setSitePort(int value) {
sitePort_ = value;
onChanged();
return this;
}
/**
* *站点地址 ** *
int32 site_port = 2;
*/
public Builder clearSitePort() {
sitePort_ = 0;
onChanged();
return this;
}
private java.lang.Object siteName_ = "";
/**
* *站点名称 ** *
string site_name = 3;
*/
public java.lang.String getSiteName() {
java.lang.Object ref = siteName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点名称 ** *
string site_name = 3;
*/
public com.google.protobuf.ByteString
getSiteNameBytes() {
java.lang.Object ref = siteName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点名称 ** *
string site_name = 3;
*/
public Builder setSiteName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteName_ = value;
onChanged();
return this;
}
/**
* *站点名称 ** *
string site_name = 3;
*/
public Builder clearSiteName() {
siteName_ = getDefaultInstance().getSiteName();
onChanged();
return this;
}
/**
* *站点名称 ** *
string site_name = 3;
*/
public Builder setSiteNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteName_ = value;
onChanged();
return this;
}
private java.lang.Object siteLogo_ = "";
/**
* *站点logo ** *
string site_logo = 4;
*/
public java.lang.String getSiteLogo() {
java.lang.Object ref = siteLogo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteLogo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点logo ** *
string site_logo = 4;
*/
public com.google.protobuf.ByteString
getSiteLogoBytes() {
java.lang.Object ref = siteLogo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteLogo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点logo ** *
string site_logo = 4;
*/
public Builder setSiteLogo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteLogo_ = value;
onChanged();
return this;
}
/**
* *站点logo ** *
string site_logo = 4;
*/
public Builder clearSiteLogo() {
siteLogo_ = getDefaultInstance().getSiteLogo();
onChanged();
return this;
}
/**
* *站点logo ** *
string site_logo = 4;
*/
public Builder setSiteLogoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteLogo_ = value;
onChanged();
return this;
}
private java.lang.Object siteVersion_ = "";
/**
* *站点版本 ** *
string site_version = 5;
*/
public java.lang.String getSiteVersion() {
java.lang.Object ref = siteVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点版本 ** *
string site_version = 5;
*/
public com.google.protobuf.ByteString
getSiteVersionBytes() {
java.lang.Object ref = siteVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点版本 ** *
string site_version = 5;
*/
public Builder setSiteVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteVersion_ = value;
onChanged();
return this;
}
/**
* *站点版本 ** *
string site_version = 5;
*/
public Builder clearSiteVersion() {
siteVersion_ = getDefaultInstance().getSiteVersion();
onChanged();
return this;
}
/**
* *站点版本 ** *
string site_version = 5;
*/
public Builder setSiteVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteVersion_ = value;
onChanged();
return this;
}
private java.lang.Object siteIntroduction_ = "";
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public java.lang.String getSiteIntroduction() {
java.lang.Object ref = siteIntroduction_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteIntroduction_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public com.google.protobuf.ByteString
getSiteIntroductionBytes() {
java.lang.Object ref = siteIntroduction_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteIntroduction_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public Builder setSiteIntroduction(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteIntroduction_ = value;
onChanged();
return this;
}
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public Builder clearSiteIntroduction() {
siteIntroduction_ = getDefaultInstance().getSiteIntroduction();
onChanged();
return this;
}
/**
* *站点介绍 ** *
string site_introduction = 6;
*/
public Builder setSiteIntroductionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteIntroduction_ = value;
onChanged();
return this;
}
private int realNameConfig_ = 0;
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public int getRealNameConfigValue() {
return realNameConfig_;
}
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public Builder setRealNameConfigValue(int value) {
realNameConfig_ = value;
onChanged();
return this;
}
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public com.akaxin.proto.core.ConfigProto.RealNameConfig getRealNameConfig() {
com.akaxin.proto.core.ConfigProto.RealNameConfig result = com.akaxin.proto.core.ConfigProto.RealNameConfig.valueOf(realNameConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.RealNameConfig.UNRECOGNIZED : result;
}
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public Builder setRealNameConfig(com.akaxin.proto.core.ConfigProto.RealNameConfig value) {
if (value == null) {
throw new NullPointerException();
}
realNameConfig_ = value.getNumber();
onChanged();
return this;
}
/**
* *站点是否需要实名 ** *
.core.RealNameConfig real_name_config = 7;
*/
public Builder clearRealNameConfig() {
realNameConfig_ = 0;
onChanged();
return this;
}
private java.lang.Object picSize_ = "";
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public java.lang.String getPicSize() {
java.lang.Object ref = picSize_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
picSize_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public com.google.protobuf.ByteString
getPicSizeBytes() {
java.lang.Object ref = picSize_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
picSize_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public Builder setPicSize(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
picSize_ = value;
onChanged();
return this;
}
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public Builder clearPicSize() {
picSize_ = getDefaultInstance().getPicSize();
onChanged();
return this;
}
/**
* *支持图片大小(width x length) ** *
string pic_size = 8;
*/
public Builder setPicSizeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
picSize_ = value;
onChanged();
return this;
}
private int siteStatusConfig_ = 0;
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public int getSiteStatusConfigValue() {
return siteStatusConfig_;
}
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public Builder setSiteStatusConfigValue(int value) {
siteStatusConfig_ = value;
onChanged();
return this;
}
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public com.akaxin.proto.core.ConfigProto.SiteStatusConfig getSiteStatusConfig() {
com.akaxin.proto.core.ConfigProto.SiteStatusConfig result = com.akaxin.proto.core.ConfigProto.SiteStatusConfig.valueOf(siteStatusConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.SiteStatusConfig.UNRECOGNIZED : result;
}
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public Builder setSiteStatusConfig(com.akaxin.proto.core.ConfigProto.SiteStatusConfig value) {
if (value == null) {
throw new NullPointerException();
}
siteStatusConfig_ = value.getNumber();
onChanged();
return this;
}
/**
* *站点状态 ** *
.core.SiteStatusConfig site_status_config = 9;
*/
public Builder clearSiteStatusConfig() {
siteStatusConfig_ = 0;
onChanged();
return this;
}
private java.lang.Object siteStatusInfo_ = "";
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public java.lang.String getSiteStatusInfo() {
java.lang.Object ref = siteStatusInfo_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteStatusInfo_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public com.google.protobuf.ByteString
getSiteStatusInfoBytes() {
java.lang.Object ref = siteStatusInfo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteStatusInfo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public Builder setSiteStatusInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteStatusInfo_ = value;
onChanged();
return this;
}
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public Builder clearSiteStatusInfo() {
siteStatusInfo_ = getDefaultInstance().getSiteStatusInfo();
onChanged();
return this;
}
/**
* *站点状态说明,一般关闭站点情况使用 ** *
string site_status_info = 10;
*/
public Builder setSiteStatusInfoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteStatusInfo_ = value;
onChanged();
return this;
}
private int u2EncryptionConfig_ = 0;
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public int getU2EncryptionConfigValue() {
return u2EncryptionConfig_;
}
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public Builder setU2EncryptionConfigValue(int value) {
u2EncryptionConfig_ = value;
onChanged();
return this;
}
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public com.akaxin.proto.core.ConfigProto.U2EncryptionConfig getU2EncryptionConfig() {
com.akaxin.proto.core.ConfigProto.U2EncryptionConfig result = com.akaxin.proto.core.ConfigProto.U2EncryptionConfig.valueOf(u2EncryptionConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.U2EncryptionConfig.UNRECOGNIZED : result;
}
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public Builder setU2EncryptionConfig(com.akaxin.proto.core.ConfigProto.U2EncryptionConfig value) {
if (value == null) {
throw new NullPointerException();
}
u2EncryptionConfig_ = value.getNumber();
onChanged();
return this;
}
/**
* *二人消息加密状态 ** *
.core.U2EncryptionConfig u2_encryption_config = 11;
*/
public Builder clearU2EncryptionConfig() {
u2EncryptionConfig_ = 0;
onChanged();
return this;
}
private int inviteCodeConfig_ = 0;
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public int getInviteCodeConfigValue() {
return inviteCodeConfig_;
}
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public Builder setInviteCodeConfigValue(int value) {
inviteCodeConfig_ = value;
onChanged();
return this;
}
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public com.akaxin.proto.core.ConfigProto.InviteCodeConfig getInviteCodeConfig() {
com.akaxin.proto.core.ConfigProto.InviteCodeConfig result = com.akaxin.proto.core.ConfigProto.InviteCodeConfig.valueOf(inviteCodeConfig_);
return result == null ? com.akaxin.proto.core.ConfigProto.InviteCodeConfig.UNRECOGNIZED : result;
}
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public Builder setInviteCodeConfig(com.akaxin.proto.core.ConfigProto.InviteCodeConfig value) {
if (value == null) {
throw new NullPointerException();
}
inviteCodeConfig_ = value.getNumber();
onChanged();
return this;
}
/**
* *站点注册是否需要邀请码 ** *
.core.InviteCodeConfig invite_code_config = 12;
*/
public Builder clearInviteCodeConfig() {
inviteCodeConfig_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:core.SiteConfig)
}
// @@protoc_insertion_point(class_scope:core.SiteConfig)
private static final com.akaxin.proto.core.ConfigProto.SiteConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.ConfigProto.SiteConfig();
}
public static com.akaxin.proto.core.ConfigProto.SiteConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parsermap<int32, string> site_config = 1;
*/
int getSiteConfigCount();
/**
* map<int32, string> site_config = 1;
*/
boolean containsSiteConfig(
int key);
/**
* Use {@link #getSiteConfigMap()} instead.
*/
@java.lang.Deprecated
java.util.Mapmap<int32, string> site_config = 1;
*/
java.util.Mapmap<int32, string> site_config = 1;
*/
java.lang.String getSiteConfigOrDefault(
int key,
java.lang.String defaultValue);
/**
* map<int32, string> site_config = 1;
*/
java.lang.String getSiteConfigOrThrow(
int key);
}
/**
* *站点后台管理配置 ** * Protobuf type {@code core.SiteBackConfig} */ public static final class SiteBackConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:core.SiteBackConfig) SiteBackConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SiteBackConfig.newBuilder() to construct. private SiteBackConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private SiteBackConfig() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SiteBackConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { siteConfig_ = com.google.protobuf.MapField.newMapField( SiteConfigDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry
map<int32, string> site_config = 1;
*/
public boolean containsSiteConfig(
int key) {
return internalGetSiteConfig().getMap().containsKey(key);
}
/**
* Use {@link #getSiteConfigMap()} instead.
*/
@java.lang.Deprecated
public java.util.Mapmap<int32, string> site_config = 1;
*/
public java.util.Mapmap<int32, string> site_config = 1;
*/
public java.lang.String getSiteConfigOrDefault(
int key,
java.lang.String defaultValue) {
java.util.Mapmap<int32, string> site_config = 1;
*/
public java.lang.String getSiteConfigOrThrow(
int key) {
java.util.Map*站点后台管理配置 ** * Protobuf type {@code core.SiteBackConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
map<int32, string> site_config = 1;
*/
public boolean containsSiteConfig(
int key) {
return internalGetSiteConfig().getMap().containsKey(key);
}
/**
* Use {@link #getSiteConfigMap()} instead.
*/
@java.lang.Deprecated
public java.util.Mapmap<int32, string> site_config = 1;
*/
public java.util.Mapmap<int32, string> site_config = 1;
*/
public java.lang.String getSiteConfigOrDefault(
int key,
java.lang.String defaultValue) {
java.util.Mapmap<int32, string> site_config = 1;
*/
public java.lang.String getSiteConfigOrThrow(
int key) {
java.util.Mapmap<int32, string> site_config = 1;
*/
public Builder removeSiteConfig(
int key) {
internalGetMutableSiteConfig().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Mapmap<int32, string> site_config = 1;
*/
public Builder putSiteConfig(
int key,
java.lang.String value) {
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableSiteConfig().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int32, string> site_config = 1;
*/
public Builder putAllSiteConfig(
java.util.Map