// Generated by the protocol buffer compiler. DO NOT EDIT! // source: site/api_friend_profile.proto package com.akaxin.proto.site; public final class ApiFriendProfileProto { private ApiFriendProfileProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ApiFriendProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:site.ApiFriendProfileRequest) com.google.protobuf.MessageOrBuilder { /** *
*用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
java.lang.String getUserIdPubk();
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
com.google.protobuf.ByteString
getUserIdPubkBytes();
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
java.lang.String getSiteUserId();
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
com.google.protobuf.ByteString
getSiteUserIdBytes();
}
/**
* Protobuf type {@code site.ApiFriendProfileRequest}
*/
public static final class ApiFriendProfileRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:site.ApiFriendProfileRequest)
ApiFriendProfileRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiFriendProfileRequest.newBuilder() to construct.
private ApiFriendProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiFriendProfileRequest() {
userIdPubk_ = "";
siteUserId_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiFriendProfileRequest(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
userIdPubk_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
siteUserId_ = s;
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.site.ApiFriendProfileProto.internal_static_site_ApiFriendProfileRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.site.ApiFriendProfileProto.internal_static_site_ApiFriendProfileRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest.class, com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest.Builder.class);
}
public static final int USER_ID_PUBK_FIELD_NUMBER = 1;
private volatile java.lang.Object userIdPubk_;
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public java.lang.String getUserIdPubk() {
java.lang.Object ref = userIdPubk_;
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();
userIdPubk_ = s;
return s;
}
}
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public com.google.protobuf.ByteString
getUserIdPubkBytes() {
java.lang.Object ref = userIdPubk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userIdPubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SITE_USER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object siteUserId_;
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
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;
}
}
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
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;
}
}
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 (!getUserIdPubkBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userIdPubk_);
}
if (!getSiteUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, siteUserId_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUserIdPubkBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userIdPubk_);
}
if (!getSiteUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, siteUserId_);
}
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.site.ApiFriendProfileProto.ApiFriendProfileRequest)) {
return super.equals(obj);
}
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest other = (com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest) obj;
boolean result = true;
result = result && getUserIdPubk()
.equals(other.getUserIdPubk());
result = result && getSiteUserId()
.equals(other.getSiteUserId());
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) + USER_ID_PUBK_FIELD_NUMBER;
hash = (53 * hash) + getUserIdPubk().hashCode();
hash = (37 * hash) + SITE_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSiteUserId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest 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.site.ApiFriendProfileProto.ApiFriendProfileRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest 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.site.ApiFriendProfileProto.ApiFriendProfileRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest 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.site.ApiFriendProfileProto.ApiFriendProfileRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest 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.site.ApiFriendProfileProto.ApiFriendProfileRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest 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.site.ApiFriendProfileProto.ApiFriendProfileRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code site.ApiFriendProfileRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public java.lang.String getUserIdPubk() {
java.lang.Object ref = userIdPubk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userIdPubk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public com.google.protobuf.ByteString
getUserIdPubkBytes() {
java.lang.Object ref = userIdPubk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userIdPubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public Builder setUserIdPubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdPubk_ = value;
onChanged();
return this;
}
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public Builder clearUserIdPubk() {
userIdPubk_ = getDefaultInstance().getUserIdPubk();
onChanged();
return this;
}
/**
* *用户身份的公钥,站点优先使用此值 ** *
string user_id_pubk = 1;
*/
public Builder setUserIdPubkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userIdPubk_ = value;
onChanged();
return this;
}
private java.lang.Object siteUserId_ = "";
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
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;
}
}
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
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;
}
}
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* *用户在站点的ID,用户公钥为空情况,使用用户站点ID ** *
string site_user_id = 2;
*/
public Builder setSiteUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteUserId_ = value;
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:site.ApiFriendProfileRequest)
}
// @@protoc_insertion_point(class_scope:site.ApiFriendProfileRequest)
private static final com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest();
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser*用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
boolean hasProfile();
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
com.akaxin.proto.core.UserProto.UserProfile getProfile();
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder();
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
int getRelationValue();
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
com.akaxin.proto.core.UserProto.UserRelation getRelation();
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
java.lang.String getUserIdPubk();
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
com.google.protobuf.ByteString
getUserIdPubkBytes();
}
/**
* Protobuf type {@code site.ApiFriendProfileResponse}
*/
public static final class ApiFriendProfileResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:site.ApiFriendProfileResponse)
ApiFriendProfileResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiFriendProfileResponse.newBuilder() to construct.
private ApiFriendProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiFriendProfileResponse() {
relation_ = 0;
userIdPubk_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiFriendProfileResponse(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.akaxin.proto.core.UserProto.UserProfile.Builder subBuilder = null;
if (profile_ != null) {
subBuilder = profile_.toBuilder();
}
profile_ = input.readMessage(com.akaxin.proto.core.UserProto.UserProfile.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(profile_);
profile_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
relation_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
userIdPubk_ = s;
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.site.ApiFriendProfileProto.internal_static_site_ApiFriendProfileResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.site.ApiFriendProfileProto.internal_static_site_ApiFriendProfileResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse.class, com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse.Builder.class);
}
public static final int PROFILE_FIELD_NUMBER = 1;
private com.akaxin.proto.core.UserProto.UserProfile profile_;
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public boolean hasProfile() {
return profile_ != null;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfile getProfile() {
return profile_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder() {
return getProfile();
}
public static final int RELATION_FIELD_NUMBER = 2;
private int relation_;
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public int getRelationValue() {
return relation_;
}
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public com.akaxin.proto.core.UserProto.UserRelation getRelation() {
com.akaxin.proto.core.UserProto.UserRelation result = com.akaxin.proto.core.UserProto.UserRelation.valueOf(relation_);
return result == null ? com.akaxin.proto.core.UserProto.UserRelation.UNRECOGNIZED : result;
}
public static final int USER_ID_PUBK_FIELD_NUMBER = 3;
private volatile java.lang.Object userIdPubk_;
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public java.lang.String getUserIdPubk() {
java.lang.Object ref = userIdPubk_;
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();
userIdPubk_ = s;
return s;
}
}
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public com.google.protobuf.ByteString
getUserIdPubkBytes() {
java.lang.Object ref = userIdPubk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userIdPubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (profile_ != null) {
output.writeMessage(1, getProfile());
}
if (relation_ != com.akaxin.proto.core.UserProto.UserRelation.RELATION_NONE.getNumber()) {
output.writeEnum(2, relation_);
}
if (!getUserIdPubkBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userIdPubk_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (profile_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getProfile());
}
if (relation_ != com.akaxin.proto.core.UserProto.UserRelation.RELATION_NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, relation_);
}
if (!getUserIdPubkBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userIdPubk_);
}
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.site.ApiFriendProfileProto.ApiFriendProfileResponse)) {
return super.equals(obj);
}
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse other = (com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse) obj;
boolean result = true;
result = result && (hasProfile() == other.hasProfile());
if (hasProfile()) {
result = result && getProfile()
.equals(other.getProfile());
}
result = result && relation_ == other.relation_;
result = result && getUserIdPubk()
.equals(other.getUserIdPubk());
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();
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
hash = (37 * hash) + RELATION_FIELD_NUMBER;
hash = (53 * hash) + relation_;
hash = (37 * hash) + USER_ID_PUBK_FIELD_NUMBER;
hash = (53 * hash) + getUserIdPubk().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse 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.site.ApiFriendProfileProto.ApiFriendProfileResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse 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.site.ApiFriendProfileProto.ApiFriendProfileResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse 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.site.ApiFriendProfileProto.ApiFriendProfileResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse 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.site.ApiFriendProfileProto.ApiFriendProfileResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse 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.site.ApiFriendProfileProto.ApiFriendProfileResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code site.ApiFriendProfileResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public boolean hasProfile() {
return profileBuilder_ != null || profile_ != null;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfile getProfile() {
if (profileBuilder_ == null) {
return profile_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
} else {
return profileBuilder_.getMessage();
}
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public Builder setProfile(com.akaxin.proto.core.UserProto.UserProfile value) {
if (profileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profile_ = value;
onChanged();
} else {
profileBuilder_.setMessage(value);
}
return this;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public Builder setProfile(
com.akaxin.proto.core.UserProto.UserProfile.Builder builderForValue) {
if (profileBuilder_ == null) {
profile_ = builderForValue.build();
onChanged();
} else {
profileBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public Builder mergeProfile(com.akaxin.proto.core.UserProto.UserProfile value) {
if (profileBuilder_ == null) {
if (profile_ != null) {
profile_ =
com.akaxin.proto.core.UserProto.UserProfile.newBuilder(profile_).mergeFrom(value).buildPartial();
} else {
profile_ = value;
}
onChanged();
} else {
profileBuilder_.mergeFrom(value);
}
return this;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
profile_ = null;
onChanged();
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfile.Builder getProfileBuilder() {
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder() {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
return profile_ == null ?
com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
}
}
/**
* *用户好友的信息 ** *
.core.UserProfile profile = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder>(
getProfile(),
getParentForChildren(),
isClean());
profile_ = null;
}
return profileBuilder_;
}
private int relation_ = 0;
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public int getRelationValue() {
return relation_;
}
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public Builder setRelationValue(int value) {
relation_ = value;
onChanged();
return this;
}
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public com.akaxin.proto.core.UserProto.UserRelation getRelation() {
com.akaxin.proto.core.UserProto.UserRelation result = com.akaxin.proto.core.UserProto.UserRelation.valueOf(relation_);
return result == null ? com.akaxin.proto.core.UserProto.UserRelation.UNRECOGNIZED : result;
}
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public Builder setRelation(com.akaxin.proto.core.UserProto.UserRelation value) {
if (value == null) {
throw new NullPointerException();
}
relation_ = value.getNumber();
onChanged();
return this;
}
/**
* *用户之间的关系 ** *
.core.UserRelation relation = 2;
*/
public Builder clearRelation() {
relation_ = 0;
onChanged();
return this;
}
private java.lang.Object userIdPubk_ = "";
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public java.lang.String getUserIdPubk() {
java.lang.Object ref = userIdPubk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userIdPubk_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public com.google.protobuf.ByteString
getUserIdPubkBytes() {
java.lang.Object ref = userIdPubk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userIdPubk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public Builder setUserIdPubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdPubk_ = value;
onChanged();
return this;
}
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public Builder clearUserIdPubk() {
userIdPubk_ = getDefaultInstance().getUserIdPubk();
onChanged();
return this;
}
/**
* *用户公钥,客户端称呼用户身份或者用户证书 ** *
string user_id_pubk = 3;
*/
public Builder setUserIdPubkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userIdPubk_ = value;
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:site.ApiFriendProfileResponse)
}
// @@protoc_insertion_point(class_scope:site.ApiFriendProfileResponse)
private static final com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse();
}
public static com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser