
wechat.protobuf.OpenIMContact Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.OpenIMContact}
*/
public final class OpenIMContact extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.OpenIMContact)
OpenIMContactOrBuilder {
private static final long serialVersionUID = 0L;
// Use OpenIMContact.newBuilder() to construct.
private OpenIMContact(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OpenIMContact() {
tpUsername_ = "";
nickname_ = "";
remark_ = "";
bigHeadimg_ = "";
smallHeadimg_ = "";
nicknamePyinit_ = "";
nicknameQuanpin_ = "";
remarkPyinit_ = "";
remarkQuanpin_ = "";
antispamTicket_ = "";
appId_ = "";
descWordingId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OpenIMContact();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OpenIMContact(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
tpUsername_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
nickname_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
type_ = input.readUInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
remark_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
bigHeadimg_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
smallHeadimg_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
source_ = input.readUInt32();
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
nicknamePyinit_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
nicknameQuanpin_ = bs;
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
remarkPyinit_ = bs;
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
remarkQuanpin_ = bs;
break;
}
case 98: {
wechat.protobuf.OpenIMContactCustomInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000800) != 0)) {
subBuilder = customInfo_.toBuilder();
}
customInfo_ = input.readMessage(wechat.protobuf.OpenIMContactCustomInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(customInfo_);
customInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000800;
break;
}
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
antispamTicket_ = bs;
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
appId_ = bs;
break;
}
case 120: {
bitField0_ |= 0x00004000;
sex_ = input.readUInt32();
break;
}
case 130: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00008000;
descWordingId_ = bs;
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 wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMContact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMContact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.OpenIMContact.class, wechat.protobuf.OpenIMContact.Builder.class);
}
private int bitField0_;
public static final int TP_USERNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object tpUsername_;
/**
* optional string tp_username = 1;
* @return Whether the tpUsername field is set.
*/
@java.lang.Override
public boolean hasTpUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string tp_username = 1;
* @return The tpUsername.
*/
@java.lang.Override
public java.lang.String getTpUsername() {
java.lang.Object ref = tpUsername_;
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();
if (bs.isValidUtf8()) {
tpUsername_ = s;
}
return s;
}
}
/**
* optional string tp_username = 1;
* @return The bytes for tpUsername.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTpUsernameBytes() {
java.lang.Object ref = tpUsername_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tpUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NICKNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object nickname_;
/**
* optional string nickname = 2;
* @return Whether the nickname field is set.
*/
@java.lang.Override
public boolean hasNickname() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string nickname = 2;
* @return The nickname.
*/
@java.lang.Override
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nickname_ = s;
}
return s;
}
}
/**
* optional string nickname = 2;
* @return The bytes for nickname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* optional uint32 type = 3;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 type = 3;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
public static final int REMARK_FIELD_NUMBER = 4;
private volatile java.lang.Object remark_;
/**
* optional string remark = 4;
* @return Whether the remark field is set.
*/
@java.lang.Override
public boolean hasRemark() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string remark = 4;
* @return The remark.
*/
@java.lang.Override
public java.lang.String getRemark() {
java.lang.Object ref = remark_;
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();
if (bs.isValidUtf8()) {
remark_ = s;
}
return s;
}
}
/**
* optional string remark = 4;
* @return The bytes for remark.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemarkBytes() {
java.lang.Object ref = remark_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remark_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BIG_HEADIMG_FIELD_NUMBER = 5;
private volatile java.lang.Object bigHeadimg_;
/**
* optional string big_headimg = 5;
* @return Whether the bigHeadimg field is set.
*/
@java.lang.Override
public boolean hasBigHeadimg() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string big_headimg = 5;
* @return The bigHeadimg.
*/
@java.lang.Override
public java.lang.String getBigHeadimg() {
java.lang.Object ref = bigHeadimg_;
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();
if (bs.isValidUtf8()) {
bigHeadimg_ = s;
}
return s;
}
}
/**
* optional string big_headimg = 5;
* @return The bytes for bigHeadimg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBigHeadimgBytes() {
java.lang.Object ref = bigHeadimg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SMALL_HEADIMG_FIELD_NUMBER = 6;
private volatile java.lang.Object smallHeadimg_;
/**
* optional string small_headimg = 6;
* @return Whether the smallHeadimg field is set.
*/
@java.lang.Override
public boolean hasSmallHeadimg() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string small_headimg = 6;
* @return The smallHeadimg.
*/
@java.lang.Override
public java.lang.String getSmallHeadimg() {
java.lang.Object ref = smallHeadimg_;
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();
if (bs.isValidUtf8()) {
smallHeadimg_ = s;
}
return s;
}
}
/**
* optional string small_headimg = 6;
* @return The bytes for smallHeadimg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSmallHeadimgBytes() {
java.lang.Object ref = smallHeadimg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
smallHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 7;
private int source_;
/**
* optional uint32 source = 7;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 source = 7;
* @return The source.
*/
@java.lang.Override
public int getSource() {
return source_;
}
public static final int NICKNAME_PYINIT_FIELD_NUMBER = 8;
private volatile java.lang.Object nicknamePyinit_;
/**
* optional string nickname_pyinit = 8;
* @return Whether the nicknamePyinit field is set.
*/
@java.lang.Override
public boolean hasNicknamePyinit() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string nickname_pyinit = 8;
* @return The nicknamePyinit.
*/
@java.lang.Override
public java.lang.String getNicknamePyinit() {
java.lang.Object ref = nicknamePyinit_;
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();
if (bs.isValidUtf8()) {
nicknamePyinit_ = s;
}
return s;
}
}
/**
* optional string nickname_pyinit = 8;
* @return The bytes for nicknamePyinit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNicknamePyinitBytes() {
java.lang.Object ref = nicknamePyinit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nicknamePyinit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NICKNAME_QUANPIN_FIELD_NUMBER = 9;
private volatile java.lang.Object nicknameQuanpin_;
/**
* optional string nickname_quanpin = 9;
* @return Whether the nicknameQuanpin field is set.
*/
@java.lang.Override
public boolean hasNicknameQuanpin() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string nickname_quanpin = 9;
* @return The nicknameQuanpin.
*/
@java.lang.Override
public java.lang.String getNicknameQuanpin() {
java.lang.Object ref = nicknameQuanpin_;
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();
if (bs.isValidUtf8()) {
nicknameQuanpin_ = s;
}
return s;
}
}
/**
* optional string nickname_quanpin = 9;
* @return The bytes for nicknameQuanpin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNicknameQuanpinBytes() {
java.lang.Object ref = nicknameQuanpin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nicknameQuanpin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMARK_PYINIT_FIELD_NUMBER = 10;
private volatile java.lang.Object remarkPyinit_;
/**
* optional string remark_pyinit = 10;
* @return Whether the remarkPyinit field is set.
*/
@java.lang.Override
public boolean hasRemarkPyinit() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string remark_pyinit = 10;
* @return The remarkPyinit.
*/
@java.lang.Override
public java.lang.String getRemarkPyinit() {
java.lang.Object ref = remarkPyinit_;
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();
if (bs.isValidUtf8()) {
remarkPyinit_ = s;
}
return s;
}
}
/**
* optional string remark_pyinit = 10;
* @return The bytes for remarkPyinit.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemarkPyinitBytes() {
java.lang.Object ref = remarkPyinit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remarkPyinit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMARK_QUANPIN_FIELD_NUMBER = 11;
private volatile java.lang.Object remarkQuanpin_;
/**
* optional string remark_quanpin = 11;
* @return Whether the remarkQuanpin field is set.
*/
@java.lang.Override
public boolean hasRemarkQuanpin() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string remark_quanpin = 11;
* @return The remarkQuanpin.
*/
@java.lang.Override
public java.lang.String getRemarkQuanpin() {
java.lang.Object ref = remarkQuanpin_;
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();
if (bs.isValidUtf8()) {
remarkQuanpin_ = s;
}
return s;
}
}
/**
* optional string remark_quanpin = 11;
* @return The bytes for remarkQuanpin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemarkQuanpinBytes() {
java.lang.Object ref = remarkQuanpin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remarkQuanpin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CUSTOM_INFO_FIELD_NUMBER = 12;
private wechat.protobuf.OpenIMContactCustomInfo customInfo_;
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
* @return Whether the customInfo field is set.
*/
@java.lang.Override
public boolean hasCustomInfo() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
* @return The customInfo.
*/
@java.lang.Override
public wechat.protobuf.OpenIMContactCustomInfo getCustomInfo() {
return customInfo_ == null ? wechat.protobuf.OpenIMContactCustomInfo.getDefaultInstance() : customInfo_;
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
@java.lang.Override
public wechat.protobuf.OpenIMContactCustomInfoOrBuilder getCustomInfoOrBuilder() {
return customInfo_ == null ? wechat.protobuf.OpenIMContactCustomInfo.getDefaultInstance() : customInfo_;
}
public static final int ANTISPAM_TICKET_FIELD_NUMBER = 13;
private volatile java.lang.Object antispamTicket_;
/**
* optional string antispam_ticket = 13;
* @return Whether the antispamTicket field is set.
*/
@java.lang.Override
public boolean hasAntispamTicket() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional string antispam_ticket = 13;
* @return The antispamTicket.
*/
@java.lang.Override
public java.lang.String getAntispamTicket() {
java.lang.Object ref = antispamTicket_;
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();
if (bs.isValidUtf8()) {
antispamTicket_ = s;
}
return s;
}
}
/**
* optional string antispam_ticket = 13;
* @return The bytes for antispamTicket.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAntispamTicketBytes() {
java.lang.Object ref = antispamTicket_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
antispamTicket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APP_ID_FIELD_NUMBER = 14;
private volatile java.lang.Object appId_;
/**
* optional string app_id = 14;
* @return Whether the appId field is set.
*/
@java.lang.Override
public boolean hasAppId() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional string app_id = 14;
* @return The appId.
*/
@java.lang.Override
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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();
if (bs.isValidUtf8()) {
appId_ = s;
}
return s;
}
}
/**
* optional string app_id = 14;
* @return The bytes for appId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEX_FIELD_NUMBER = 15;
private int sex_;
/**
* optional uint32 sex = 15;
* @return Whether the sex field is set.
*/
@java.lang.Override
public boolean hasSex() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional uint32 sex = 15;
* @return The sex.
*/
@java.lang.Override
public int getSex() {
return sex_;
}
public static final int DESC_WORDING_ID_FIELD_NUMBER = 16;
private volatile java.lang.Object descWordingId_;
/**
* optional string desc_wording_id = 16;
* @return Whether the descWordingId field is set.
*/
@java.lang.Override
public boolean hasDescWordingId() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional string desc_wording_id = 16;
* @return The descWordingId.
*/
@java.lang.Override
public java.lang.String getDescWordingId() {
java.lang.Object ref = descWordingId_;
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();
if (bs.isValidUtf8()) {
descWordingId_ = s;
}
return s;
}
}
/**
* optional string desc_wording_id = 16;
* @return The bytes for descWordingId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescWordingIdBytes() {
java.lang.Object ref = descWordingId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
descWordingId_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tpUsername_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nickname_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, type_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, remark_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bigHeadimg_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, smallHeadimg_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt32(7, source_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, nicknamePyinit_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, nicknameQuanpin_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, remarkPyinit_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, remarkQuanpin_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(12, getCustomInfo());
}
if (((bitField0_ & 0x00001000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, antispamTicket_);
}
if (((bitField0_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, appId_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeUInt32(15, sex_);
}
if (((bitField0_ & 0x00008000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, descWordingId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tpUsername_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nickname_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, type_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, remark_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bigHeadimg_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, smallHeadimg_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, source_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, nicknamePyinit_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, nicknameQuanpin_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, remarkPyinit_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, remarkQuanpin_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getCustomInfo());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, antispamTicket_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, appId_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, sex_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, descWordingId_);
}
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 wechat.protobuf.OpenIMContact)) {
return super.equals(obj);
}
wechat.protobuf.OpenIMContact other = (wechat.protobuf.OpenIMContact) obj;
if (hasTpUsername() != other.hasTpUsername()) return false;
if (hasTpUsername()) {
if (!getTpUsername()
.equals(other.getTpUsername())) return false;
}
if (hasNickname() != other.hasNickname()) return false;
if (hasNickname()) {
if (!getNickname()
.equals(other.getNickname())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (getType()
!= other.getType()) return false;
}
if (hasRemark() != other.hasRemark()) return false;
if (hasRemark()) {
if (!getRemark()
.equals(other.getRemark())) return false;
}
if (hasBigHeadimg() != other.hasBigHeadimg()) return false;
if (hasBigHeadimg()) {
if (!getBigHeadimg()
.equals(other.getBigHeadimg())) return false;
}
if (hasSmallHeadimg() != other.hasSmallHeadimg()) return false;
if (hasSmallHeadimg()) {
if (!getSmallHeadimg()
.equals(other.getSmallHeadimg())) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (getSource()
!= other.getSource()) return false;
}
if (hasNicknamePyinit() != other.hasNicknamePyinit()) return false;
if (hasNicknamePyinit()) {
if (!getNicknamePyinit()
.equals(other.getNicknamePyinit())) return false;
}
if (hasNicknameQuanpin() != other.hasNicknameQuanpin()) return false;
if (hasNicknameQuanpin()) {
if (!getNicknameQuanpin()
.equals(other.getNicknameQuanpin())) return false;
}
if (hasRemarkPyinit() != other.hasRemarkPyinit()) return false;
if (hasRemarkPyinit()) {
if (!getRemarkPyinit()
.equals(other.getRemarkPyinit())) return false;
}
if (hasRemarkQuanpin() != other.hasRemarkQuanpin()) return false;
if (hasRemarkQuanpin()) {
if (!getRemarkQuanpin()
.equals(other.getRemarkQuanpin())) return false;
}
if (hasCustomInfo() != other.hasCustomInfo()) return false;
if (hasCustomInfo()) {
if (!getCustomInfo()
.equals(other.getCustomInfo())) return false;
}
if (hasAntispamTicket() != other.hasAntispamTicket()) return false;
if (hasAntispamTicket()) {
if (!getAntispamTicket()
.equals(other.getAntispamTicket())) return false;
}
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (hasSex() != other.hasSex()) return false;
if (hasSex()) {
if (getSex()
!= other.getSex()) return false;
}
if (hasDescWordingId() != other.hasDescWordingId()) return false;
if (hasDescWordingId()) {
if (!getDescWordingId()
.equals(other.getDescWordingId())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTpUsername()) {
hash = (37 * hash) + TP_USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getTpUsername().hashCode();
}
if (hasNickname()) {
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
hash = (53 * hash) + getNickname().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasRemark()) {
hash = (37 * hash) + REMARK_FIELD_NUMBER;
hash = (53 * hash) + getRemark().hashCode();
}
if (hasBigHeadimg()) {
hash = (37 * hash) + BIG_HEADIMG_FIELD_NUMBER;
hash = (53 * hash) + getBigHeadimg().hashCode();
}
if (hasSmallHeadimg()) {
hash = (37 * hash) + SMALL_HEADIMG_FIELD_NUMBER;
hash = (53 * hash) + getSmallHeadimg().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource();
}
if (hasNicknamePyinit()) {
hash = (37 * hash) + NICKNAME_PYINIT_FIELD_NUMBER;
hash = (53 * hash) + getNicknamePyinit().hashCode();
}
if (hasNicknameQuanpin()) {
hash = (37 * hash) + NICKNAME_QUANPIN_FIELD_NUMBER;
hash = (53 * hash) + getNicknameQuanpin().hashCode();
}
if (hasRemarkPyinit()) {
hash = (37 * hash) + REMARK_PYINIT_FIELD_NUMBER;
hash = (53 * hash) + getRemarkPyinit().hashCode();
}
if (hasRemarkQuanpin()) {
hash = (37 * hash) + REMARK_QUANPIN_FIELD_NUMBER;
hash = (53 * hash) + getRemarkQuanpin().hashCode();
}
if (hasCustomInfo()) {
hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER;
hash = (53 * hash) + getCustomInfo().hashCode();
}
if (hasAntispamTicket()) {
hash = (37 * hash) + ANTISPAM_TICKET_FIELD_NUMBER;
hash = (53 * hash) + getAntispamTicket().hashCode();
}
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
if (hasSex()) {
hash = (37 * hash) + SEX_FIELD_NUMBER;
hash = (53 * hash) + getSex();
}
if (hasDescWordingId()) {
hash = (37 * hash) + DESC_WORDING_ID_FIELD_NUMBER;
hash = (53 * hash) + getDescWordingId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.OpenIMContact parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.OpenIMContact parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.OpenIMContact parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.OpenIMContact parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.OpenIMContact parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.OpenIMContact parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.OpenIMContact parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.OpenIMContact 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 wechat.protobuf.OpenIMContact parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.OpenIMContact 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 wechat.protobuf.OpenIMContact parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.OpenIMContact 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(wechat.protobuf.OpenIMContact 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 wechat_proto.OpenIMContact}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.OpenIMContact)
wechat.protobuf.OpenIMContactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMContact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMContact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.OpenIMContact.class, wechat.protobuf.OpenIMContact.Builder.class);
}
// Construct using wechat.protobuf.OpenIMContact.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCustomInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
tpUsername_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
nickname_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
remark_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
bigHeadimg_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
smallHeadimg_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
source_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
nicknamePyinit_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
nicknameQuanpin_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
remarkPyinit_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
remarkQuanpin_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
if (customInfoBuilder_ == null) {
customInfo_ = null;
} else {
customInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
antispamTicket_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
appId_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
sex_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
descWordingId_ = "";
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_OpenIMContact_descriptor;
}
@java.lang.Override
public wechat.protobuf.OpenIMContact getDefaultInstanceForType() {
return wechat.protobuf.OpenIMContact.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.OpenIMContact build() {
wechat.protobuf.OpenIMContact result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.OpenIMContact buildPartial() {
wechat.protobuf.OpenIMContact result = new wechat.protobuf.OpenIMContact(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.tpUsername_ = tpUsername_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.nickname_ = nickname_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.remark_ = remark_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.bigHeadimg_ = bigHeadimg_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.smallHeadimg_ = smallHeadimg_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.nicknamePyinit_ = nicknamePyinit_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.nicknameQuanpin_ = nicknameQuanpin_;
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.remarkPyinit_ = remarkPyinit_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.remarkQuanpin_ = remarkQuanpin_;
if (((from_bitField0_ & 0x00000800) != 0)) {
if (customInfoBuilder_ == null) {
result.customInfo_ = customInfo_;
} else {
result.customInfo_ = customInfoBuilder_.build();
}
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.antispamTicket_ = antispamTicket_;
if (((from_bitField0_ & 0x00002000) != 0)) {
to_bitField0_ |= 0x00002000;
}
result.appId_ = appId_;
if (((from_bitField0_ & 0x00004000) != 0)) {
result.sex_ = sex_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
to_bitField0_ |= 0x00008000;
}
result.descWordingId_ = descWordingId_;
result.bitField0_ = to_bitField0_;
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 wechat.protobuf.OpenIMContact) {
return mergeFrom((wechat.protobuf.OpenIMContact)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.OpenIMContact other) {
if (other == wechat.protobuf.OpenIMContact.getDefaultInstance()) return this;
if (other.hasTpUsername()) {
bitField0_ |= 0x00000001;
tpUsername_ = other.tpUsername_;
onChanged();
}
if (other.hasNickname()) {
bitField0_ |= 0x00000002;
nickname_ = other.nickname_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasRemark()) {
bitField0_ |= 0x00000008;
remark_ = other.remark_;
onChanged();
}
if (other.hasBigHeadimg()) {
bitField0_ |= 0x00000010;
bigHeadimg_ = other.bigHeadimg_;
onChanged();
}
if (other.hasSmallHeadimg()) {
bitField0_ |= 0x00000020;
smallHeadimg_ = other.smallHeadimg_;
onChanged();
}
if (other.hasSource()) {
setSource(other.getSource());
}
if (other.hasNicknamePyinit()) {
bitField0_ |= 0x00000080;
nicknamePyinit_ = other.nicknamePyinit_;
onChanged();
}
if (other.hasNicknameQuanpin()) {
bitField0_ |= 0x00000100;
nicknameQuanpin_ = other.nicknameQuanpin_;
onChanged();
}
if (other.hasRemarkPyinit()) {
bitField0_ |= 0x00000200;
remarkPyinit_ = other.remarkPyinit_;
onChanged();
}
if (other.hasRemarkQuanpin()) {
bitField0_ |= 0x00000400;
remarkQuanpin_ = other.remarkQuanpin_;
onChanged();
}
if (other.hasCustomInfo()) {
mergeCustomInfo(other.getCustomInfo());
}
if (other.hasAntispamTicket()) {
bitField0_ |= 0x00001000;
antispamTicket_ = other.antispamTicket_;
onChanged();
}
if (other.hasAppId()) {
bitField0_ |= 0x00002000;
appId_ = other.appId_;
onChanged();
}
if (other.hasSex()) {
setSex(other.getSex());
}
if (other.hasDescWordingId()) {
bitField0_ |= 0x00008000;
descWordingId_ = other.descWordingId_;
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 {
wechat.protobuf.OpenIMContact parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.OpenIMContact) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object tpUsername_ = "";
/**
* optional string tp_username = 1;
* @return Whether the tpUsername field is set.
*/
public boolean hasTpUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string tp_username = 1;
* @return The tpUsername.
*/
public java.lang.String getTpUsername() {
java.lang.Object ref = tpUsername_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
tpUsername_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string tp_username = 1;
* @return The bytes for tpUsername.
*/
public com.google.protobuf.ByteString
getTpUsernameBytes() {
java.lang.Object ref = tpUsername_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tpUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string tp_username = 1;
* @param value The tpUsername to set.
* @return This builder for chaining.
*/
public Builder setTpUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tpUsername_ = value;
onChanged();
return this;
}
/**
* optional string tp_username = 1;
* @return This builder for chaining.
*/
public Builder clearTpUsername() {
bitField0_ = (bitField0_ & ~0x00000001);
tpUsername_ = getDefaultInstance().getTpUsername();
onChanged();
return this;
}
/**
* optional string tp_username = 1;
* @param value The bytes for tpUsername to set.
* @return This builder for chaining.
*/
public Builder setTpUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
tpUsername_ = value;
onChanged();
return this;
}
private java.lang.Object nickname_ = "";
/**
* optional string nickname = 2;
* @return Whether the nickname field is set.
*/
public boolean hasNickname() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string nickname = 2;
* @return The nickname.
*/
public java.lang.String getNickname() {
java.lang.Object ref = nickname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nickname_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string nickname = 2;
* @return The bytes for nickname.
*/
public com.google.protobuf.ByteString
getNicknameBytes() {
java.lang.Object ref = nickname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string nickname = 2;
* @param value The nickname to set.
* @return This builder for chaining.
*/
public Builder setNickname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nickname_ = value;
onChanged();
return this;
}
/**
* optional string nickname = 2;
* @return This builder for chaining.
*/
public Builder clearNickname() {
bitField0_ = (bitField0_ & ~0x00000002);
nickname_ = getDefaultInstance().getNickname();
onChanged();
return this;
}
/**
* optional string nickname = 2;
* @param value The bytes for nickname to set.
* @return This builder for chaining.
*/
public Builder setNicknameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nickname_ = value;
onChanged();
return this;
}
private int type_ ;
/**
* optional uint32 type = 3;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 type = 3;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
/**
* optional uint32 type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(int value) {
bitField0_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
/**
* optional uint32 type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
private java.lang.Object remark_ = "";
/**
* optional string remark = 4;
* @return Whether the remark field is set.
*/
public boolean hasRemark() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string remark = 4;
* @return The remark.
*/
public java.lang.String getRemark() {
java.lang.Object ref = remark_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
remark_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string remark = 4;
* @return The bytes for remark.
*/
public com.google.protobuf.ByteString
getRemarkBytes() {
java.lang.Object ref = remark_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remark_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string remark = 4;
* @param value The remark to set.
* @return This builder for chaining.
*/
public Builder setRemark(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
remark_ = value;
onChanged();
return this;
}
/**
* optional string remark = 4;
* @return This builder for chaining.
*/
public Builder clearRemark() {
bitField0_ = (bitField0_ & ~0x00000008);
remark_ = getDefaultInstance().getRemark();
onChanged();
return this;
}
/**
* optional string remark = 4;
* @param value The bytes for remark to set.
* @return This builder for chaining.
*/
public Builder setRemarkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
remark_ = value;
onChanged();
return this;
}
private java.lang.Object bigHeadimg_ = "";
/**
* optional string big_headimg = 5;
* @return Whether the bigHeadimg field is set.
*/
public boolean hasBigHeadimg() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string big_headimg = 5;
* @return The bigHeadimg.
*/
public java.lang.String getBigHeadimg() {
java.lang.Object ref = bigHeadimg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
bigHeadimg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string big_headimg = 5;
* @return The bytes for bigHeadimg.
*/
public com.google.protobuf.ByteString
getBigHeadimgBytes() {
java.lang.Object ref = bigHeadimg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bigHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string big_headimg = 5;
* @param value The bigHeadimg to set.
* @return This builder for chaining.
*/
public Builder setBigHeadimg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
bigHeadimg_ = value;
onChanged();
return this;
}
/**
* optional string big_headimg = 5;
* @return This builder for chaining.
*/
public Builder clearBigHeadimg() {
bitField0_ = (bitField0_ & ~0x00000010);
bigHeadimg_ = getDefaultInstance().getBigHeadimg();
onChanged();
return this;
}
/**
* optional string big_headimg = 5;
* @param value The bytes for bigHeadimg to set.
* @return This builder for chaining.
*/
public Builder setBigHeadimgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
bigHeadimg_ = value;
onChanged();
return this;
}
private java.lang.Object smallHeadimg_ = "";
/**
* optional string small_headimg = 6;
* @return Whether the smallHeadimg field is set.
*/
public boolean hasSmallHeadimg() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string small_headimg = 6;
* @return The smallHeadimg.
*/
public java.lang.String getSmallHeadimg() {
java.lang.Object ref = smallHeadimg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
smallHeadimg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string small_headimg = 6;
* @return The bytes for smallHeadimg.
*/
public com.google.protobuf.ByteString
getSmallHeadimgBytes() {
java.lang.Object ref = smallHeadimg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
smallHeadimg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string small_headimg = 6;
* @param value The smallHeadimg to set.
* @return This builder for chaining.
*/
public Builder setSmallHeadimg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
smallHeadimg_ = value;
onChanged();
return this;
}
/**
* optional string small_headimg = 6;
* @return This builder for chaining.
*/
public Builder clearSmallHeadimg() {
bitField0_ = (bitField0_ & ~0x00000020);
smallHeadimg_ = getDefaultInstance().getSmallHeadimg();
onChanged();
return this;
}
/**
* optional string small_headimg = 6;
* @param value The bytes for smallHeadimg to set.
* @return This builder for chaining.
*/
public Builder setSmallHeadimgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
smallHeadimg_ = value;
onChanged();
return this;
}
private int source_ ;
/**
* optional uint32 source = 7;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 source = 7;
* @return The source.
*/
@java.lang.Override
public int getSource() {
return source_;
}
/**
* optional uint32 source = 7;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(int value) {
bitField0_ |= 0x00000040;
source_ = value;
onChanged();
return this;
}
/**
* optional uint32 source = 7;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000040);
source_ = 0;
onChanged();
return this;
}
private java.lang.Object nicknamePyinit_ = "";
/**
* optional string nickname_pyinit = 8;
* @return Whether the nicknamePyinit field is set.
*/
public boolean hasNicknamePyinit() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string nickname_pyinit = 8;
* @return The nicknamePyinit.
*/
public java.lang.String getNicknamePyinit() {
java.lang.Object ref = nicknamePyinit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nicknamePyinit_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string nickname_pyinit = 8;
* @return The bytes for nicknamePyinit.
*/
public com.google.protobuf.ByteString
getNicknamePyinitBytes() {
java.lang.Object ref = nicknamePyinit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nicknamePyinit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string nickname_pyinit = 8;
* @param value The nicknamePyinit to set.
* @return This builder for chaining.
*/
public Builder setNicknamePyinit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
nicknamePyinit_ = value;
onChanged();
return this;
}
/**
* optional string nickname_pyinit = 8;
* @return This builder for chaining.
*/
public Builder clearNicknamePyinit() {
bitField0_ = (bitField0_ & ~0x00000080);
nicknamePyinit_ = getDefaultInstance().getNicknamePyinit();
onChanged();
return this;
}
/**
* optional string nickname_pyinit = 8;
* @param value The bytes for nicknamePyinit to set.
* @return This builder for chaining.
*/
public Builder setNicknamePyinitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
nicknamePyinit_ = value;
onChanged();
return this;
}
private java.lang.Object nicknameQuanpin_ = "";
/**
* optional string nickname_quanpin = 9;
* @return Whether the nicknameQuanpin field is set.
*/
public boolean hasNicknameQuanpin() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string nickname_quanpin = 9;
* @return The nicknameQuanpin.
*/
public java.lang.String getNicknameQuanpin() {
java.lang.Object ref = nicknameQuanpin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nicknameQuanpin_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string nickname_quanpin = 9;
* @return The bytes for nicknameQuanpin.
*/
public com.google.protobuf.ByteString
getNicknameQuanpinBytes() {
java.lang.Object ref = nicknameQuanpin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nicknameQuanpin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string nickname_quanpin = 9;
* @param value The nicknameQuanpin to set.
* @return This builder for chaining.
*/
public Builder setNicknameQuanpin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
nicknameQuanpin_ = value;
onChanged();
return this;
}
/**
* optional string nickname_quanpin = 9;
* @return This builder for chaining.
*/
public Builder clearNicknameQuanpin() {
bitField0_ = (bitField0_ & ~0x00000100);
nicknameQuanpin_ = getDefaultInstance().getNicknameQuanpin();
onChanged();
return this;
}
/**
* optional string nickname_quanpin = 9;
* @param value The bytes for nicknameQuanpin to set.
* @return This builder for chaining.
*/
public Builder setNicknameQuanpinBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
nicknameQuanpin_ = value;
onChanged();
return this;
}
private java.lang.Object remarkPyinit_ = "";
/**
* optional string remark_pyinit = 10;
* @return Whether the remarkPyinit field is set.
*/
public boolean hasRemarkPyinit() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string remark_pyinit = 10;
* @return The remarkPyinit.
*/
public java.lang.String getRemarkPyinit() {
java.lang.Object ref = remarkPyinit_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
remarkPyinit_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string remark_pyinit = 10;
* @return The bytes for remarkPyinit.
*/
public com.google.protobuf.ByteString
getRemarkPyinitBytes() {
java.lang.Object ref = remarkPyinit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remarkPyinit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string remark_pyinit = 10;
* @param value The remarkPyinit to set.
* @return This builder for chaining.
*/
public Builder setRemarkPyinit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
remarkPyinit_ = value;
onChanged();
return this;
}
/**
* optional string remark_pyinit = 10;
* @return This builder for chaining.
*/
public Builder clearRemarkPyinit() {
bitField0_ = (bitField0_ & ~0x00000200);
remarkPyinit_ = getDefaultInstance().getRemarkPyinit();
onChanged();
return this;
}
/**
* optional string remark_pyinit = 10;
* @param value The bytes for remarkPyinit to set.
* @return This builder for chaining.
*/
public Builder setRemarkPyinitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
remarkPyinit_ = value;
onChanged();
return this;
}
private java.lang.Object remarkQuanpin_ = "";
/**
* optional string remark_quanpin = 11;
* @return Whether the remarkQuanpin field is set.
*/
public boolean hasRemarkQuanpin() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string remark_quanpin = 11;
* @return The remarkQuanpin.
*/
public java.lang.String getRemarkQuanpin() {
java.lang.Object ref = remarkQuanpin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
remarkQuanpin_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string remark_quanpin = 11;
* @return The bytes for remarkQuanpin.
*/
public com.google.protobuf.ByteString
getRemarkQuanpinBytes() {
java.lang.Object ref = remarkQuanpin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remarkQuanpin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string remark_quanpin = 11;
* @param value The remarkQuanpin to set.
* @return This builder for chaining.
*/
public Builder setRemarkQuanpin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
remarkQuanpin_ = value;
onChanged();
return this;
}
/**
* optional string remark_quanpin = 11;
* @return This builder for chaining.
*/
public Builder clearRemarkQuanpin() {
bitField0_ = (bitField0_ & ~0x00000400);
remarkQuanpin_ = getDefaultInstance().getRemarkQuanpin();
onChanged();
return this;
}
/**
* optional string remark_quanpin = 11;
* @param value The bytes for remarkQuanpin to set.
* @return This builder for chaining.
*/
public Builder setRemarkQuanpinBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
remarkQuanpin_ = value;
onChanged();
return this;
}
private wechat.protobuf.OpenIMContactCustomInfo customInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.OpenIMContactCustomInfo, wechat.protobuf.OpenIMContactCustomInfo.Builder, wechat.protobuf.OpenIMContactCustomInfoOrBuilder> customInfoBuilder_;
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
* @return Whether the customInfo field is set.
*/
public boolean hasCustomInfo() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
* @return The customInfo.
*/
public wechat.protobuf.OpenIMContactCustomInfo getCustomInfo() {
if (customInfoBuilder_ == null) {
return customInfo_ == null ? wechat.protobuf.OpenIMContactCustomInfo.getDefaultInstance() : customInfo_;
} else {
return customInfoBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
public Builder setCustomInfo(wechat.protobuf.OpenIMContactCustomInfo value) {
if (customInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
customInfo_ = value;
onChanged();
} else {
customInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
public Builder setCustomInfo(
wechat.protobuf.OpenIMContactCustomInfo.Builder builderForValue) {
if (customInfoBuilder_ == null) {
customInfo_ = builderForValue.build();
onChanged();
} else {
customInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
public Builder mergeCustomInfo(wechat.protobuf.OpenIMContactCustomInfo value) {
if (customInfoBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
customInfo_ != null &&
customInfo_ != wechat.protobuf.OpenIMContactCustomInfo.getDefaultInstance()) {
customInfo_ =
wechat.protobuf.OpenIMContactCustomInfo.newBuilder(customInfo_).mergeFrom(value).buildPartial();
} else {
customInfo_ = value;
}
onChanged();
} else {
customInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
public Builder clearCustomInfo() {
if (customInfoBuilder_ == null) {
customInfo_ = null;
onChanged();
} else {
customInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
public wechat.protobuf.OpenIMContactCustomInfo.Builder getCustomInfoBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getCustomInfoFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
public wechat.protobuf.OpenIMContactCustomInfoOrBuilder getCustomInfoOrBuilder() {
if (customInfoBuilder_ != null) {
return customInfoBuilder_.getMessageOrBuilder();
} else {
return customInfo_ == null ?
wechat.protobuf.OpenIMContactCustomInfo.getDefaultInstance() : customInfo_;
}
}
/**
* optional .wechat_proto.OpenIMContactCustomInfo custom_info = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.OpenIMContactCustomInfo, wechat.protobuf.OpenIMContactCustomInfo.Builder, wechat.protobuf.OpenIMContactCustomInfoOrBuilder>
getCustomInfoFieldBuilder() {
if (customInfoBuilder_ == null) {
customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.OpenIMContactCustomInfo, wechat.protobuf.OpenIMContactCustomInfo.Builder, wechat.protobuf.OpenIMContactCustomInfoOrBuilder>(
getCustomInfo(),
getParentForChildren(),
isClean());
customInfo_ = null;
}
return customInfoBuilder_;
}
private java.lang.Object antispamTicket_ = "";
/**
* optional string antispam_ticket = 13;
* @return Whether the antispamTicket field is set.
*/
public boolean hasAntispamTicket() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional string antispam_ticket = 13;
* @return The antispamTicket.
*/
public java.lang.String getAntispamTicket() {
java.lang.Object ref = antispamTicket_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
antispamTicket_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string antispam_ticket = 13;
* @return The bytes for antispamTicket.
*/
public com.google.protobuf.ByteString
getAntispamTicketBytes() {
java.lang.Object ref = antispamTicket_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
antispamTicket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string antispam_ticket = 13;
* @param value The antispamTicket to set.
* @return This builder for chaining.
*/
public Builder setAntispamTicket(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
antispamTicket_ = value;
onChanged();
return this;
}
/**
* optional string antispam_ticket = 13;
* @return This builder for chaining.
*/
public Builder clearAntispamTicket() {
bitField0_ = (bitField0_ & ~0x00001000);
antispamTicket_ = getDefaultInstance().getAntispamTicket();
onChanged();
return this;
}
/**
* optional string antispam_ticket = 13;
* @param value The bytes for antispamTicket to set.
* @return This builder for chaining.
*/
public Builder setAntispamTicketBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
antispamTicket_ = value;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
* optional string app_id = 14;
* @return Whether the appId field is set.
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional string app_id = 14;
* @return The appId.
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
appId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string app_id = 14;
* @return The bytes for appId.
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string app_id = 14;
* @param value The appId to set.
* @return This builder for chaining.
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
appId_ = value;
onChanged();
return this;
}
/**
* optional string app_id = 14;
* @return This builder for chaining.
*/
public Builder clearAppId() {
bitField0_ = (bitField0_ & ~0x00002000);
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
* optional string app_id = 14;
* @param value The bytes for appId to set.
* @return This builder for chaining.
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
appId_ = value;
onChanged();
return this;
}
private int sex_ ;
/**
* optional uint32 sex = 15;
* @return Whether the sex field is set.
*/
@java.lang.Override
public boolean hasSex() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional uint32 sex = 15;
* @return The sex.
*/
@java.lang.Override
public int getSex() {
return sex_;
}
/**
* optional uint32 sex = 15;
* @param value The sex to set.
* @return This builder for chaining.
*/
public Builder setSex(int value) {
bitField0_ |= 0x00004000;
sex_ = value;
onChanged();
return this;
}
/**
* optional uint32 sex = 15;
* @return This builder for chaining.
*/
public Builder clearSex() {
bitField0_ = (bitField0_ & ~0x00004000);
sex_ = 0;
onChanged();
return this;
}
private java.lang.Object descWordingId_ = "";
/**
* optional string desc_wording_id = 16;
* @return Whether the descWordingId field is set.
*/
public boolean hasDescWordingId() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional string desc_wording_id = 16;
* @return The descWordingId.
*/
public java.lang.String getDescWordingId() {
java.lang.Object ref = descWordingId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
descWordingId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string desc_wording_id = 16;
* @return The bytes for descWordingId.
*/
public com.google.protobuf.ByteString
getDescWordingIdBytes() {
java.lang.Object ref = descWordingId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
descWordingId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string desc_wording_id = 16;
* @param value The descWordingId to set.
* @return This builder for chaining.
*/
public Builder setDescWordingId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
descWordingId_ = value;
onChanged();
return this;
}
/**
* optional string desc_wording_id = 16;
* @return This builder for chaining.
*/
public Builder clearDescWordingId() {
bitField0_ = (bitField0_ & ~0x00008000);
descWordingId_ = getDefaultInstance().getDescWordingId();
onChanged();
return this;
}
/**
* optional string desc_wording_id = 16;
* @param value The bytes for descWordingId to set.
* @return This builder for chaining.
*/
public Builder setDescWordingIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
descWordingId_ = 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:wechat_proto.OpenIMContact)
}
// @@protoc_insertion_point(class_scope:wechat_proto.OpenIMContact)
private static final wechat.protobuf.OpenIMContact DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.OpenIMContact();
}
public static wechat.protobuf.OpenIMContact getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OpenIMContact parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OpenIMContact(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public wechat.protobuf.OpenIMContact getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy