WindChat/windchat-protobuf/src/main/java/com/akaxin/proto/site/ApiFriendProfileProto.java

1755 lines
60 KiB
Java
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 {
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
java.lang.String getUserIdPubk();
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
com.google.protobuf.ByteString
getUserIdPubkBytes();
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
java.lang.String getSiteUserId();
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
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_;
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
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;
}
}
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
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_;
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
public java.lang.String getSiteUserId() {
java.lang.Object ref = siteUserId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteUserId_ = s;
return s;
}
}
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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<Builder> implements
// @@protoc_insertion_point(builder_implements:site.ApiFriendProfileRequest)
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequestOrBuilder {
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);
}
// Construct using com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
userIdPubk_ = "";
siteUserId_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.site.ApiFriendProfileProto.internal_static_site_ApiFriendProfileRequest_descriptor;
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest getDefaultInstanceForType() {
return com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest.getDefaultInstance();
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest build() {
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest buildPartial() {
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest result = new com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest(this);
result.userIdPubk_ = userIdPubk_;
result.siteUserId_ = siteUserId_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest) {
return mergeFrom((com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest other) {
if (other == com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest.getDefaultInstance()) return this;
if (!other.getUserIdPubk().isEmpty()) {
userIdPubk_ = other.userIdPubk_;
onChanged();
}
if (!other.getSiteUserId().isEmpty()) {
siteUserId_ = other.siteUserId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object userIdPubk_ = "";
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
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;
}
}
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
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;
}
}
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
public Builder setUserIdPubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdPubk_ = value;
onChanged();
return this;
}
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
public Builder clearUserIdPubk() {
userIdPubk_ = getDefaultInstance().getUserIdPubk();
onChanged();
return this;
}
/**
* <pre>
*用户身份的公钥,站点优先使用此值
* </pre>
*
* <code>string user_id_pubk = 1;</code>
*/
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_ = "";
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
public java.lang.String getSiteUserId() {
java.lang.Object ref = siteUserId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
siteUserId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* <pre>
*用户在站点的ID用户公钥为空情况使用用户站点ID
* </pre>
*
* <code>string site_user_id = 2;</code>
*/
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<ApiFriendProfileRequest>
PARSER = new com.google.protobuf.AbstractParser<ApiFriendProfileRequest>() {
public ApiFriendProfileRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApiFriendProfileRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ApiFriendProfileRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ApiFriendProfileRequest> getParserForType() {
return PARSER;
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApiFriendProfileResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:site.ApiFriendProfileResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
boolean hasProfile();
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
com.akaxin.proto.core.UserProto.UserProfile getProfile();
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder();
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
int getRelationValue();
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
com.akaxin.proto.core.UserProto.UserRelation getRelation();
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
java.lang.String getUserIdPubk();
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
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_;
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
public boolean hasProfile() {
return profile_ != null;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserProfile getProfile() {
return profile_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder() {
return getProfile();
}
public static final int RELATION_FIELD_NUMBER = 2;
private int relation_;
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
public int getRelationValue() {
return relation_;
}
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
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_;
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
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;
}
}
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
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<Builder> implements
// @@protoc_insertion_point(builder_implements:site.ApiFriendProfileResponse)
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponseOrBuilder {
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);
}
// Construct using com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (profileBuilder_ == null) {
profile_ = null;
} else {
profile_ = null;
profileBuilder_ = null;
}
relation_ = 0;
userIdPubk_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.site.ApiFriendProfileProto.internal_static_site_ApiFriendProfileResponse_descriptor;
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse getDefaultInstanceForType() {
return com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse.getDefaultInstance();
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse build() {
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse buildPartial() {
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse result = new com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse(this);
if (profileBuilder_ == null) {
result.profile_ = profile_;
} else {
result.profile_ = profileBuilder_.build();
}
result.relation_ = relation_;
result.userIdPubk_ = userIdPubk_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse) {
return mergeFrom((com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse other) {
if (other == com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse.getDefaultInstance()) return this;
if (other.hasProfile()) {
mergeProfile(other.getProfile());
}
if (other.relation_ != 0) {
setRelationValue(other.getRelationValue());
}
if (!other.getUserIdPubk().isEmpty()) {
userIdPubk_ = other.userIdPubk_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.akaxin.proto.core.UserProto.UserProfile profile_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder> profileBuilder_;
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
public boolean hasProfile() {
return profileBuilder_ != null || profile_ != null;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
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();
}
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
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;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
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;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
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;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
profile_ = null;
onChanged();
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserProfile.Builder getProfileBuilder() {
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
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_;
}
}
/**
* <pre>
*用户好友的信息
* </pre>
*
* <code>.core.UserProfile profile = 1;</code>
*/
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;
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
public int getRelationValue() {
return relation_;
}
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
public Builder setRelationValue(int value) {
relation_ = value;
onChanged();
return this;
}
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
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;
}
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
public Builder setRelation(com.akaxin.proto.core.UserProto.UserRelation value) {
if (value == null) {
throw new NullPointerException();
}
relation_ = value.getNumber();
onChanged();
return this;
}
/**
* <pre>
*用户之间的关系
* </pre>
*
* <code>.core.UserRelation relation = 2;</code>
*/
public Builder clearRelation() {
relation_ = 0;
onChanged();
return this;
}
private java.lang.Object userIdPubk_ = "";
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
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;
}
}
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
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;
}
}
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
public Builder setUserIdPubk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdPubk_ = value;
onChanged();
return this;
}
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
public Builder clearUserIdPubk() {
userIdPubk_ = getDefaultInstance().getUserIdPubk();
onChanged();
return this;
}
/**
* <pre>
*用户公钥,客户端称呼用户身份或者用户证书
* </pre>
*
* <code>string user_id_pubk = 3;</code>
*/
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<ApiFriendProfileResponse>
PARSER = new com.google.protobuf.AbstractParser<ApiFriendProfileResponse>() {
public ApiFriendProfileResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApiFriendProfileResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ApiFriendProfileResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ApiFriendProfileResponse> getParserForType() {
return PARSER;
}
public com.akaxin.proto.site.ApiFriendProfileProto.ApiFriendProfileResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_site_ApiFriendProfileRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_site_ApiFriendProfileRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_site_ApiFriendProfileResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_site_ApiFriendProfileResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\035site/api_friend_profile.proto\022\004site\032\017c" +
"ore/user.proto\"E\n\027ApiFriendProfileReques" +
"t\022\024\n\014user_id_pubk\030\001 \001(\t\022\024\n\014site_user_id\030" +
"\002 \001(\t\"z\n\030ApiFriendProfileResponse\022\"\n\007pro" +
"file\030\001 \001(\0132\021.core.UserProfile\022$\n\010relatio" +
"n\030\002 \001(\0162\022.core.UserRelation\022\024\n\014user_id_p" +
"ubk\030\003 \001(\t2c\n\027ApiFriendProfileService\022H\n\007" +
"profile\022\035.site.ApiFriendProfileRequest\032\036" +
".site.ApiFriendProfileResponseB.\n\025com.ak" +
"axin.proto.siteB\025ApiFriendProfileProtob\006" +
"proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.akaxin.proto.core.UserProto.getDescriptor(),
}, assigner);
internal_static_site_ApiFriendProfileRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_site_ApiFriendProfileRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_site_ApiFriendProfileRequest_descriptor,
new java.lang.String[] { "UserIdPubk", "SiteUserId", });
internal_static_site_ApiFriendProfileResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_site_ApiFriendProfileResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_site_ApiFriendProfileResponse_descriptor,
new java.lang.String[] { "Profile", "Relation", "UserIdPubk", });
com.akaxin.proto.core.UserProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}