
wechat.protobuf.SearchContactRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.SearchContactRequest}
*/
public final class SearchContactRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.SearchContactRequest)
SearchContactRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SearchContactRequest.newBuilder() to construct.
private SearchContactRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SearchContactRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SearchContactRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SearchContactRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
wechat.protobuf.BaseRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseRequest_.toBuilder();
}
baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseRequest_);
baseRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
wechat.protobuf.SKBuiltinString.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = userName_.toBuilder();
}
userName_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userName_);
userName_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
opCode_ = input.readUInt32();
break;
}
case 34: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = reqBuf_.toBuilder();
}
reqBuf_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reqBuf_);
reqBuf_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
bitField0_ |= 0x00000010;
fromScene_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
searchScene_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchContactRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchContactRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.SearchContactRequest.class, wechat.protobuf.SearchContactRequest.Builder.class);
}
private int bitField0_;
public static final int BASE_REQUEST_FIELD_NUMBER = 1;
private wechat.protobuf.BaseRequest baseRequest_;
/**
* optional .wechat_proto.BaseRequest base_request = 1;
* @return Whether the baseRequest field is set.
*/
@java.lang.Override
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
* @return The baseRequest.
*/
@java.lang.Override
public wechat.protobuf.BaseRequest getBaseRequest() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
@java.lang.Override
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
public static final int USER_NAME_FIELD_NUMBER = 2;
private wechat.protobuf.SKBuiltinString userName_;
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
* @return Whether the userName field is set.
*/
@java.lang.Override
public boolean hasUserName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
* @return The userName.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString getUserName() {
return userName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : userName_;
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinStringOrBuilder getUserNameOrBuilder() {
return userName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : userName_;
}
public static final int OP_CODE_FIELD_NUMBER = 3;
private int opCode_;
/**
* optional uint32 op_code = 3;
* @return Whether the opCode field is set.
*/
@java.lang.Override
public boolean hasOpCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 op_code = 3;
* @return The opCode.
*/
@java.lang.Override
public int getOpCode() {
return opCode_;
}
public static final int REQ_BUF_FIELD_NUMBER = 4;
private wechat.protobuf.SKBuiltinString_ reqBuf_;
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
* @return Whether the reqBuf field is set.
*/
@java.lang.Override
public boolean hasReqBuf() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
* @return The reqBuf.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getReqBuf() {
return reqBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqBuf_;
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getReqBufOrBuilder() {
return reqBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqBuf_;
}
public static final int FROM_SCENE_FIELD_NUMBER = 5;
private int fromScene_;
/**
* optional uint32 from_scene = 5;
* @return Whether the fromScene field is set.
*/
@java.lang.Override
public boolean hasFromScene() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 from_scene = 5;
* @return The fromScene.
*/
@java.lang.Override
public int getFromScene() {
return fromScene_;
}
public static final int SEARCH_SCENE_FIELD_NUMBER = 6;
private int searchScene_;
/**
* optional uint32 search_scene = 6;
* @return Whether the searchScene field is set.
*/
@java.lang.Override
public boolean hasSearchScene() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 search_scene = 6;
* @return The searchScene.
*/
@java.lang.Override
public int getSearchScene() {
return searchScene_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getUserName());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, opCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getReqBuf());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, fromScene_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt32(6, searchScene_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserName());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, opCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getReqBuf());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, fromScene_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, searchScene_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof wechat.protobuf.SearchContactRequest)) {
return super.equals(obj);
}
wechat.protobuf.SearchContactRequest other = (wechat.protobuf.SearchContactRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasUserName() != other.hasUserName()) return false;
if (hasUserName()) {
if (!getUserName()
.equals(other.getUserName())) return false;
}
if (hasOpCode() != other.hasOpCode()) return false;
if (hasOpCode()) {
if (getOpCode()
!= other.getOpCode()) return false;
}
if (hasReqBuf() != other.hasReqBuf()) return false;
if (hasReqBuf()) {
if (!getReqBuf()
.equals(other.getReqBuf())) return false;
}
if (hasFromScene() != other.hasFromScene()) return false;
if (hasFromScene()) {
if (getFromScene()
!= other.getFromScene()) return false;
}
if (hasSearchScene() != other.hasSearchScene()) return false;
if (hasSearchScene()) {
if (getSearchScene()
!= other.getSearchScene()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBaseRequest()) {
hash = (37 * hash) + BASE_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasUserName()) {
hash = (37 * hash) + USER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getUserName().hashCode();
}
if (hasOpCode()) {
hash = (37 * hash) + OP_CODE_FIELD_NUMBER;
hash = (53 * hash) + getOpCode();
}
if (hasReqBuf()) {
hash = (37 * hash) + REQ_BUF_FIELD_NUMBER;
hash = (53 * hash) + getReqBuf().hashCode();
}
if (hasFromScene()) {
hash = (37 * hash) + FROM_SCENE_FIELD_NUMBER;
hash = (53 * hash) + getFromScene();
}
if (hasSearchScene()) {
hash = (37 * hash) + SEARCH_SCENE_FIELD_NUMBER;
hash = (53 * hash) + getSearchScene();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.SearchContactRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.SearchContactRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.SearchContactRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static wechat.protobuf.SearchContactRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.SearchContactRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.SearchContactRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(wechat.protobuf.SearchContactRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code wechat_proto.SearchContactRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.SearchContactRequest)
wechat.protobuf.SearchContactRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchContactRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchContactRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.SearchContactRequest.class, wechat.protobuf.SearchContactRequest.Builder.class);
}
// Construct using wechat.protobuf.SearchContactRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseRequestFieldBuilder();
getUserNameFieldBuilder();
getReqBufFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (userNameBuilder_ == null) {
userName_ = null;
} else {
userNameBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
opCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (reqBufBuilder_ == null) {
reqBuf_ = null;
} else {
reqBufBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
fromScene_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
searchScene_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchContactRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.SearchContactRequest getDefaultInstanceForType() {
return wechat.protobuf.SearchContactRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.SearchContactRequest build() {
wechat.protobuf.SearchContactRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.SearchContactRequest buildPartial() {
wechat.protobuf.SearchContactRequest result = new wechat.protobuf.SearchContactRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseRequestBuilder_ == null) {
result.baseRequest_ = baseRequest_;
} else {
result.baseRequest_ = baseRequestBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (userNameBuilder_ == null) {
result.userName_ = userName_;
} else {
result.userName_ = userNameBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.opCode_ = opCode_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (reqBufBuilder_ == null) {
result.reqBuf_ = reqBuf_;
} else {
result.reqBuf_ = reqBufBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.fromScene_ = fromScene_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.searchScene_ = searchScene_;
to_bitField0_ |= 0x00000020;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof wechat.protobuf.SearchContactRequest) {
return mergeFrom((wechat.protobuf.SearchContactRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.SearchContactRequest other) {
if (other == wechat.protobuf.SearchContactRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasUserName()) {
mergeUserName(other.getUserName());
}
if (other.hasOpCode()) {
setOpCode(other.getOpCode());
}
if (other.hasReqBuf()) {
mergeReqBuf(other.getReqBuf());
}
if (other.hasFromScene()) {
setFromScene(other.getFromScene());
}
if (other.hasSearchScene()) {
setSearchScene(other.getSearchScene());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
wechat.protobuf.SearchContactRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.SearchContactRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.BaseRequest baseRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> baseRequestBuilder_;
/**
* optional .wechat_proto.BaseRequest base_request = 1;
* @return Whether the baseRequest field is set.
*/
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
* @return The baseRequest.
*/
public wechat.protobuf.BaseRequest getBaseRequest() {
if (baseRequestBuilder_ == null) {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
} else {
return baseRequestBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
public Builder setBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseRequest_ = value;
onChanged();
} else {
baseRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
public Builder setBaseRequest(
wechat.protobuf.BaseRequest.Builder builderForValue) {
if (baseRequestBuilder_ == null) {
baseRequest_ = builderForValue.build();
onChanged();
} else {
baseRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseRequest_ != null &&
baseRequest_ != wechat.protobuf.BaseRequest.getDefaultInstance()) {
baseRequest_ =
wechat.protobuf.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
} else {
baseRequest_ = value;
}
onChanged();
} else {
baseRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
public Builder clearBaseRequest() {
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
onChanged();
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseRequestFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
if (baseRequestBuilder_ != null) {
return baseRequestBuilder_.getMessageOrBuilder();
} else {
return baseRequest_ == null ?
wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
}
/**
* optional .wechat_proto.BaseRequest base_request = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>
getBaseRequestFieldBuilder() {
if (baseRequestBuilder_ == null) {
baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>(
getBaseRequest(),
getParentForChildren(),
isClean());
baseRequest_ = null;
}
return baseRequestBuilder_;
}
private wechat.protobuf.SKBuiltinString userName_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> userNameBuilder_;
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
* @return Whether the userName field is set.
*/
public boolean hasUserName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
* @return The userName.
*/
public wechat.protobuf.SKBuiltinString getUserName() {
if (userNameBuilder_ == null) {
return userName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : userName_;
} else {
return userNameBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
public Builder setUserName(wechat.protobuf.SKBuiltinString value) {
if (userNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userName_ = value;
onChanged();
} else {
userNameBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
public Builder setUserName(
wechat.protobuf.SKBuiltinString.Builder builderForValue) {
if (userNameBuilder_ == null) {
userName_ = builderForValue.build();
onChanged();
} else {
userNameBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
public Builder mergeUserName(wechat.protobuf.SKBuiltinString value) {
if (userNameBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
userName_ != null &&
userName_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
userName_ =
wechat.protobuf.SKBuiltinString.newBuilder(userName_).mergeFrom(value).buildPartial();
} else {
userName_ = value;
}
onChanged();
} else {
userNameBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
public Builder clearUserName() {
if (userNameBuilder_ == null) {
userName_ = null;
onChanged();
} else {
userNameBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
public wechat.protobuf.SKBuiltinString.Builder getUserNameBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getUserNameFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
public wechat.protobuf.SKBuiltinStringOrBuilder getUserNameOrBuilder() {
if (userNameBuilder_ != null) {
return userNameBuilder_.getMessageOrBuilder();
} else {
return userName_ == null ?
wechat.protobuf.SKBuiltinString.getDefaultInstance() : userName_;
}
}
/**
* optional .wechat_proto.SKBuiltinString user_name = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>
getUserNameFieldBuilder() {
if (userNameBuilder_ == null) {
userNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
getUserName(),
getParentForChildren(),
isClean());
userName_ = null;
}
return userNameBuilder_;
}
private int opCode_ ;
/**
* optional uint32 op_code = 3;
* @return Whether the opCode field is set.
*/
@java.lang.Override
public boolean hasOpCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 op_code = 3;
* @return The opCode.
*/
@java.lang.Override
public int getOpCode() {
return opCode_;
}
/**
* optional uint32 op_code = 3;
* @param value The opCode to set.
* @return This builder for chaining.
*/
public Builder setOpCode(int value) {
bitField0_ |= 0x00000004;
opCode_ = value;
onChanged();
return this;
}
/**
* optional uint32 op_code = 3;
* @return This builder for chaining.
*/
public Builder clearOpCode() {
bitField0_ = (bitField0_ & ~0x00000004);
opCode_ = 0;
onChanged();
return this;
}
private wechat.protobuf.SKBuiltinString_ reqBuf_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> reqBufBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
* @return Whether the reqBuf field is set.
*/
public boolean hasReqBuf() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
* @return The reqBuf.
*/
public wechat.protobuf.SKBuiltinString_ getReqBuf() {
if (reqBufBuilder_ == null) {
return reqBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqBuf_;
} else {
return reqBufBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
public Builder setReqBuf(wechat.protobuf.SKBuiltinString_ value) {
if (reqBufBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqBuf_ = value;
onChanged();
} else {
reqBufBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
public Builder setReqBuf(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (reqBufBuilder_ == null) {
reqBuf_ = builderForValue.build();
onChanged();
} else {
reqBufBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
public Builder mergeReqBuf(wechat.protobuf.SKBuiltinString_ value) {
if (reqBufBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
reqBuf_ != null &&
reqBuf_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
reqBuf_ =
wechat.protobuf.SKBuiltinString_.newBuilder(reqBuf_).mergeFrom(value).buildPartial();
} else {
reqBuf_ = value;
}
onChanged();
} else {
reqBufBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
public Builder clearReqBuf() {
if (reqBufBuilder_ == null) {
reqBuf_ = null;
onChanged();
} else {
reqBufBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
public wechat.protobuf.SKBuiltinString_.Builder getReqBufBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getReqBufFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getReqBufOrBuilder() {
if (reqBufBuilder_ != null) {
return reqBufBuilder_.getMessageOrBuilder();
} else {
return reqBuf_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqBuf_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ req_buf = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getReqBufFieldBuilder() {
if (reqBufBuilder_ == null) {
reqBufBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getReqBuf(),
getParentForChildren(),
isClean());
reqBuf_ = null;
}
return reqBufBuilder_;
}
private int fromScene_ ;
/**
* optional uint32 from_scene = 5;
* @return Whether the fromScene field is set.
*/
@java.lang.Override
public boolean hasFromScene() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 from_scene = 5;
* @return The fromScene.
*/
@java.lang.Override
public int getFromScene() {
return fromScene_;
}
/**
* optional uint32 from_scene = 5;
* @param value The fromScene to set.
* @return This builder for chaining.
*/
public Builder setFromScene(int value) {
bitField0_ |= 0x00000010;
fromScene_ = value;
onChanged();
return this;
}
/**
* optional uint32 from_scene = 5;
* @return This builder for chaining.
*/
public Builder clearFromScene() {
bitField0_ = (bitField0_ & ~0x00000010);
fromScene_ = 0;
onChanged();
return this;
}
private int searchScene_ ;
/**
* optional uint32 search_scene = 6;
* @return Whether the searchScene field is set.
*/
@java.lang.Override
public boolean hasSearchScene() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 search_scene = 6;
* @return The searchScene.
*/
@java.lang.Override
public int getSearchScene() {
return searchScene_;
}
/**
* optional uint32 search_scene = 6;
* @param value The searchScene to set.
* @return This builder for chaining.
*/
public Builder setSearchScene(int value) {
bitField0_ |= 0x00000020;
searchScene_ = value;
onChanged();
return this;
}
/**
* optional uint32 search_scene = 6;
* @return This builder for chaining.
*/
public Builder clearSearchScene() {
bitField0_ = (bitField0_ & ~0x00000020);
searchScene_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:wechat_proto.SearchContactRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.SearchContactRequest)
private static final wechat.protobuf.SearchContactRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.SearchContactRequest();
}
public static wechat.protobuf.SearchContactRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SearchContactRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SearchContactRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public wechat.protobuf.SearchContactRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy