WindChat/windchat-protobuf/src/main/java/com/akaxin/proto/core/UicProto.java

1483 lines
41 KiB
Java
Executable File

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: core/uic.proto
package com.akaxin.proto.core;
public final class UicProto {
private UicProto() {}
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.UicStatus}
*/
public enum UicStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <pre>
*未使用的的
* </pre>
*
* <code>UNUSED = 0;</code>
*/
UNUSED(0),
/**
* <pre>
*已经使用的
* </pre>
*
* <code>USED = 1;</code>
*/
USED(1),
/**
* <pre>
*失效的
* </pre>
*
* <code>INVALIDATION = 2;</code>
*/
INVALIDATION(2),
UNRECOGNIZED(-1),
;
/**
* <pre>
*未使用的的
* </pre>
*
* <code>UNUSED = 0;</code>
*/
public static final int UNUSED_VALUE = 0;
/**
* <pre>
*已经使用的
* </pre>
*
* <code>USED = 1;</code>
*/
public static final int USED_VALUE = 1;
/**
* <pre>
*失效的
* </pre>
*
* <code>INVALIDATION = 2;</code>
*/
public static final int INVALIDATION_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 UicStatus valueOf(int value) {
return forNumber(value);
}
public static UicStatus forNumber(int value) {
switch (value) {
case 0: return UNUSED;
case 1: return USED;
case 2: return INVALIDATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<UicStatus>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UicStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<UicStatus>() {
public UicStatus findValueByNumber(int number) {
return UicStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.akaxin.proto.core.UicProto.getDescriptor().getEnumTypes().get(0);
}
private static final UicStatus[] VALUES = values();
public static UicStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private UicStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:core.UicStatus)
}
public interface UicInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:core.UicInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*uic_id
* </pre>
*
* <code>int32 id = 1;</code>
*/
int getId();
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
java.lang.String getUic();
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
com.google.protobuf.ByteString
getUicBytes();
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
java.lang.String getSiteUserId();
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
com.google.protobuf.ByteString
getSiteUserIdBytes();
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
java.lang.String getUserName();
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
com.google.protobuf.ByteString
getUserNameBytes();
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
int getStatusValue();
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
com.akaxin.proto.core.UicProto.UicStatus getStatus();
/**
* <pre>
*生成的时间
* </pre>
*
* <code>int64 create_time = 6;</code>
*/
long getCreateTime();
/**
* <pre>
*使用的时间
* </pre>
*
* <code>int64 use_time = 7;</code>
*/
long getUseTime();
}
/**
* <pre>
*最简单的用户信息,用于给别人呈现
* </pre>
*
* Protobuf type {@code core.UicInfo}
*/
public static final class UicInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:core.UicInfo)
UicInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UicInfo.newBuilder() to construct.
private UicInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private UicInfo() {
id_ = 0;
uic_ = "";
siteUserId_ = "";
userName_ = "";
status_ = 0;
createTime_ = 0L;
useTime_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UicInfo(
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 8: {
id_ = input.readInt32();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
uic_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
siteUserId_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
userName_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 48: {
createTime_ = input.readInt64();
break;
}
case 56: {
useTime_ = input.readInt64();
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.UicProto.internal_static_core_UicInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.UicProto.internal_static_core_UicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.UicProto.UicInfo.class, com.akaxin.proto.core.UicProto.UicInfo.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* <pre>
*uic_id
* </pre>
*
* <code>int32 id = 1;</code>
*/
public int getId() {
return id_;
}
public static final int UIC_FIELD_NUMBER = 2;
private volatile java.lang.Object uic_;
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public java.lang.String getUic() {
java.lang.Object ref = uic_;
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();
uic_ = s;
return s;
}
}
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public com.google.protobuf.ByteString
getUicBytes() {
java.lang.Object ref = uic_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_USER_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object siteUserId_;
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public java.lang.String getSiteUserId() {
java.lang.Object ref = siteUserId_;
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();
siteUserId_ = s;
return s;
}
}
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object userName_;
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public java.lang.String getUserName() {
java.lang.Object ref = userName_;
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();
userName_ = s;
return s;
}
}
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public com.google.protobuf.ByteString
getUserNameBytes() {
java.lang.Object ref = userName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 5;
private int status_;
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public int getStatusValue() {
return status_;
}
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public com.akaxin.proto.core.UicProto.UicStatus getStatus() {
com.akaxin.proto.core.UicProto.UicStatus result = com.akaxin.proto.core.UicProto.UicStatus.valueOf(status_);
return result == null ? com.akaxin.proto.core.UicProto.UicStatus.UNRECOGNIZED : result;
}
public static final int CREATE_TIME_FIELD_NUMBER = 6;
private long createTime_;
/**
* <pre>
*生成的时间
* </pre>
*
* <code>int64 create_time = 6;</code>
*/
public long getCreateTime() {
return createTime_;
}
public static final int USE_TIME_FIELD_NUMBER = 7;
private long useTime_;
/**
* <pre>
*使用的时间
* </pre>
*
* <code>int64 use_time = 7;</code>
*/
public long getUseTime() {
return useTime_;
}
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 (id_ != 0) {
output.writeInt32(1, id_);
}
if (!getUicBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uic_);
}
if (!getSiteUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, siteUserId_);
}
if (!getUserNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userName_);
}
if (status_ != com.akaxin.proto.core.UicProto.UicStatus.UNUSED.getNumber()) {
output.writeEnum(5, status_);
}
if (createTime_ != 0L) {
output.writeInt64(6, createTime_);
}
if (useTime_ != 0L) {
output.writeInt64(7, useTime_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (!getUicBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uic_);
}
if (!getSiteUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, siteUserId_);
}
if (!getUserNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userName_);
}
if (status_ != com.akaxin.proto.core.UicProto.UicStatus.UNUSED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, status_);
}
if (createTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, createTime_);
}
if (useTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, useTime_);
}
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.UicProto.UicInfo)) {
return super.equals(obj);
}
com.akaxin.proto.core.UicProto.UicInfo other = (com.akaxin.proto.core.UicProto.UicInfo) obj;
boolean result = true;
result = result && (getId()
== other.getId());
result = result && getUic()
.equals(other.getUic());
result = result && getSiteUserId()
.equals(other.getSiteUserId());
result = result && getUserName()
.equals(other.getUserName());
result = result && status_ == other.status_;
result = result && (getCreateTime()
== other.getCreateTime());
result = result && (getUseTime()
== other.getUseTime());
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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + UIC_FIELD_NUMBER;
hash = (53 * hash) + getUic().hashCode();
hash = (37 * hash) + SITE_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSiteUserId().hashCode();
hash = (37 * hash) + USER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getUserName().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreateTime());
hash = (37 * hash) + USE_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUseTime());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.core.UicProto.UicInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.UicProto.UicInfo 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.UicProto.UicInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.UicProto.UicInfo 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.UicProto.UicInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.core.UicProto.UicInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.core.UicProto.UicInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.UicProto.UicInfo 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.UicProto.UicInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.UicProto.UicInfo 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.UicProto.UicInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.core.UicProto.UicInfo 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.UicProto.UicInfo 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;
}
/**
* <pre>
*最简单的用户信息,用于给别人呈现
* </pre>
*
* Protobuf type {@code core.UicInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:core.UicInfo)
com.akaxin.proto.core.UicProto.UicInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.core.UicProto.internal_static_core_UicInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.core.UicProto.internal_static_core_UicInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.core.UicProto.UicInfo.class, com.akaxin.proto.core.UicProto.UicInfo.Builder.class);
}
// Construct using com.akaxin.proto.core.UicProto.UicInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = 0;
uic_ = "";
siteUserId_ = "";
userName_ = "";
status_ = 0;
createTime_ = 0L;
useTime_ = 0L;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.core.UicProto.internal_static_core_UicInfo_descriptor;
}
public com.akaxin.proto.core.UicProto.UicInfo getDefaultInstanceForType() {
return com.akaxin.proto.core.UicProto.UicInfo.getDefaultInstance();
}
public com.akaxin.proto.core.UicProto.UicInfo build() {
com.akaxin.proto.core.UicProto.UicInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.core.UicProto.UicInfo buildPartial() {
com.akaxin.proto.core.UicProto.UicInfo result = new com.akaxin.proto.core.UicProto.UicInfo(this);
result.id_ = id_;
result.uic_ = uic_;
result.siteUserId_ = siteUserId_;
result.userName_ = userName_;
result.status_ = status_;
result.createTime_ = createTime_;
result.useTime_ = useTime_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.core.UicProto.UicInfo) {
return mergeFrom((com.akaxin.proto.core.UicProto.UicInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.core.UicProto.UicInfo other) {
if (other == com.akaxin.proto.core.UicProto.UicInfo.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (!other.getUic().isEmpty()) {
uic_ = other.uic_;
onChanged();
}
if (!other.getSiteUserId().isEmpty()) {
siteUserId_ = other.siteUserId_;
onChanged();
}
if (!other.getUserName().isEmpty()) {
userName_ = other.userName_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getCreateTime() != 0L) {
setCreateTime(other.getCreateTime());
}
if (other.getUseTime() != 0L) {
setUseTime(other.getUseTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.core.UicProto.UicInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.core.UicProto.UicInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* <pre>
*uic_id
* </pre>
*
* <code>int32 id = 1;</code>
*/
public int getId() {
return id_;
}
/**
* <pre>
*uic_id
* </pre>
*
* <code>int32 id = 1;</code>
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* <pre>
*uic_id
* </pre>
*
* <code>int32 id = 1;</code>
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private java.lang.Object uic_ = "";
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public java.lang.String getUic() {
java.lang.Object ref = uic_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uic_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public com.google.protobuf.ByteString
getUicBytes() {
java.lang.Object ref = uic_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uic_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public Builder setUic(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uic_ = value;
onChanged();
return this;
}
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public Builder clearUic() {
uic_ = getDefaultInstance().getUic();
onChanged();
return this;
}
/**
* <pre>
*uic
* </pre>
*
* <code>string uic = 2;</code>
*/
public Builder setUicBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uic_ = value;
onChanged();
return this;
}
private java.lang.Object siteUserId_ = "";
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public java.lang.String getSiteUserId() {
java.lang.Object ref = siteUserId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteUserId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* <pre>
*用户id
* </pre>
*
* <code>string site_user_id = 3;</code>
*/
public Builder setSiteUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteUserId_ = value;
onChanged();
return this;
}
private java.lang.Object userName_ = "";
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public java.lang.String getUserName() {
java.lang.Object ref = userName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public com.google.protobuf.ByteString
getUserNameBytes() {
java.lang.Object ref = userName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public Builder setUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userName_ = value;
onChanged();
return this;
}
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public Builder clearUserName() {
userName_ = getDefaultInstance().getUserName();
onChanged();
return this;
}
/**
* <pre>
*用户名称
* </pre>
*
* <code>string user_name = 4;</code>
*/
public Builder setUserNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userName_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public int getStatusValue() {
return status_;
}
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public com.akaxin.proto.core.UicProto.UicStatus getStatus() {
com.akaxin.proto.core.UicProto.UicStatus result = com.akaxin.proto.core.UicProto.UicStatus.valueOf(status_);
return result == null ? com.akaxin.proto.core.UicProto.UicStatus.UNRECOGNIZED : result;
}
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public Builder setStatus(com.akaxin.proto.core.UicProto.UicStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*是否可用的状态
* </pre>
*
* <code>.core.UicStatus status = 5;</code>
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private long createTime_ ;
/**
* <pre>
*生成的时间
* </pre>
*
* <code>int64 create_time = 6;</code>
*/
public long getCreateTime() {
return createTime_;
}
/**
* <pre>
*生成的时间
* </pre>
*
* <code>int64 create_time = 6;</code>
*/
public Builder setCreateTime(long value) {
createTime_ = value;
onChanged();
return this;
}
/**
* <pre>
*生成的时间
* </pre>
*
* <code>int64 create_time = 6;</code>
*/
public Builder clearCreateTime() {
createTime_ = 0L;
onChanged();
return this;
}
private long useTime_ ;
/**
* <pre>
*使用的时间
* </pre>
*
* <code>int64 use_time = 7;</code>
*/
public long getUseTime() {
return useTime_;
}
/**
* <pre>
*使用的时间
* </pre>
*
* <code>int64 use_time = 7;</code>
*/
public Builder setUseTime(long value) {
useTime_ = value;
onChanged();
return this;
}
/**
* <pre>
*使用的时间
* </pre>
*
* <code>int64 use_time = 7;</code>
*/
public Builder clearUseTime() {
useTime_ = 0L;
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.UicInfo)
}
// @@protoc_insertion_point(class_scope:core.UicInfo)
private static final com.akaxin.proto.core.UicProto.UicInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.core.UicProto.UicInfo();
}
public static com.akaxin.proto.core.UicProto.UicInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<UicInfo>
PARSER = new com.google.protobuf.AbstractParser<UicInfo>() {
public UicInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UicInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<UicInfo> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<UicInfo> getParserForType() {
return PARSER;
}
public com.akaxin.proto.core.UicProto.UicInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_core_UicInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_core_UicInfo_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\016core/uic.proto\022\004core\"\223\001\n\007UicInfo\022\n\n\002id" +
"\030\001 \001(\005\022\013\n\003uic\030\002 \001(\t\022\024\n\014site_user_id\030\003 \001(" +
"\t\022\021\n\tuser_name\030\004 \001(\t\022\037\n\006status\030\005 \001(\0162\017.c" +
"ore.UicStatus\022\023\n\013create_time\030\006 \001(\003\022\020\n\010us" +
"e_time\030\007 \001(\003*3\n\tUicStatus\022\n\n\006UNUSED\020\000\022\010\n" +
"\004USED\020\001\022\020\n\014INVALIDATION\020\002B!\n\025com.akaxin." +
"proto.coreB\010UicProtob\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_core_UicInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_core_UicInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_core_UicInfo_descriptor,
new java.lang.String[] { "Id", "Uic", "SiteUserId", "UserName", "Status", "CreateTime", "UseTime", });
}
// @@protoc_insertion_point(outer_class_scope)
}