WindChat/windchat-protobuf/src/main/java/com/akaxin/proto/plugin/HaiFriendRelationsProto.java

1753 lines
63 KiB
Java
Executable File

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: plugin/hai_friend_relations.proto
package com.akaxin.proto.plugin;
public final class HaiFriendRelationsProto {
private HaiFriendRelationsProto() {}
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 HaiFriendRelationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:plugin.HaiFriendRelationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string site_user_id = 1;</code>
*/
java.lang.String getSiteUserId();
/**
* <code>string site_user_id = 1;</code>
*/
com.google.protobuf.ByteString
getSiteUserIdBytes();
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
java.util.List<java.lang.String>
getTargetSiteUserIdList();
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
int getTargetSiteUserIdCount();
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
java.lang.String getTargetSiteUserId(int index);
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
com.google.protobuf.ByteString
getTargetSiteUserIdBytes(int index);
}
/**
* <pre>
**
*获取某用户与其他用户的好友关系
*----
*接口名
*----
* /hai/friend/relations
*错误码
*----
* success
* error.alert
* </pre>
*
* Protobuf type {@code plugin.HaiFriendRelationsRequest}
*/
public static final class HaiFriendRelationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:plugin.HaiFriendRelationsRequest)
HaiFriendRelationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use HaiFriendRelationsRequest.newBuilder() to construct.
private HaiFriendRelationsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HaiFriendRelationsRequest() {
siteUserId_ = "";
targetSiteUserId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HaiFriendRelationsRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
siteUserId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
targetSiteUserId_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
targetSiteUserId_.add(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 {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
targetSiteUserId_ = targetSiteUserId_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.class, com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.Builder.class);
}
private int bitField0_;
public static final int SITE_USER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object siteUserId_;
/**
* <code>string site_user_id = 1;</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;
}
}
/**
* <code>string site_user_id = 1;</code>
*/
public com.google.protobuf.ByteString
getSiteUserIdBytes() {
java.lang.Object ref = siteUserId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
siteUserId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_SITE_USER_ID_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList targetSiteUserId_;
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public com.google.protobuf.ProtocolStringList
getTargetSiteUserIdList() {
return targetSiteUserId_;
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public int getTargetSiteUserIdCount() {
return targetSiteUserId_.size();
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public java.lang.String getTargetSiteUserId(int index) {
return targetSiteUserId_.get(index);
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public com.google.protobuf.ByteString
getTargetSiteUserIdBytes(int index) {
return targetSiteUserId_.getByteString(index);
}
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 (!getSiteUserIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, siteUserId_);
}
for (int i = 0; i < targetSiteUserId_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetSiteUserId_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSiteUserIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, siteUserId_);
}
{
int dataSize = 0;
for (int i = 0; i < targetSiteUserId_.size(); i++) {
dataSize += computeStringSizeNoTag(targetSiteUserId_.getRaw(i));
}
size += dataSize;
size += 1 * getTargetSiteUserIdList().size();
}
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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest)) {
return super.equals(obj);
}
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest other = (com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest) obj;
boolean result = true;
result = result && getSiteUserId()
.equals(other.getSiteUserId());
result = result && getTargetSiteUserIdList()
.equals(other.getTargetSiteUserIdList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SITE_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getSiteUserId().hashCode();
if (getTargetSiteUserIdCount() > 0) {
hash = (37 * hash) + TARGET_SITE_USER_ID_FIELD_NUMBER;
hash = (53 * hash) + getTargetSiteUserIdList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
**
*获取某用户与其他用户的好友关系
*----
*接口名
*----
* /hai/friend/relations
*错误码
*----
* success
* error.alert
* </pre>
*
* Protobuf type {@code plugin.HaiFriendRelationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:plugin.HaiFriendRelationsRequest)
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.class, com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.Builder.class);
}
// Construct using com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.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();
siteUserId_ = "";
targetSiteUserId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsRequest_descriptor;
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest getDefaultInstanceForType() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.getDefaultInstance();
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest build() {
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest buildPartial() {
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest result = new com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.siteUserId_ = siteUserId_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
targetSiteUserId_ = targetSiteUserId_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.targetSiteUserId_ = targetSiteUserId_;
result.bitField0_ = to_bitField0_;
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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest) {
return mergeFrom((com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest other) {
if (other == com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest.getDefaultInstance()) return this;
if (!other.getSiteUserId().isEmpty()) {
siteUserId_ = other.siteUserId_;
onChanged();
}
if (!other.targetSiteUserId_.isEmpty()) {
if (targetSiteUserId_.isEmpty()) {
targetSiteUserId_ = other.targetSiteUserId_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureTargetSiteUserIdIsMutable();
targetSiteUserId_.addAll(other.targetSiteUserId_);
}
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.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object siteUserId_ = "";
/**
* <code>string site_user_id = 1;</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;
}
}
/**
* <code>string site_user_id = 1;</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;
}
}
/**
* <code>string site_user_id = 1;</code>
*/
public Builder setSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
siteUserId_ = value;
onChanged();
return this;
}
/**
* <code>string site_user_id = 1;</code>
*/
public Builder clearSiteUserId() {
siteUserId_ = getDefaultInstance().getSiteUserId();
onChanged();
return this;
}
/**
* <code>string site_user_id = 1;</code>
*/
public Builder setSiteUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
siteUserId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList targetSiteUserId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTargetSiteUserIdIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
targetSiteUserId_ = new com.google.protobuf.LazyStringArrayList(targetSiteUserId_);
bitField0_ |= 0x00000002;
}
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public com.google.protobuf.ProtocolStringList
getTargetSiteUserIdList() {
return targetSiteUserId_.getUnmodifiableView();
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public int getTargetSiteUserIdCount() {
return targetSiteUserId_.size();
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public java.lang.String getTargetSiteUserId(int index) {
return targetSiteUserId_.get(index);
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public com.google.protobuf.ByteString
getTargetSiteUserIdBytes(int index) {
return targetSiteUserId_.getByteString(index);
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public Builder setTargetSiteUserId(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetSiteUserIdIsMutable();
targetSiteUserId_.set(index, value);
onChanged();
return this;
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public Builder addTargetSiteUserId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetSiteUserIdIsMutable();
targetSiteUserId_.add(value);
onChanged();
return this;
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public Builder addAllTargetSiteUserId(
java.lang.Iterable<java.lang.String> values) {
ensureTargetSiteUserIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, targetSiteUserId_);
onChanged();
return this;
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public Builder clearTargetSiteUserId() {
targetSiteUserId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* <pre>
*需要查询关系的用户ID
* </pre>
*
* <code>repeated string target_site_user_id = 2;</code>
*/
public Builder addTargetSiteUserIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTargetSiteUserIdIsMutable();
targetSiteUserId_.add(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:plugin.HaiFriendRelationsRequest)
}
// @@protoc_insertion_point(class_scope:plugin.HaiFriendRelationsRequest)
private static final com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest();
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HaiFriendRelationsRequest>
PARSER = new com.google.protobuf.AbstractParser<HaiFriendRelationsRequest>() {
public HaiFriendRelationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HaiFriendRelationsRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HaiFriendRelationsRequest> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HaiFriendRelationsRequest> getParserForType() {
return PARSER;
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HaiFriendRelationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:plugin.HaiFriendRelationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
java.util.List<com.akaxin.proto.core.UserProto.UserRelationProfile>
getUserProfileList();
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
com.akaxin.proto.core.UserProto.UserRelationProfile getUserProfile(int index);
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
int getUserProfileCount();
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
java.util.List<? extends com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder>
getUserProfileOrBuilderList();
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder getUserProfileOrBuilder(
int index);
}
/**
* Protobuf type {@code plugin.HaiFriendRelationsResponse}
*/
public static final class HaiFriendRelationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:plugin.HaiFriendRelationsResponse)
HaiFriendRelationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use HaiFriendRelationsResponse.newBuilder() to construct.
private HaiFriendRelationsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HaiFriendRelationsResponse() {
userProfile_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HaiFriendRelationsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
userProfile_ = new java.util.ArrayList<com.akaxin.proto.core.UserProto.UserRelationProfile>();
mutable_bitField0_ |= 0x00000001;
}
userProfile_.add(
input.readMessage(com.akaxin.proto.core.UserProto.UserRelationProfile.parser(), extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
userProfile_ = java.util.Collections.unmodifiableList(userProfile_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.class, com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.Builder.class);
}
public static final int USER_PROFILE_FIELD_NUMBER = 1;
private java.util.List<com.akaxin.proto.core.UserProto.UserRelationProfile> userProfile_;
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public java.util.List<com.akaxin.proto.core.UserProto.UserRelationProfile> getUserProfileList() {
return userProfile_;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public java.util.List<? extends com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder>
getUserProfileOrBuilderList() {
return userProfile_;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public int getUserProfileCount() {
return userProfile_.size();
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfile getUserProfile(int index) {
return userProfile_.get(index);
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder getUserProfileOrBuilder(
int index) {
return userProfile_.get(index);
}
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 {
for (int i = 0; i < userProfile_.size(); i++) {
output.writeMessage(1, userProfile_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < userProfile_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, userProfile_.get(i));
}
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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse)) {
return super.equals(obj);
}
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse other = (com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse) obj;
boolean result = true;
result = result && getUserProfileList()
.equals(other.getUserProfileList());
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 (getUserProfileCount() > 0) {
hash = (37 * hash) + USER_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getUserProfileList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse 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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse 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 plugin.HaiFriendRelationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:plugin.HaiFriendRelationsResponse)
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.class, com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.Builder.class);
}
// Construct using com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUserProfileFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (userProfileBuilder_ == null) {
userProfile_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
userProfileBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.internal_static_plugin_HaiFriendRelationsResponse_descriptor;
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse getDefaultInstanceForType() {
return com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.getDefaultInstance();
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse build() {
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse buildPartial() {
com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse result = new com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse(this);
int from_bitField0_ = bitField0_;
if (userProfileBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
userProfile_ = java.util.Collections.unmodifiableList(userProfile_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.userProfile_ = userProfile_;
} else {
result.userProfile_ = userProfileBuilder_.build();
}
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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse) {
return mergeFrom((com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse other) {
if (other == com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse.getDefaultInstance()) return this;
if (userProfileBuilder_ == null) {
if (!other.userProfile_.isEmpty()) {
if (userProfile_.isEmpty()) {
userProfile_ = other.userProfile_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUserProfileIsMutable();
userProfile_.addAll(other.userProfile_);
}
onChanged();
}
} else {
if (!other.userProfile_.isEmpty()) {
if (userProfileBuilder_.isEmpty()) {
userProfileBuilder_.dispose();
userProfileBuilder_ = null;
userProfile_ = other.userProfile_;
bitField0_ = (bitField0_ & ~0x00000001);
userProfileBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUserProfileFieldBuilder() : null;
} else {
userProfileBuilder_.addAllMessages(other.userProfile_);
}
}
}
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.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<com.akaxin.proto.core.UserProto.UserRelationProfile> userProfile_ =
java.util.Collections.emptyList();
private void ensureUserProfileIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
userProfile_ = new java.util.ArrayList<com.akaxin.proto.core.UserProto.UserRelationProfile>(userProfile_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.akaxin.proto.core.UserProto.UserRelationProfile, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder, com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder> userProfileBuilder_;
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public java.util.List<com.akaxin.proto.core.UserProto.UserRelationProfile> getUserProfileList() {
if (userProfileBuilder_ == null) {
return java.util.Collections.unmodifiableList(userProfile_);
} else {
return userProfileBuilder_.getMessageList();
}
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public int getUserProfileCount() {
if (userProfileBuilder_ == null) {
return userProfile_.size();
} else {
return userProfileBuilder_.getCount();
}
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfile getUserProfile(int index) {
if (userProfileBuilder_ == null) {
return userProfile_.get(index);
} else {
return userProfileBuilder_.getMessage(index);
}
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder setUserProfile(
int index, com.akaxin.proto.core.UserProto.UserRelationProfile value) {
if (userProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserProfileIsMutable();
userProfile_.set(index, value);
onChanged();
} else {
userProfileBuilder_.setMessage(index, value);
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder setUserProfile(
int index, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder builderForValue) {
if (userProfileBuilder_ == null) {
ensureUserProfileIsMutable();
userProfile_.set(index, builderForValue.build());
onChanged();
} else {
userProfileBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder addUserProfile(com.akaxin.proto.core.UserProto.UserRelationProfile value) {
if (userProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserProfileIsMutable();
userProfile_.add(value);
onChanged();
} else {
userProfileBuilder_.addMessage(value);
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder addUserProfile(
int index, com.akaxin.proto.core.UserProto.UserRelationProfile value) {
if (userProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserProfileIsMutable();
userProfile_.add(index, value);
onChanged();
} else {
userProfileBuilder_.addMessage(index, value);
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder addUserProfile(
com.akaxin.proto.core.UserProto.UserRelationProfile.Builder builderForValue) {
if (userProfileBuilder_ == null) {
ensureUserProfileIsMutable();
userProfile_.add(builderForValue.build());
onChanged();
} else {
userProfileBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder addUserProfile(
int index, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder builderForValue) {
if (userProfileBuilder_ == null) {
ensureUserProfileIsMutable();
userProfile_.add(index, builderForValue.build());
onChanged();
} else {
userProfileBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder addAllUserProfile(
java.lang.Iterable<? extends com.akaxin.proto.core.UserProto.UserRelationProfile> values) {
if (userProfileBuilder_ == null) {
ensureUserProfileIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userProfile_);
onChanged();
} else {
userProfileBuilder_.addAllMessages(values);
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder clearUserProfile() {
if (userProfileBuilder_ == null) {
userProfile_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
userProfileBuilder_.clear();
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public Builder removeUserProfile(int index) {
if (userProfileBuilder_ == null) {
ensureUserProfileIsMutable();
userProfile_.remove(index);
onChanged();
} else {
userProfileBuilder_.remove(index);
}
return this;
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfile.Builder getUserProfileBuilder(
int index) {
return getUserProfileFieldBuilder().getBuilder(index);
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder getUserProfileOrBuilder(
int index) {
if (userProfileBuilder_ == null) {
return userProfile_.get(index); } else {
return userProfileBuilder_.getMessageOrBuilder(index);
}
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public java.util.List<? extends com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder>
getUserProfileOrBuilderList() {
if (userProfileBuilder_ != null) {
return userProfileBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(userProfile_);
}
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfile.Builder addUserProfileBuilder() {
return getUserProfileFieldBuilder().addBuilder(
com.akaxin.proto.core.UserProto.UserRelationProfile.getDefaultInstance());
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public com.akaxin.proto.core.UserProto.UserRelationProfile.Builder addUserProfileBuilder(
int index) {
return getUserProfileFieldBuilder().addBuilder(
index, com.akaxin.proto.core.UserProto.UserRelationProfile.getDefaultInstance());
}
/**
* <pre>
*查询的结果
* </pre>
*
* <code>repeated .core.UserRelationProfile user_profile = 1;</code>
*/
public java.util.List<com.akaxin.proto.core.UserProto.UserRelationProfile.Builder>
getUserProfileBuilderList() {
return getUserProfileFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.akaxin.proto.core.UserProto.UserRelationProfile, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder, com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder>
getUserProfileFieldBuilder() {
if (userProfileBuilder_ == null) {
userProfileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.akaxin.proto.core.UserProto.UserRelationProfile, com.akaxin.proto.core.UserProto.UserRelationProfile.Builder, com.akaxin.proto.core.UserProto.UserRelationProfileOrBuilder>(
userProfile_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
userProfile_ = null;
}
return userProfileBuilder_;
}
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:plugin.HaiFriendRelationsResponse)
}
// @@protoc_insertion_point(class_scope:plugin.HaiFriendRelationsResponse)
private static final com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse();
}
public static com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<HaiFriendRelationsResponse>
PARSER = new com.google.protobuf.AbstractParser<HaiFriendRelationsResponse>() {
public HaiFriendRelationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HaiFriendRelationsResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<HaiFriendRelationsResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<HaiFriendRelationsResponse> getParserForType() {
return PARSER;
}
public com.akaxin.proto.plugin.HaiFriendRelationsProto.HaiFriendRelationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_plugin_HaiFriendRelationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_plugin_HaiFriendRelationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_plugin_HaiFriendRelationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_plugin_HaiFriendRelationsResponse_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!plugin/hai_friend_relations.proto\022\006plu" +
"gin\032\017core/user.proto\"N\n\031HaiFriendRelatio" +
"nsRequest\022\024\n\014site_user_id\030\001 \001(\t\022\033\n\023targe" +
"t_site_user_id\030\002 \003(\t\"M\n\032HaiFriendRelatio" +
"nsResponse\022/\n\014user_profile\030\001 \003(\0132\031.core." +
"UserRelationProfile2o\n\031HaiFriendRelation" +
"sService\022R\n\trelations\022!.plugin.HaiFriend" +
"RelationsRequest\032\".plugin.HaiFriendRelat" +
"ionsResponseB2\n\027com.akaxin.proto.pluginB" +
"\027HaiFriendRelationsProtob\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.akaxin.proto.core.UserProto.getDescriptor(),
}, assigner);
internal_static_plugin_HaiFriendRelationsRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_plugin_HaiFriendRelationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_plugin_HaiFriendRelationsRequest_descriptor,
new java.lang.String[] { "SiteUserId", "TargetSiteUserId", });
internal_static_plugin_HaiFriendRelationsResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_plugin_HaiFriendRelationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_plugin_HaiFriendRelationsResponse_descriptor,
new java.lang.String[] { "UserProfile", });
com.akaxin.proto.core.UserProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}