1407 lines
49 KiB
Java
Executable File
1407 lines
49 KiB
Java
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: site/api_user_search.proto
|
|
|
|
package com.akaxin.proto.site;
|
|
|
|
public final class ApiUserSearchProto {
|
|
private ApiUserSearchProto() {}
|
|
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 ApiUserSearchRequestOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:site.ApiUserSearchRequest)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
java.lang.String getId();
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getIdBytes();
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.ApiUserSearchRequest}
|
|
*/
|
|
public static final class ApiUserSearchRequest extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:site.ApiUserSearchRequest)
|
|
ApiUserSearchRequestOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use ApiUserSearchRequest.newBuilder() to construct.
|
|
private ApiUserSearchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private ApiUserSearchRequest() {
|
|
id_ = "";
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private ApiUserSearchRequest(
|
|
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();
|
|
|
|
id_ = 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.ApiUserSearchProto.internal_static_site_ApiUserSearchRequest_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchRequest_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.class, com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.Builder.class);
|
|
}
|
|
|
|
public static final int ID_FIELD_NUMBER = 1;
|
|
private volatile java.lang.Object id_;
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public java.lang.String getId() {
|
|
java.lang.Object ref = id_;
|
|
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();
|
|
id_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getIdBytes() {
|
|
java.lang.Object ref = id_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
id_ = 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 (!getIdBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (!getIdBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
|
|
}
|
|
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.ApiUserSearchProto.ApiUserSearchRequest)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest other = (com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest) obj;
|
|
|
|
boolean result = true;
|
|
result = result && getId()
|
|
.equals(other.getId());
|
|
result = result && unknownFields.equals(other.unknownFields);
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int hashCode() {
|
|
if (memoizedHashCode != 0) {
|
|
return memoizedHashCode;
|
|
}
|
|
int hash = 41;
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
hash = (37 * hash) + ID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getId().hashCode();
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest 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.ApiUserSearchProto.ApiUserSearchRequest parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest 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.ApiUserSearchProto.ApiUserSearchRequest parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest 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.ApiUserSearchProto.ApiUserSearchRequest parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest 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.ApiUserSearchProto.ApiUserSearchRequest parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest 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.ApiUserSearchProto.ApiUserSearchRequest 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.ApiUserSearchRequest}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:site.ApiUserSearchRequest)
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequestOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchRequest_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchRequest_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.class, com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
}
|
|
}
|
|
public Builder clear() {
|
|
super.clear();
|
|
id_ = "";
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchRequest_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest getDefaultInstanceForType() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest build() {
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest buildPartial() {
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest result = new com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest(this);
|
|
result.id_ = id_;
|
|
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.ApiUserSearchProto.ApiUserSearchRequest) {
|
|
return mergeFrom((com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest other) {
|
|
if (other == com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest.getDefaultInstance()) return this;
|
|
if (!other.getId().isEmpty()) {
|
|
id_ = other.id_;
|
|
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.ApiUserSearchProto.ApiUserSearchRequest parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object id_ = "";
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public java.lang.String getId() {
|
|
java.lang.Object ref = id_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
id_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getIdBytes() {
|
|
java.lang.Object ref = id_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
id_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public Builder setId(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
id_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public Builder clearId() {
|
|
|
|
id_ = getDefaultInstance().getId();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*site_login_id | phone_id | userIdPubk
|
|
* </pre>
|
|
*
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public Builder setIdBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
id_ = 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.ApiUserSearchRequest)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:site.ApiUserSearchRequest)
|
|
private static final com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest();
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<ApiUserSearchRequest>
|
|
PARSER = new com.google.protobuf.AbstractParser<ApiUserSearchRequest>() {
|
|
public ApiUserSearchRequest parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new ApiUserSearchRequest(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<ApiUserSearchRequest> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<ApiUserSearchRequest> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchRequest getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
public interface ApiUserSearchResponseOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:site.ApiUserSearchResponse)
|
|
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();
|
|
}
|
|
/**
|
|
* Protobuf type {@code site.ApiUserSearchResponse}
|
|
*/
|
|
public static final class ApiUserSearchResponse extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:site.ApiUserSearchResponse)
|
|
ApiUserSearchResponseOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use ApiUserSearchResponse.newBuilder() to construct.
|
|
private ApiUserSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private ApiUserSearchResponse() {
|
|
relation_ = 0;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private ApiUserSearchResponse(
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
} 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.ApiUserSearchProto.internal_static_site_ApiUserSearchResponse_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchResponse_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.class, com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.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;
|
|
}
|
|
|
|
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_);
|
|
}
|
|
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_);
|
|
}
|
|
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.ApiUserSearchProto.ApiUserSearchResponse)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse other = (com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse) obj;
|
|
|
|
boolean result = true;
|
|
result = result && (hasProfile() == other.hasProfile());
|
|
if (hasProfile()) {
|
|
result = result && getProfile()
|
|
.equals(other.getProfile());
|
|
}
|
|
result = result && relation_ == other.relation_;
|
|
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 = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse 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.ApiUserSearchProto.ApiUserSearchResponse parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse 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.ApiUserSearchProto.ApiUserSearchResponse parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse 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.ApiUserSearchProto.ApiUserSearchResponse parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse 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.ApiUserSearchProto.ApiUserSearchResponse parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse 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.ApiUserSearchProto.ApiUserSearchResponse 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.ApiUserSearchResponse}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:site.ApiUserSearchResponse)
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponseOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchResponse_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchResponse_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.class, com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.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;
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.internal_static_site_ApiUserSearchResponse_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse getDefaultInstanceForType() {
|
|
return com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse build() {
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse buildPartial() {
|
|
com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse result = new com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse(this);
|
|
if (profileBuilder_ == null) {
|
|
result.profile_ = profile_;
|
|
} else {
|
|
result.profile_ = profileBuilder_.build();
|
|
}
|
|
result.relation_ = relation_;
|
|
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.ApiUserSearchProto.ApiUserSearchResponse) {
|
|
return mergeFrom((com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse other) {
|
|
if (other == com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse.getDefaultInstance()) return this;
|
|
if (other.hasProfile()) {
|
|
mergeProfile(other.getProfile());
|
|
}
|
|
if (other.relation_ != 0) {
|
|
setRelationValue(other.getRelationValue());
|
|
}
|
|
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.ApiUserSearchProto.ApiUserSearchResponse parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse) 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;
|
|
}
|
|
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.ApiUserSearchResponse)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:site.ApiUserSearchResponse)
|
|
private static final com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse();
|
|
}
|
|
|
|
public static com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<ApiUserSearchResponse>
|
|
PARSER = new com.google.protobuf.AbstractParser<ApiUserSearchResponse>() {
|
|
public ApiUserSearchResponse parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new ApiUserSearchResponse(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<ApiUserSearchResponse> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<ApiUserSearchResponse> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.site.ApiUserSearchProto.ApiUserSearchResponse getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_site_ApiUserSearchRequest_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_site_ApiUserSearchRequest_fieldAccessorTable;
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_site_ApiUserSearchResponse_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_site_ApiUserSearchResponse_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\032site/api_user_search.proto\022\004site\032\017core" +
|
|
"/user.proto\"\"\n\024ApiUserSearchRequest\022\n\n\002i" +
|
|
"d\030\001 \001(\t\"a\n\025ApiUserSearchResponse\022\"\n\007prof" +
|
|
"ile\030\001 \001(\0132\021.core.UserProfile\022$\n\010relation" +
|
|
"\030\002 \001(\0162\022.core.UserRelation2Y\n\024ApiUserSea" +
|
|
"rchService\022A\n\006search\022\032.site.ApiUserSearc" +
|
|
"hRequest\032\033.site.ApiUserSearchResponseB+\n" +
|
|
"\025com.akaxin.proto.siteB\022ApiUserSearchPro" +
|
|
"tob\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_site_ApiUserSearchRequest_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_site_ApiUserSearchRequest_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_site_ApiUserSearchRequest_descriptor,
|
|
new java.lang.String[] { "Id", });
|
|
internal_static_site_ApiUserSearchResponse_descriptor =
|
|
getDescriptor().getMessageTypes().get(1);
|
|
internal_static_site_ApiUserSearchResponse_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_site_ApiUserSearchResponse_descriptor,
|
|
new java.lang.String[] { "Profile", "Relation", });
|
|
com.akaxin.proto.core.UserProto.getDescriptor();
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|