
wechat.protobuf.Lbs Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: lbs.proto
package wechat.protobuf;
public final class Lbs {
private Lbs() {}
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 GetLbsLifeListRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.GetLbsLifeListRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
boolean hasBaseRequest();
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
wechat.protobuf.Wechat.BaseRequest getBaseRequest();
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
wechat.protobuf.Wechat.BaseRequestOrBuilder getBaseRequestOrBuilder();
/**
* optional uint32 opcode = 2;
* @return Whether the opcode field is set.
*/
boolean hasOpcode();
/**
* optional uint32 opcode = 2;
* @return The opcode.
*/
int getOpcode();
/**
* optional uint32 scene = 3;
* @return Whether the scene field is set.
*/
boolean hasScene();
/**
* optional uint32 scene = 3;
* @return The scene.
*/
int getScene();
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
* @return Whether the buff field is set.
*/
boolean hasBuff();
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
* @return The buff.
*/
wechat.protobuf.Wechat.SKBuiltinString_ getBuff();
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getBuffOrBuilder();
/**
* optional .wechat_proto.LbsLocation loc = 5;
* @return Whether the loc field is set.
*/
boolean hasLoc();
/**
* optional .wechat_proto.LbsLocation loc = 5;
* @return The loc.
*/
wechat.protobuf.Lbs.LbsLocation getLoc();
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
wechat.protobuf.Lbs.LbsLocationOrBuilder getLocOrBuilder();
/**
* optional string keyword = 6;
* @return Whether the keyword field is set.
*/
boolean hasKeyword();
/**
* optional string keyword = 6;
* @return The keyword.
*/
java.lang.String getKeyword();
/**
* optional string keyword = 6;
* @return The bytes for keyword.
*/
com.google.protobuf.ByteString
getKeywordBytes();
/**
* optional uint32 entryTime = 7;
* @return Whether the entryTime field is set.
*/
boolean hasEntryTime();
/**
* optional uint32 entryTime = 7;
* @return The entryTime.
*/
int getEntryTime();
/**
* optional uint32 isAutoQuery = 8;
* @return Whether the isAutoQuery field is set.
*/
boolean hasIsAutoQuery();
/**
* optional uint32 isAutoQuery = 8;
* @return The isAutoQuery.
*/
int getIsAutoQuery();
}
/**
* Protobuf type {@code wechat_proto.GetLbsLifeListRequest}
*/
public static final class GetLbsLifeListRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.GetLbsLifeListRequest)
GetLbsLifeListRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLbsLifeListRequest.newBuilder() to construct.
private GetLbsLifeListRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLbsLifeListRequest() {
keyword_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLbsLifeListRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetLbsLifeListRequest(
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.Wechat.BaseRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseRequest_.toBuilder();
}
baseRequest_ = input.readMessage(wechat.protobuf.Wechat.BaseRequest.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseRequest_);
baseRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
opcode_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
scene_ = input.readUInt32();
break;
}
case 34: {
wechat.protobuf.Wechat.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = buff_.toBuilder();
}
buff_ = input.readMessage(wechat.protobuf.Wechat.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(buff_);
buff_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
wechat.protobuf.Lbs.LbsLocation.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = loc_.toBuilder();
}
loc_ = input.readMessage(wechat.protobuf.Lbs.LbsLocation.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loc_);
loc_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
keyword_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
entryTime_ = input.readUInt32();
break;
}
case 64: {
bitField0_ |= 0x00000080;
isAutoQuery_ = 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.Lbs.internal_static_wechat_proto_GetLbsLifeListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetLbsLifeListRequest.class, wechat.protobuf.Lbs.GetLbsLifeListRequest.Builder.class);
}
private int bitField0_;
public static final int BASEREQUEST_FIELD_NUMBER = 1;
private wechat.protobuf.Wechat.BaseRequest baseRequest_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
@java.lang.Override
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseRequest getBaseRequest() {
return baseRequest_ == null ? wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseRequestOrBuilder getBaseRequestOrBuilder() {
return baseRequest_ == null ? wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
}
public static final int OPCODE_FIELD_NUMBER = 2;
private int opcode_;
/**
* optional uint32 opcode = 2;
* @return Whether the opcode field is set.
*/
@java.lang.Override
public boolean hasOpcode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 opcode = 2;
* @return The opcode.
*/
@java.lang.Override
public int getOpcode() {
return opcode_;
}
public static final int SCENE_FIELD_NUMBER = 3;
private int scene_;
/**
* optional uint32 scene = 3;
* @return Whether the scene field is set.
*/
@java.lang.Override
public boolean hasScene() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 scene = 3;
* @return The scene.
*/
@java.lang.Override
public int getScene() {
return scene_;
}
public static final int BUFF_FIELD_NUMBER = 4;
private wechat.protobuf.Wechat.SKBuiltinString_ buff_;
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
* @return Whether the buff field is set.
*/
@java.lang.Override
public boolean hasBuff() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
* @return The buff.
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_ getBuff() {
return buff_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getBuffOrBuilder() {
return buff_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
}
public static final int LOC_FIELD_NUMBER = 5;
private wechat.protobuf.Lbs.LbsLocation loc_;
/**
* optional .wechat_proto.LbsLocation loc = 5;
* @return Whether the loc field is set.
*/
@java.lang.Override
public boolean hasLoc() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
* @return The loc.
*/
@java.lang.Override
public wechat.protobuf.Lbs.LbsLocation getLoc() {
return loc_ == null ? wechat.protobuf.Lbs.LbsLocation.getDefaultInstance() : loc_;
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
@java.lang.Override
public wechat.protobuf.Lbs.LbsLocationOrBuilder getLocOrBuilder() {
return loc_ == null ? wechat.protobuf.Lbs.LbsLocation.getDefaultInstance() : loc_;
}
public static final int KEYWORD_FIELD_NUMBER = 6;
private volatile java.lang.Object keyword_;
/**
* optional string keyword = 6;
* @return Whether the keyword field is set.
*/
@java.lang.Override
public boolean hasKeyword() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string keyword = 6;
* @return The keyword.
*/
@java.lang.Override
public java.lang.String getKeyword() {
java.lang.Object ref = keyword_;
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();
if (bs.isValidUtf8()) {
keyword_ = s;
}
return s;
}
}
/**
* optional string keyword = 6;
* @return The bytes for keyword.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeywordBytes() {
java.lang.Object ref = keyword_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyword_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENTRYTIME_FIELD_NUMBER = 7;
private int entryTime_;
/**
* optional uint32 entryTime = 7;
* @return Whether the entryTime field is set.
*/
@java.lang.Override
public boolean hasEntryTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 entryTime = 7;
* @return The entryTime.
*/
@java.lang.Override
public int getEntryTime() {
return entryTime_;
}
public static final int ISAUTOQUERY_FIELD_NUMBER = 8;
private int isAutoQuery_;
/**
* optional uint32 isAutoQuery = 8;
* @return Whether the isAutoQuery field is set.
*/
@java.lang.Override
public boolean hasIsAutoQuery() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 isAutoQuery = 8;
* @return The isAutoQuery.
*/
@java.lang.Override
public int getIsAutoQuery() {
return isAutoQuery_;
}
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.writeUInt32(2, opcode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, scene_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getBuff());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getLoc());
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, keyword_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt32(7, entryTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt32(8, isAutoQuery_);
}
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
.computeUInt32Size(2, opcode_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, scene_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBuff());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLoc());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, keyword_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, entryTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, isAutoQuery_);
}
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.Lbs.GetLbsLifeListRequest)) {
return super.equals(obj);
}
wechat.protobuf.Lbs.GetLbsLifeListRequest other = (wechat.protobuf.Lbs.GetLbsLifeListRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasOpcode() != other.hasOpcode()) return false;
if (hasOpcode()) {
if (getOpcode()
!= other.getOpcode()) return false;
}
if (hasScene() != other.hasScene()) return false;
if (hasScene()) {
if (getScene()
!= other.getScene()) return false;
}
if (hasBuff() != other.hasBuff()) return false;
if (hasBuff()) {
if (!getBuff()
.equals(other.getBuff())) return false;
}
if (hasLoc() != other.hasLoc()) return false;
if (hasLoc()) {
if (!getLoc()
.equals(other.getLoc())) return false;
}
if (hasKeyword() != other.hasKeyword()) return false;
if (hasKeyword()) {
if (!getKeyword()
.equals(other.getKeyword())) return false;
}
if (hasEntryTime() != other.hasEntryTime()) return false;
if (hasEntryTime()) {
if (getEntryTime()
!= other.getEntryTime()) return false;
}
if (hasIsAutoQuery() != other.hasIsAutoQuery()) return false;
if (hasIsAutoQuery()) {
if (getIsAutoQuery()
!= other.getIsAutoQuery()) 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) + BASEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasOpcode()) {
hash = (37 * hash) + OPCODE_FIELD_NUMBER;
hash = (53 * hash) + getOpcode();
}
if (hasScene()) {
hash = (37 * hash) + SCENE_FIELD_NUMBER;
hash = (53 * hash) + getScene();
}
if (hasBuff()) {
hash = (37 * hash) + BUFF_FIELD_NUMBER;
hash = (53 * hash) + getBuff().hashCode();
}
if (hasLoc()) {
hash = (37 * hash) + LOC_FIELD_NUMBER;
hash = (53 * hash) + getLoc().hashCode();
}
if (hasKeyword()) {
hash = (37 * hash) + KEYWORD_FIELD_NUMBER;
hash = (53 * hash) + getKeyword().hashCode();
}
if (hasEntryTime()) {
hash = (37 * hash) + ENTRYTIME_FIELD_NUMBER;
hash = (53 * hash) + getEntryTime();
}
if (hasIsAutoQuery()) {
hash = (37 * hash) + ISAUTOQUERY_FIELD_NUMBER;
hash = (53 * hash) + getIsAutoQuery();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest 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.Lbs.GetLbsLifeListRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest 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.Lbs.GetLbsLifeListRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest 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.Lbs.GetLbsLifeListRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest 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.Lbs.GetLbsLifeListRequest 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.GetLbsLifeListRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.GetLbsLifeListRequest)
wechat.protobuf.Lbs.GetLbsLifeListRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetLbsLifeListRequest.class, wechat.protobuf.Lbs.GetLbsLifeListRequest.Builder.class);
}
// Construct using wechat.protobuf.Lbs.GetLbsLifeListRequest.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();
getBuffFieldBuilder();
getLocFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
opcode_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
scene_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (buffBuilder_ == null) {
buff_ = null;
} else {
buffBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (locBuilder_ == null) {
loc_ = null;
} else {
locBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
keyword_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
entryTime_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
isAutoQuery_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetLbsLifeListRequest getDefaultInstanceForType() {
return wechat.protobuf.Lbs.GetLbsLifeListRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.Lbs.GetLbsLifeListRequest build() {
wechat.protobuf.Lbs.GetLbsLifeListRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetLbsLifeListRequest buildPartial() {
wechat.protobuf.Lbs.GetLbsLifeListRequest result = new wechat.protobuf.Lbs.GetLbsLifeListRequest(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)) {
result.opcode_ = opcode_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scene_ = scene_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (buffBuilder_ == null) {
result.buff_ = buff_;
} else {
result.buff_ = buffBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (locBuilder_ == null) {
result.loc_ = loc_;
} else {
result.loc_ = locBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.keyword_ = keyword_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.entryTime_ = entryTime_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.isAutoQuery_ = isAutoQuery_;
to_bitField0_ |= 0x00000080;
}
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.Lbs.GetLbsLifeListRequest) {
return mergeFrom((wechat.protobuf.Lbs.GetLbsLifeListRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.Lbs.GetLbsLifeListRequest other) {
if (other == wechat.protobuf.Lbs.GetLbsLifeListRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasOpcode()) {
setOpcode(other.getOpcode());
}
if (other.hasScene()) {
setScene(other.getScene());
}
if (other.hasBuff()) {
mergeBuff(other.getBuff());
}
if (other.hasLoc()) {
mergeLoc(other.getLoc());
}
if (other.hasKeyword()) {
bitField0_ |= 0x00000020;
keyword_ = other.keyword_;
onChanged();
}
if (other.hasEntryTime()) {
setEntryTime(other.getEntryTime());
}
if (other.hasIsAutoQuery()) {
setIsAutoQuery(other.getIsAutoQuery());
}
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.Lbs.GetLbsLifeListRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.Lbs.GetLbsLifeListRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.Wechat.BaseRequest baseRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseRequest, wechat.protobuf.Wechat.BaseRequest.Builder, wechat.protobuf.Wechat.BaseRequestOrBuilder> baseRequestBuilder_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
public wechat.protobuf.Wechat.BaseRequest getBaseRequest() {
if (baseRequestBuilder_ == null) {
return baseRequest_ == null ? wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
} else {
return baseRequestBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder setBaseRequest(wechat.protobuf.Wechat.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 baseRequest = 1;
*/
public Builder setBaseRequest(
wechat.protobuf.Wechat.BaseRequest.Builder builderForValue) {
if (baseRequestBuilder_ == null) {
baseRequest_ = builderForValue.build();
onChanged();
} else {
baseRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder mergeBaseRequest(wechat.protobuf.Wechat.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseRequest_ != null &&
baseRequest_ != wechat.protobuf.Wechat.BaseRequest.getDefaultInstance()) {
baseRequest_ =
wechat.protobuf.Wechat.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
} else {
baseRequest_ = value;
}
onChanged();
} else {
baseRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder clearBaseRequest() {
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
onChanged();
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.Wechat.BaseRequest.Builder getBaseRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseRequestFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.Wechat.BaseRequestOrBuilder getBaseRequestOrBuilder() {
if (baseRequestBuilder_ != null) {
return baseRequestBuilder_.getMessageOrBuilder();
} else {
return baseRequest_ == null ?
wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseRequest, wechat.protobuf.Wechat.BaseRequest.Builder, wechat.protobuf.Wechat.BaseRequestOrBuilder>
getBaseRequestFieldBuilder() {
if (baseRequestBuilder_ == null) {
baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseRequest, wechat.protobuf.Wechat.BaseRequest.Builder, wechat.protobuf.Wechat.BaseRequestOrBuilder>(
getBaseRequest(),
getParentForChildren(),
isClean());
baseRequest_ = null;
}
return baseRequestBuilder_;
}
private int opcode_ ;
/**
* optional uint32 opcode = 2;
* @return Whether the opcode field is set.
*/
@java.lang.Override
public boolean hasOpcode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 opcode = 2;
* @return The opcode.
*/
@java.lang.Override
public int getOpcode() {
return opcode_;
}
/**
* optional uint32 opcode = 2;
* @param value The opcode to set.
* @return This builder for chaining.
*/
public Builder setOpcode(int value) {
bitField0_ |= 0x00000002;
opcode_ = value;
onChanged();
return this;
}
/**
* optional uint32 opcode = 2;
* @return This builder for chaining.
*/
public Builder clearOpcode() {
bitField0_ = (bitField0_ & ~0x00000002);
opcode_ = 0;
onChanged();
return this;
}
private int scene_ ;
/**
* optional uint32 scene = 3;
* @return Whether the scene field is set.
*/
@java.lang.Override
public boolean hasScene() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 scene = 3;
* @return The scene.
*/
@java.lang.Override
public int getScene() {
return scene_;
}
/**
* optional uint32 scene = 3;
* @param value The scene to set.
* @return This builder for chaining.
*/
public Builder setScene(int value) {
bitField0_ |= 0x00000004;
scene_ = value;
onChanged();
return this;
}
/**
* optional uint32 scene = 3;
* @return This builder for chaining.
*/
public Builder clearScene() {
bitField0_ = (bitField0_ & ~0x00000004);
scene_ = 0;
onChanged();
return this;
}
private wechat.protobuf.Wechat.SKBuiltinString_ buff_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder> buffBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
* @return Whether the buff field is set.
*/
public boolean hasBuff() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
* @return The buff.
*/
public wechat.protobuf.Wechat.SKBuiltinString_ getBuff() {
if (buffBuilder_ == null) {
return buff_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
} else {
return buffBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
public Builder setBuff(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (buffBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buff_ = value;
onChanged();
} else {
buffBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
public Builder setBuff(
wechat.protobuf.Wechat.SKBuiltinString_.Builder builderForValue) {
if (buffBuilder_ == null) {
buff_ = builderForValue.build();
onChanged();
} else {
buffBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
public Builder mergeBuff(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (buffBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
buff_ != null &&
buff_ != wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance()) {
buff_ =
wechat.protobuf.Wechat.SKBuiltinString_.newBuilder(buff_).mergeFrom(value).buildPartial();
} else {
buff_ = value;
}
onChanged();
} else {
buffBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
public Builder clearBuff() {
if (buffBuilder_ == null) {
buff_ = null;
onChanged();
} else {
buffBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
public wechat.protobuf.Wechat.SKBuiltinString_.Builder getBuffBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getBuffFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getBuffOrBuilder() {
if (buffBuilder_ != null) {
return buffBuilder_.getMessageOrBuilder();
} else {
return buff_ == null ?
wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>
getBuffFieldBuilder() {
if (buffBuilder_ == null) {
buffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>(
getBuff(),
getParentForChildren(),
isClean());
buff_ = null;
}
return buffBuilder_;
}
private wechat.protobuf.Lbs.LbsLocation loc_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Lbs.LbsLocation, wechat.protobuf.Lbs.LbsLocation.Builder, wechat.protobuf.Lbs.LbsLocationOrBuilder> locBuilder_;
/**
* optional .wechat_proto.LbsLocation loc = 5;
* @return Whether the loc field is set.
*/
public boolean hasLoc() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
* @return The loc.
*/
public wechat.protobuf.Lbs.LbsLocation getLoc() {
if (locBuilder_ == null) {
return loc_ == null ? wechat.protobuf.Lbs.LbsLocation.getDefaultInstance() : loc_;
} else {
return locBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
public Builder setLoc(wechat.protobuf.Lbs.LbsLocation value) {
if (locBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loc_ = value;
onChanged();
} else {
locBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
public Builder setLoc(
wechat.protobuf.Lbs.LbsLocation.Builder builderForValue) {
if (locBuilder_ == null) {
loc_ = builderForValue.build();
onChanged();
} else {
locBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
public Builder mergeLoc(wechat.protobuf.Lbs.LbsLocation value) {
if (locBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
loc_ != null &&
loc_ != wechat.protobuf.Lbs.LbsLocation.getDefaultInstance()) {
loc_ =
wechat.protobuf.Lbs.LbsLocation.newBuilder(loc_).mergeFrom(value).buildPartial();
} else {
loc_ = value;
}
onChanged();
} else {
locBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
public Builder clearLoc() {
if (locBuilder_ == null) {
loc_ = null;
onChanged();
} else {
locBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
public wechat.protobuf.Lbs.LbsLocation.Builder getLocBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLocFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
public wechat.protobuf.Lbs.LbsLocationOrBuilder getLocOrBuilder() {
if (locBuilder_ != null) {
return locBuilder_.getMessageOrBuilder();
} else {
return loc_ == null ?
wechat.protobuf.Lbs.LbsLocation.getDefaultInstance() : loc_;
}
}
/**
* optional .wechat_proto.LbsLocation loc = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Lbs.LbsLocation, wechat.protobuf.Lbs.LbsLocation.Builder, wechat.protobuf.Lbs.LbsLocationOrBuilder>
getLocFieldBuilder() {
if (locBuilder_ == null) {
locBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Lbs.LbsLocation, wechat.protobuf.Lbs.LbsLocation.Builder, wechat.protobuf.Lbs.LbsLocationOrBuilder>(
getLoc(),
getParentForChildren(),
isClean());
loc_ = null;
}
return locBuilder_;
}
private java.lang.Object keyword_ = "";
/**
* optional string keyword = 6;
* @return Whether the keyword field is set.
*/
public boolean hasKeyword() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string keyword = 6;
* @return The keyword.
*/
public java.lang.String getKeyword() {
java.lang.Object ref = keyword_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
keyword_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string keyword = 6;
* @return The bytes for keyword.
*/
public com.google.protobuf.ByteString
getKeywordBytes() {
java.lang.Object ref = keyword_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyword_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string keyword = 6;
* @param value The keyword to set.
* @return This builder for chaining.
*/
public Builder setKeyword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
keyword_ = value;
onChanged();
return this;
}
/**
* optional string keyword = 6;
* @return This builder for chaining.
*/
public Builder clearKeyword() {
bitField0_ = (bitField0_ & ~0x00000020);
keyword_ = getDefaultInstance().getKeyword();
onChanged();
return this;
}
/**
* optional string keyword = 6;
* @param value The bytes for keyword to set.
* @return This builder for chaining.
*/
public Builder setKeywordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
keyword_ = value;
onChanged();
return this;
}
private int entryTime_ ;
/**
* optional uint32 entryTime = 7;
* @return Whether the entryTime field is set.
*/
@java.lang.Override
public boolean hasEntryTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 entryTime = 7;
* @return The entryTime.
*/
@java.lang.Override
public int getEntryTime() {
return entryTime_;
}
/**
* optional uint32 entryTime = 7;
* @param value The entryTime to set.
* @return This builder for chaining.
*/
public Builder setEntryTime(int value) {
bitField0_ |= 0x00000040;
entryTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 entryTime = 7;
* @return This builder for chaining.
*/
public Builder clearEntryTime() {
bitField0_ = (bitField0_ & ~0x00000040);
entryTime_ = 0;
onChanged();
return this;
}
private int isAutoQuery_ ;
/**
* optional uint32 isAutoQuery = 8;
* @return Whether the isAutoQuery field is set.
*/
@java.lang.Override
public boolean hasIsAutoQuery() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 isAutoQuery = 8;
* @return The isAutoQuery.
*/
@java.lang.Override
public int getIsAutoQuery() {
return isAutoQuery_;
}
/**
* optional uint32 isAutoQuery = 8;
* @param value The isAutoQuery to set.
* @return This builder for chaining.
*/
public Builder setIsAutoQuery(int value) {
bitField0_ |= 0x00000080;
isAutoQuery_ = value;
onChanged();
return this;
}
/**
* optional uint32 isAutoQuery = 8;
* @return This builder for chaining.
*/
public Builder clearIsAutoQuery() {
bitField0_ = (bitField0_ & ~0x00000080);
isAutoQuery_ = 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.GetLbsLifeListRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.GetLbsLifeListRequest)
private static final wechat.protobuf.Lbs.GetLbsLifeListRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.Lbs.GetLbsLifeListRequest();
}
public static wechat.protobuf.Lbs.GetLbsLifeListRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLbsLifeListRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLbsLifeListRequest(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.Lbs.GetLbsLifeListRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LbsLocationOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.LbsLocation)
com.google.protobuf.MessageOrBuilder {
/**
* optional float longitude = 1;
* @return Whether the longitude field is set.
*/
boolean hasLongitude();
/**
* optional float longitude = 1;
* @return The longitude.
*/
float getLongitude();
/**
* optional float latitude = 2;
* @return Whether the latitude field is set.
*/
boolean hasLatitude();
/**
* optional float latitude = 2;
* @return The latitude.
*/
float getLatitude();
/**
* optional int32 precision = 3;
* @return Whether the precision field is set.
*/
boolean hasPrecision();
/**
* optional int32 precision = 3;
* @return The precision.
*/
int getPrecision();
/**
* optional string macAddr = 4;
* @return Whether the macAddr field is set.
*/
boolean hasMacAddr();
/**
* optional string macAddr = 4;
* @return The macAddr.
*/
java.lang.String getMacAddr();
/**
* optional string macAddr = 4;
* @return The bytes for macAddr.
*/
com.google.protobuf.ByteString
getMacAddrBytes();
/**
* optional string cellId = 5;
* @return Whether the cellId field is set.
*/
boolean hasCellId();
/**
* optional string cellId = 5;
* @return The cellId.
*/
java.lang.String getCellId();
/**
* optional string cellId = 5;
* @return The bytes for cellId.
*/
com.google.protobuf.ByteString
getCellIdBytes();
/**
* optional int32 gpssource = 6;
* @return Whether the gpssource field is set.
*/
boolean hasGpssource();
/**
* optional int32 gpssource = 6;
* @return The gpssource.
*/
int getGpssource();
}
/**
* Protobuf type {@code wechat_proto.LbsLocation}
*/
public static final class LbsLocation extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.LbsLocation)
LbsLocationOrBuilder {
private static final long serialVersionUID = 0L;
// Use LbsLocation.newBuilder() to construct.
private LbsLocation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LbsLocation() {
macAddr_ = "";
cellId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LbsLocation();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LbsLocation(
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 13: {
bitField0_ |= 0x00000001;
longitude_ = input.readFloat();
break;
}
case 21: {
bitField0_ |= 0x00000002;
latitude_ = input.readFloat();
break;
}
case 24: {
bitField0_ |= 0x00000004;
precision_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
macAddr_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
cellId_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
gpssource_ = input.readInt32();
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.Lbs.internal_static_wechat_proto_LbsLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.LbsLocation.class, wechat.protobuf.Lbs.LbsLocation.Builder.class);
}
private int bitField0_;
public static final int LONGITUDE_FIELD_NUMBER = 1;
private float longitude_;
/**
* optional float longitude = 1;
* @return Whether the longitude field is set.
*/
@java.lang.Override
public boolean hasLongitude() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional float longitude = 1;
* @return The longitude.
*/
@java.lang.Override
public float getLongitude() {
return longitude_;
}
public static final int LATITUDE_FIELD_NUMBER = 2;
private float latitude_;
/**
* optional float latitude = 2;
* @return Whether the latitude field is set.
*/
@java.lang.Override
public boolean hasLatitude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional float latitude = 2;
* @return The latitude.
*/
@java.lang.Override
public float getLatitude() {
return latitude_;
}
public static final int PRECISION_FIELD_NUMBER = 3;
private int precision_;
/**
* optional int32 precision = 3;
* @return Whether the precision field is set.
*/
@java.lang.Override
public boolean hasPrecision() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 precision = 3;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
public static final int MACADDR_FIELD_NUMBER = 4;
private volatile java.lang.Object macAddr_;
/**
* optional string macAddr = 4;
* @return Whether the macAddr field is set.
*/
@java.lang.Override
public boolean hasMacAddr() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string macAddr = 4;
* @return The macAddr.
*/
@java.lang.Override
public java.lang.String getMacAddr() {
java.lang.Object ref = macAddr_;
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();
if (bs.isValidUtf8()) {
macAddr_ = s;
}
return s;
}
}
/**
* optional string macAddr = 4;
* @return The bytes for macAddr.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMacAddrBytes() {
java.lang.Object ref = macAddr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
macAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CELLID_FIELD_NUMBER = 5;
private volatile java.lang.Object cellId_;
/**
* optional string cellId = 5;
* @return Whether the cellId field is set.
*/
@java.lang.Override
public boolean hasCellId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string cellId = 5;
* @return The cellId.
*/
@java.lang.Override
public java.lang.String getCellId() {
java.lang.Object ref = cellId_;
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();
if (bs.isValidUtf8()) {
cellId_ = s;
}
return s;
}
}
/**
* optional string cellId = 5;
* @return The bytes for cellId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCellIdBytes() {
java.lang.Object ref = cellId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cellId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GPSSOURCE_FIELD_NUMBER = 6;
private int gpssource_;
/**
* optional int32 gpssource = 6;
* @return Whether the gpssource field is set.
*/
@java.lang.Override
public boolean hasGpssource() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 gpssource = 6;
* @return The gpssource.
*/
@java.lang.Override
public int getGpssource() {
return gpssource_;
}
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.writeFloat(1, longitude_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeFloat(2, latitude_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, precision_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, macAddr_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cellId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(6, gpssource_);
}
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
.computeFloatSize(1, longitude_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, latitude_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, precision_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, macAddr_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cellId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, gpssource_);
}
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.Lbs.LbsLocation)) {
return super.equals(obj);
}
wechat.protobuf.Lbs.LbsLocation other = (wechat.protobuf.Lbs.LbsLocation) obj;
if (hasLongitude() != other.hasLongitude()) return false;
if (hasLongitude()) {
if (java.lang.Float.floatToIntBits(getLongitude())
!= java.lang.Float.floatToIntBits(
other.getLongitude())) return false;
}
if (hasLatitude() != other.hasLatitude()) return false;
if (hasLatitude()) {
if (java.lang.Float.floatToIntBits(getLatitude())
!= java.lang.Float.floatToIntBits(
other.getLatitude())) return false;
}
if (hasPrecision() != other.hasPrecision()) return false;
if (hasPrecision()) {
if (getPrecision()
!= other.getPrecision()) return false;
}
if (hasMacAddr() != other.hasMacAddr()) return false;
if (hasMacAddr()) {
if (!getMacAddr()
.equals(other.getMacAddr())) return false;
}
if (hasCellId() != other.hasCellId()) return false;
if (hasCellId()) {
if (!getCellId()
.equals(other.getCellId())) return false;
}
if (hasGpssource() != other.hasGpssource()) return false;
if (hasGpssource()) {
if (getGpssource()
!= other.getGpssource()) 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 (hasLongitude()) {
hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLongitude());
}
if (hasLatitude()) {
hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getLatitude());
}
if (hasPrecision()) {
hash = (37 * hash) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
}
if (hasMacAddr()) {
hash = (37 * hash) + MACADDR_FIELD_NUMBER;
hash = (53 * hash) + getMacAddr().hashCode();
}
if (hasCellId()) {
hash = (37 * hash) + CELLID_FIELD_NUMBER;
hash = (53 * hash) + getCellId().hashCode();
}
if (hasGpssource()) {
hash = (37 * hash) + GPSSOURCE_FIELD_NUMBER;
hash = (53 * hash) + getGpssource();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.Lbs.LbsLocation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.LbsLocation parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.LbsLocation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.LbsLocation 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.Lbs.LbsLocation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.LbsLocation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.LbsLocation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.LbsLocation 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.Lbs.LbsLocation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.LbsLocation 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.Lbs.LbsLocation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.LbsLocation 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.Lbs.LbsLocation 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.LbsLocation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.LbsLocation)
wechat.protobuf.Lbs.LbsLocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLocation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLocation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.LbsLocation.class, wechat.protobuf.Lbs.LbsLocation.Builder.class);
}
// Construct using wechat.protobuf.Lbs.LbsLocation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
longitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000001);
latitude_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
precision_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
macAddr_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
cellId_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
gpssource_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLocation_descriptor;
}
@java.lang.Override
public wechat.protobuf.Lbs.LbsLocation getDefaultInstanceForType() {
return wechat.protobuf.Lbs.LbsLocation.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.Lbs.LbsLocation build() {
wechat.protobuf.Lbs.LbsLocation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.Lbs.LbsLocation buildPartial() {
wechat.protobuf.Lbs.LbsLocation result = new wechat.protobuf.Lbs.LbsLocation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.longitude_ = longitude_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.latitude_ = latitude_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.precision_ = precision_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.macAddr_ = macAddr_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.cellId_ = cellId_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.gpssource_ = gpssource_;
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.Lbs.LbsLocation) {
return mergeFrom((wechat.protobuf.Lbs.LbsLocation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.Lbs.LbsLocation other) {
if (other == wechat.protobuf.Lbs.LbsLocation.getDefaultInstance()) return this;
if (other.hasLongitude()) {
setLongitude(other.getLongitude());
}
if (other.hasLatitude()) {
setLatitude(other.getLatitude());
}
if (other.hasPrecision()) {
setPrecision(other.getPrecision());
}
if (other.hasMacAddr()) {
bitField0_ |= 0x00000008;
macAddr_ = other.macAddr_;
onChanged();
}
if (other.hasCellId()) {
bitField0_ |= 0x00000010;
cellId_ = other.cellId_;
onChanged();
}
if (other.hasGpssource()) {
setGpssource(other.getGpssource());
}
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.Lbs.LbsLocation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.Lbs.LbsLocation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private float longitude_ ;
/**
* optional float longitude = 1;
* @return Whether the longitude field is set.
*/
@java.lang.Override
public boolean hasLongitude() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional float longitude = 1;
* @return The longitude.
*/
@java.lang.Override
public float getLongitude() {
return longitude_;
}
/**
* optional float longitude = 1;
* @param value The longitude to set.
* @return This builder for chaining.
*/
public Builder setLongitude(float value) {
bitField0_ |= 0x00000001;
longitude_ = value;
onChanged();
return this;
}
/**
* optional float longitude = 1;
* @return This builder for chaining.
*/
public Builder clearLongitude() {
bitField0_ = (bitField0_ & ~0x00000001);
longitude_ = 0F;
onChanged();
return this;
}
private float latitude_ ;
/**
* optional float latitude = 2;
* @return Whether the latitude field is set.
*/
@java.lang.Override
public boolean hasLatitude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional float latitude = 2;
* @return The latitude.
*/
@java.lang.Override
public float getLatitude() {
return latitude_;
}
/**
* optional float latitude = 2;
* @param value The latitude to set.
* @return This builder for chaining.
*/
public Builder setLatitude(float value) {
bitField0_ |= 0x00000002;
latitude_ = value;
onChanged();
return this;
}
/**
* optional float latitude = 2;
* @return This builder for chaining.
*/
public Builder clearLatitude() {
bitField0_ = (bitField0_ & ~0x00000002);
latitude_ = 0F;
onChanged();
return this;
}
private int precision_ ;
/**
* optional int32 precision = 3;
* @return Whether the precision field is set.
*/
@java.lang.Override
public boolean hasPrecision() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 precision = 3;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
/**
* optional int32 precision = 3;
* @param value The precision to set.
* @return This builder for chaining.
*/
public Builder setPrecision(int value) {
bitField0_ |= 0x00000004;
precision_ = value;
onChanged();
return this;
}
/**
* optional int32 precision = 3;
* @return This builder for chaining.
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000004);
precision_ = 0;
onChanged();
return this;
}
private java.lang.Object macAddr_ = "";
/**
* optional string macAddr = 4;
* @return Whether the macAddr field is set.
*/
public boolean hasMacAddr() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string macAddr = 4;
* @return The macAddr.
*/
public java.lang.String getMacAddr() {
java.lang.Object ref = macAddr_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
macAddr_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string macAddr = 4;
* @return The bytes for macAddr.
*/
public com.google.protobuf.ByteString
getMacAddrBytes() {
java.lang.Object ref = macAddr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
macAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string macAddr = 4;
* @param value The macAddr to set.
* @return This builder for chaining.
*/
public Builder setMacAddr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
macAddr_ = value;
onChanged();
return this;
}
/**
* optional string macAddr = 4;
* @return This builder for chaining.
*/
public Builder clearMacAddr() {
bitField0_ = (bitField0_ & ~0x00000008);
macAddr_ = getDefaultInstance().getMacAddr();
onChanged();
return this;
}
/**
* optional string macAddr = 4;
* @param value The bytes for macAddr to set.
* @return This builder for chaining.
*/
public Builder setMacAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
macAddr_ = value;
onChanged();
return this;
}
private java.lang.Object cellId_ = "";
/**
* optional string cellId = 5;
* @return Whether the cellId field is set.
*/
public boolean hasCellId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string cellId = 5;
* @return The cellId.
*/
public java.lang.String getCellId() {
java.lang.Object ref = cellId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
cellId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string cellId = 5;
* @return The bytes for cellId.
*/
public com.google.protobuf.ByteString
getCellIdBytes() {
java.lang.Object ref = cellId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cellId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string cellId = 5;
* @param value The cellId to set.
* @return This builder for chaining.
*/
public Builder setCellId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
cellId_ = value;
onChanged();
return this;
}
/**
* optional string cellId = 5;
* @return This builder for chaining.
*/
public Builder clearCellId() {
bitField0_ = (bitField0_ & ~0x00000010);
cellId_ = getDefaultInstance().getCellId();
onChanged();
return this;
}
/**
* optional string cellId = 5;
* @param value The bytes for cellId to set.
* @return This builder for chaining.
*/
public Builder setCellIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
cellId_ = value;
onChanged();
return this;
}
private int gpssource_ ;
/**
* optional int32 gpssource = 6;
* @return Whether the gpssource field is set.
*/
@java.lang.Override
public boolean hasGpssource() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 gpssource = 6;
* @return The gpssource.
*/
@java.lang.Override
public int getGpssource() {
return gpssource_;
}
/**
* optional int32 gpssource = 6;
* @param value The gpssource to set.
* @return This builder for chaining.
*/
public Builder setGpssource(int value) {
bitField0_ |= 0x00000020;
gpssource_ = value;
onChanged();
return this;
}
/**
* optional int32 gpssource = 6;
* @return This builder for chaining.
*/
public Builder clearGpssource() {
bitField0_ = (bitField0_ & ~0x00000020);
gpssource_ = 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.LbsLocation)
}
// @@protoc_insertion_point(class_scope:wechat_proto.LbsLocation)
private static final wechat.protobuf.Lbs.LbsLocation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.Lbs.LbsLocation();
}
public static wechat.protobuf.Lbs.LbsLocation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LbsLocation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LbsLocation(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.Lbs.LbsLocation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetLbsLifeListResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.GetLbsLifeListResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
boolean hasBaseResponse();
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
wechat.protobuf.Wechat.BaseResponse getBaseResponse();
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
wechat.protobuf.Wechat.BaseResponseOrBuilder getBaseResponseOrBuilder();
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
* @return Whether the buff field is set.
*/
boolean hasBuff();
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
* @return The buff.
*/
wechat.protobuf.Wechat.SKBuiltinString_ getBuff();
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getBuffOrBuilder();
/**
* optional uint32 iconNum = 3;
* @return Whether the iconNum field is set.
*/
boolean hasIconNum();
/**
* optional uint32 iconNum = 3;
* @return The iconNum.
*/
int getIconNum();
/**
* repeated string iconList = 4;
* @return A list containing the iconList.
*/
java.util.List
getIconListList();
/**
* repeated string iconList = 4;
* @return The count of iconList.
*/
int getIconListCount();
/**
* repeated string iconList = 4;
* @param index The index of the element to return.
* @return The iconList at the given index.
*/
java.lang.String getIconList(int index);
/**
* repeated string iconList = 4;
* @param index The index of the value to return.
* @return The bytes of the iconList at the given index.
*/
com.google.protobuf.ByteString
getIconListBytes(int index);
/**
* optional uint32 lifeNum = 5;
* @return Whether the lifeNum field is set.
*/
boolean hasLifeNum();
/**
* optional uint32 lifeNum = 5;
* @return The lifeNum.
*/
int getLifeNum();
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
java.util.List
getLifeListList();
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
wechat.protobuf.Lbs.LbsLife getLifeList(int index);
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
int getLifeListCount();
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
java.util.List extends wechat.protobuf.Lbs.LbsLifeOrBuilder>
getLifeListOrBuilderList();
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
wechat.protobuf.Lbs.LbsLifeOrBuilder getLifeListOrBuilder(
int index);
/**
* optional uint32 continueFlag = 7;
* @return Whether the continueFlag field is set.
*/
boolean hasContinueFlag();
/**
* optional uint32 continueFlag = 7;
* @return The continueFlag.
*/
int getContinueFlag();
/**
* optional string logoUrl = 8;
* @return Whether the logoUrl field is set.
*/
boolean hasLogoUrl();
/**
* optional string logoUrl = 8;
* @return The logoUrl.
*/
java.lang.String getLogoUrl();
/**
* optional string logoUrl = 8;
* @return The bytes for logoUrl.
*/
com.google.protobuf.ByteString
getLogoUrlBytes();
/**
* optional string searchId = 9;
* @return Whether the searchId field is set.
*/
boolean hasSearchId();
/**
* optional string searchId = 9;
* @return The searchId.
*/
java.lang.String getSearchId();
/**
* optional string searchId = 9;
* @return The bytes for searchId.
*/
com.google.protobuf.ByteString
getSearchIdBytes();
/**
* optional int32 autoQueryInterval = 10;
* @return Whether the autoQueryInterval field is set.
*/
boolean hasAutoQueryInterval();
/**
* optional int32 autoQueryInterval = 10;
* @return The autoQueryInterval.
*/
int getAutoQueryInterval();
}
/**
* Protobuf type {@code wechat_proto.GetLbsLifeListResponse}
*/
public static final class GetLbsLifeListResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.GetLbsLifeListResponse)
GetLbsLifeListResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetLbsLifeListResponse.newBuilder() to construct.
private GetLbsLifeListResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetLbsLifeListResponse() {
iconList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
lifeList_ = java.util.Collections.emptyList();
logoUrl_ = "";
searchId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetLbsLifeListResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetLbsLifeListResponse(
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.Wechat.BaseResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseResponse_.toBuilder();
}
baseResponse_ = input.readMessage(wechat.protobuf.Wechat.BaseResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseResponse_);
baseResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
wechat.protobuf.Wechat.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = buff_.toBuilder();
}
buff_ = input.readMessage(wechat.protobuf.Wechat.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(buff_);
buff_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
iconNum_ = input.readUInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
iconList_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
iconList_.add(bs);
break;
}
case 40: {
bitField0_ |= 0x00000008;
lifeNum_ = input.readUInt32();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
lifeList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
lifeList_.add(
input.readMessage(wechat.protobuf.Lbs.LbsLife.PARSER, extensionRegistry));
break;
}
case 56: {
bitField0_ |= 0x00000010;
continueFlag_ = input.readUInt32();
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
logoUrl_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
searchId_ = bs;
break;
}
case 80: {
bitField0_ |= 0x00000080;
autoQueryInterval_ = input.readInt32();
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 {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
iconList_ = iconList_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
lifeList_ = java.util.Collections.unmodifiableList(lifeList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetLbsLifeListResponse.class, wechat.protobuf.Lbs.GetLbsLifeListResponse.Builder.class);
}
private int bitField0_;
public static final int BASERESPONSE_FIELD_NUMBER = 1;
private wechat.protobuf.Wechat.BaseResponse baseResponse_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
@java.lang.Override
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseResponse getBaseResponse() {
return baseResponse_ == null ? wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseResponseOrBuilder getBaseResponseOrBuilder() {
return baseResponse_ == null ? wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
}
public static final int BUFF_FIELD_NUMBER = 2;
private wechat.protobuf.Wechat.SKBuiltinString_ buff_;
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
* @return Whether the buff field is set.
*/
@java.lang.Override
public boolean hasBuff() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
* @return The buff.
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_ getBuff() {
return buff_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getBuffOrBuilder() {
return buff_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
}
public static final int ICONNUM_FIELD_NUMBER = 3;
private int iconNum_;
/**
* optional uint32 iconNum = 3;
* @return Whether the iconNum field is set.
*/
@java.lang.Override
public boolean hasIconNum() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 iconNum = 3;
* @return The iconNum.
*/
@java.lang.Override
public int getIconNum() {
return iconNum_;
}
public static final int ICONLIST_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList iconList_;
/**
* repeated string iconList = 4;
* @return A list containing the iconList.
*/
public com.google.protobuf.ProtocolStringList
getIconListList() {
return iconList_;
}
/**
* repeated string iconList = 4;
* @return The count of iconList.
*/
public int getIconListCount() {
return iconList_.size();
}
/**
* repeated string iconList = 4;
* @param index The index of the element to return.
* @return The iconList at the given index.
*/
public java.lang.String getIconList(int index) {
return iconList_.get(index);
}
/**
* repeated string iconList = 4;
* @param index The index of the value to return.
* @return The bytes of the iconList at the given index.
*/
public com.google.protobuf.ByteString
getIconListBytes(int index) {
return iconList_.getByteString(index);
}
public static final int LIFENUM_FIELD_NUMBER = 5;
private int lifeNum_;
/**
* optional uint32 lifeNum = 5;
* @return Whether the lifeNum field is set.
*/
@java.lang.Override
public boolean hasLifeNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 lifeNum = 5;
* @return The lifeNum.
*/
@java.lang.Override
public int getLifeNum() {
return lifeNum_;
}
public static final int LIFELIST_FIELD_NUMBER = 6;
private java.util.List lifeList_;
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
@java.lang.Override
public java.util.List getLifeListList() {
return lifeList_;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
@java.lang.Override
public java.util.List extends wechat.protobuf.Lbs.LbsLifeOrBuilder>
getLifeListOrBuilderList() {
return lifeList_;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
@java.lang.Override
public int getLifeListCount() {
return lifeList_.size();
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
@java.lang.Override
public wechat.protobuf.Lbs.LbsLife getLifeList(int index) {
return lifeList_.get(index);
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
@java.lang.Override
public wechat.protobuf.Lbs.LbsLifeOrBuilder getLifeListOrBuilder(
int index) {
return lifeList_.get(index);
}
public static final int CONTINUEFLAG_FIELD_NUMBER = 7;
private int continueFlag_;
/**
* optional uint32 continueFlag = 7;
* @return Whether the continueFlag field is set.
*/
@java.lang.Override
public boolean hasContinueFlag() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 continueFlag = 7;
* @return The continueFlag.
*/
@java.lang.Override
public int getContinueFlag() {
return continueFlag_;
}
public static final int LOGOURL_FIELD_NUMBER = 8;
private volatile java.lang.Object logoUrl_;
/**
* optional string logoUrl = 8;
* @return Whether the logoUrl field is set.
*/
@java.lang.Override
public boolean hasLogoUrl() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string logoUrl = 8;
* @return The logoUrl.
*/
@java.lang.Override
public java.lang.String getLogoUrl() {
java.lang.Object ref = logoUrl_;
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();
if (bs.isValidUtf8()) {
logoUrl_ = s;
}
return s;
}
}
/**
* optional string logoUrl = 8;
* @return The bytes for logoUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLogoUrlBytes() {
java.lang.Object ref = logoUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEARCHID_FIELD_NUMBER = 9;
private volatile java.lang.Object searchId_;
/**
* optional string searchId = 9;
* @return Whether the searchId field is set.
*/
@java.lang.Override
public boolean hasSearchId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string searchId = 9;
* @return The searchId.
*/
@java.lang.Override
public java.lang.String getSearchId() {
java.lang.Object ref = searchId_;
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();
if (bs.isValidUtf8()) {
searchId_ = s;
}
return s;
}
}
/**
* optional string searchId = 9;
* @return The bytes for searchId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSearchIdBytes() {
java.lang.Object ref = searchId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTOQUERYINTERVAL_FIELD_NUMBER = 10;
private int autoQueryInterval_;
/**
* optional int32 autoQueryInterval = 10;
* @return Whether the autoQueryInterval field is set.
*/
@java.lang.Override
public boolean hasAutoQueryInterval() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 autoQueryInterval = 10;
* @return The autoQueryInterval.
*/
@java.lang.Override
public int getAutoQueryInterval() {
return autoQueryInterval_;
}
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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getBuff());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, iconNum_);
}
for (int i = 0; i < iconList_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, iconList_.getRaw(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(5, lifeNum_);
}
for (int i = 0; i < lifeList_.size(); i++) {
output.writeMessage(6, lifeList_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(7, continueFlag_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, logoUrl_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, searchId_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt32(10, autoQueryInterval_);
}
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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getBuff());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, iconNum_);
}
{
int dataSize = 0;
for (int i = 0; i < iconList_.size(); i++) {
dataSize += computeStringSizeNoTag(iconList_.getRaw(i));
}
size += dataSize;
size += 1 * getIconListList().size();
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, lifeNum_);
}
for (int i = 0; i < lifeList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, lifeList_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, continueFlag_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, logoUrl_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, searchId_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, autoQueryInterval_);
}
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.Lbs.GetLbsLifeListResponse)) {
return super.equals(obj);
}
wechat.protobuf.Lbs.GetLbsLifeListResponse other = (wechat.protobuf.Lbs.GetLbsLifeListResponse) obj;
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasBuff() != other.hasBuff()) return false;
if (hasBuff()) {
if (!getBuff()
.equals(other.getBuff())) return false;
}
if (hasIconNum() != other.hasIconNum()) return false;
if (hasIconNum()) {
if (getIconNum()
!= other.getIconNum()) return false;
}
if (!getIconListList()
.equals(other.getIconListList())) return false;
if (hasLifeNum() != other.hasLifeNum()) return false;
if (hasLifeNum()) {
if (getLifeNum()
!= other.getLifeNum()) return false;
}
if (!getLifeListList()
.equals(other.getLifeListList())) return false;
if (hasContinueFlag() != other.hasContinueFlag()) return false;
if (hasContinueFlag()) {
if (getContinueFlag()
!= other.getContinueFlag()) return false;
}
if (hasLogoUrl() != other.hasLogoUrl()) return false;
if (hasLogoUrl()) {
if (!getLogoUrl()
.equals(other.getLogoUrl())) return false;
}
if (hasSearchId() != other.hasSearchId()) return false;
if (hasSearchId()) {
if (!getSearchId()
.equals(other.getSearchId())) return false;
}
if (hasAutoQueryInterval() != other.hasAutoQueryInterval()) return false;
if (hasAutoQueryInterval()) {
if (getAutoQueryInterval()
!= other.getAutoQueryInterval()) 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 (hasBaseResponse()) {
hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBaseResponse().hashCode();
}
if (hasBuff()) {
hash = (37 * hash) + BUFF_FIELD_NUMBER;
hash = (53 * hash) + getBuff().hashCode();
}
if (hasIconNum()) {
hash = (37 * hash) + ICONNUM_FIELD_NUMBER;
hash = (53 * hash) + getIconNum();
}
if (getIconListCount() > 0) {
hash = (37 * hash) + ICONLIST_FIELD_NUMBER;
hash = (53 * hash) + getIconListList().hashCode();
}
if (hasLifeNum()) {
hash = (37 * hash) + LIFENUM_FIELD_NUMBER;
hash = (53 * hash) + getLifeNum();
}
if (getLifeListCount() > 0) {
hash = (37 * hash) + LIFELIST_FIELD_NUMBER;
hash = (53 * hash) + getLifeListList().hashCode();
}
if (hasContinueFlag()) {
hash = (37 * hash) + CONTINUEFLAG_FIELD_NUMBER;
hash = (53 * hash) + getContinueFlag();
}
if (hasLogoUrl()) {
hash = (37 * hash) + LOGOURL_FIELD_NUMBER;
hash = (53 * hash) + getLogoUrl().hashCode();
}
if (hasSearchId()) {
hash = (37 * hash) + SEARCHID_FIELD_NUMBER;
hash = (53 * hash) + getSearchId().hashCode();
}
if (hasAutoQueryInterval()) {
hash = (37 * hash) + AUTOQUERYINTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getAutoQueryInterval();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse 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.Lbs.GetLbsLifeListResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse 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.Lbs.GetLbsLifeListResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse 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.Lbs.GetLbsLifeListResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse 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.Lbs.GetLbsLifeListResponse 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.GetLbsLifeListResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.GetLbsLifeListResponse)
wechat.protobuf.Lbs.GetLbsLifeListResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetLbsLifeListResponse.class, wechat.protobuf.Lbs.GetLbsLifeListResponse.Builder.class);
}
// Construct using wechat.protobuf.Lbs.GetLbsLifeListResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseResponseFieldBuilder();
getBuffFieldBuilder();
getLifeListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (buffBuilder_ == null) {
buff_ = null;
} else {
buffBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
iconNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
iconList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
lifeNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
if (lifeListBuilder_ == null) {
lifeList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
lifeListBuilder_.clear();
}
continueFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
logoUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
searchId_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
autoQueryInterval_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetLbsLifeListResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetLbsLifeListResponse getDefaultInstanceForType() {
return wechat.protobuf.Lbs.GetLbsLifeListResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.Lbs.GetLbsLifeListResponse build() {
wechat.protobuf.Lbs.GetLbsLifeListResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetLbsLifeListResponse buildPartial() {
wechat.protobuf.Lbs.GetLbsLifeListResponse result = new wechat.protobuf.Lbs.GetLbsLifeListResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseResponseBuilder_ == null) {
result.baseResponse_ = baseResponse_;
} else {
result.baseResponse_ = baseResponseBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (buffBuilder_ == null) {
result.buff_ = buff_;
} else {
result.buff_ = buffBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.iconNum_ = iconNum_;
to_bitField0_ |= 0x00000004;
}
if (((bitField0_ & 0x00000008) != 0)) {
iconList_ = iconList_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.iconList_ = iconList_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lifeNum_ = lifeNum_;
to_bitField0_ |= 0x00000008;
}
if (lifeListBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
lifeList_ = java.util.Collections.unmodifiableList(lifeList_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.lifeList_ = lifeList_;
} else {
result.lifeList_ = lifeListBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.continueFlag_ = continueFlag_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.logoUrl_ = logoUrl_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.searchId_ = searchId_;
if (((from_bitField0_ & 0x00000200) != 0)) {
result.autoQueryInterval_ = autoQueryInterval_;
to_bitField0_ |= 0x00000080;
}
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.Lbs.GetLbsLifeListResponse) {
return mergeFrom((wechat.protobuf.Lbs.GetLbsLifeListResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.Lbs.GetLbsLifeListResponse other) {
if (other == wechat.protobuf.Lbs.GetLbsLifeListResponse.getDefaultInstance()) return this;
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasBuff()) {
mergeBuff(other.getBuff());
}
if (other.hasIconNum()) {
setIconNum(other.getIconNum());
}
if (!other.iconList_.isEmpty()) {
if (iconList_.isEmpty()) {
iconList_ = other.iconList_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureIconListIsMutable();
iconList_.addAll(other.iconList_);
}
onChanged();
}
if (other.hasLifeNum()) {
setLifeNum(other.getLifeNum());
}
if (lifeListBuilder_ == null) {
if (!other.lifeList_.isEmpty()) {
if (lifeList_.isEmpty()) {
lifeList_ = other.lifeList_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureLifeListIsMutable();
lifeList_.addAll(other.lifeList_);
}
onChanged();
}
} else {
if (!other.lifeList_.isEmpty()) {
if (lifeListBuilder_.isEmpty()) {
lifeListBuilder_.dispose();
lifeListBuilder_ = null;
lifeList_ = other.lifeList_;
bitField0_ = (bitField0_ & ~0x00000020);
lifeListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLifeListFieldBuilder() : null;
} else {
lifeListBuilder_.addAllMessages(other.lifeList_);
}
}
}
if (other.hasContinueFlag()) {
setContinueFlag(other.getContinueFlag());
}
if (other.hasLogoUrl()) {
bitField0_ |= 0x00000080;
logoUrl_ = other.logoUrl_;
onChanged();
}
if (other.hasSearchId()) {
bitField0_ |= 0x00000100;
searchId_ = other.searchId_;
onChanged();
}
if (other.hasAutoQueryInterval()) {
setAutoQueryInterval(other.getAutoQueryInterval());
}
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.Lbs.GetLbsLifeListResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.Lbs.GetLbsLifeListResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.Wechat.BaseResponse baseResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseResponse, wechat.protobuf.Wechat.BaseResponse.Builder, wechat.protobuf.Wechat.BaseResponseOrBuilder> baseResponseBuilder_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
public wechat.protobuf.Wechat.BaseResponse getBaseResponse() {
if (baseResponseBuilder_ == null) {
return baseResponse_ == null ? wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
} else {
return baseResponseBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(wechat.protobuf.Wechat.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseResponse_ = value;
onChanged();
} else {
baseResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(
wechat.protobuf.Wechat.BaseResponse.Builder builderForValue) {
if (baseResponseBuilder_ == null) {
baseResponse_ = builderForValue.build();
onChanged();
} else {
baseResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder mergeBaseResponse(wechat.protobuf.Wechat.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseResponse_ != null &&
baseResponse_ != wechat.protobuf.Wechat.BaseResponse.getDefaultInstance()) {
baseResponse_ =
wechat.protobuf.Wechat.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
} else {
baseResponse_ = value;
}
onChanged();
} else {
baseResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder clearBaseResponse() {
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
onChanged();
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.Wechat.BaseResponse.Builder getBaseResponseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseResponseFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.Wechat.BaseResponseOrBuilder getBaseResponseOrBuilder() {
if (baseResponseBuilder_ != null) {
return baseResponseBuilder_.getMessageOrBuilder();
} else {
return baseResponse_ == null ?
wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseResponse, wechat.protobuf.Wechat.BaseResponse.Builder, wechat.protobuf.Wechat.BaseResponseOrBuilder>
getBaseResponseFieldBuilder() {
if (baseResponseBuilder_ == null) {
baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseResponse, wechat.protobuf.Wechat.BaseResponse.Builder, wechat.protobuf.Wechat.BaseResponseOrBuilder>(
getBaseResponse(),
getParentForChildren(),
isClean());
baseResponse_ = null;
}
return baseResponseBuilder_;
}
private wechat.protobuf.Wechat.SKBuiltinString_ buff_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder> buffBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
* @return Whether the buff field is set.
*/
public boolean hasBuff() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
* @return The buff.
*/
public wechat.protobuf.Wechat.SKBuiltinString_ getBuff() {
if (buffBuilder_ == null) {
return buff_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
} else {
return buffBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
public Builder setBuff(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (buffBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
buff_ = value;
onChanged();
} else {
buffBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
public Builder setBuff(
wechat.protobuf.Wechat.SKBuiltinString_.Builder builderForValue) {
if (buffBuilder_ == null) {
buff_ = builderForValue.build();
onChanged();
} else {
buffBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
public Builder mergeBuff(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (buffBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
buff_ != null &&
buff_ != wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance()) {
buff_ =
wechat.protobuf.Wechat.SKBuiltinString_.newBuilder(buff_).mergeFrom(value).buildPartial();
} else {
buff_ = value;
}
onChanged();
} else {
buffBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
public Builder clearBuff() {
if (buffBuilder_ == null) {
buff_ = null;
onChanged();
} else {
buffBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
public wechat.protobuf.Wechat.SKBuiltinString_.Builder getBuffBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getBuffFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getBuffOrBuilder() {
if (buffBuilder_ != null) {
return buffBuilder_.getMessageOrBuilder();
} else {
return buff_ == null ?
wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : buff_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ buff = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>
getBuffFieldBuilder() {
if (buffBuilder_ == null) {
buffBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>(
getBuff(),
getParentForChildren(),
isClean());
buff_ = null;
}
return buffBuilder_;
}
private int iconNum_ ;
/**
* optional uint32 iconNum = 3;
* @return Whether the iconNum field is set.
*/
@java.lang.Override
public boolean hasIconNum() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 iconNum = 3;
* @return The iconNum.
*/
@java.lang.Override
public int getIconNum() {
return iconNum_;
}
/**
* optional uint32 iconNum = 3;
* @param value The iconNum to set.
* @return This builder for chaining.
*/
public Builder setIconNum(int value) {
bitField0_ |= 0x00000004;
iconNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 iconNum = 3;
* @return This builder for chaining.
*/
public Builder clearIconNum() {
bitField0_ = (bitField0_ & ~0x00000004);
iconNum_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList iconList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIconListIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
iconList_ = new com.google.protobuf.LazyStringArrayList(iconList_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string iconList = 4;
* @return A list containing the iconList.
*/
public com.google.protobuf.ProtocolStringList
getIconListList() {
return iconList_.getUnmodifiableView();
}
/**
* repeated string iconList = 4;
* @return The count of iconList.
*/
public int getIconListCount() {
return iconList_.size();
}
/**
* repeated string iconList = 4;
* @param index The index of the element to return.
* @return The iconList at the given index.
*/
public java.lang.String getIconList(int index) {
return iconList_.get(index);
}
/**
* repeated string iconList = 4;
* @param index The index of the value to return.
* @return The bytes of the iconList at the given index.
*/
public com.google.protobuf.ByteString
getIconListBytes(int index) {
return iconList_.getByteString(index);
}
/**
* repeated string iconList = 4;
* @param index The index to set the value at.
* @param value The iconList to set.
* @return This builder for chaining.
*/
public Builder setIconList(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIconListIsMutable();
iconList_.set(index, value);
onChanged();
return this;
}
/**
* repeated string iconList = 4;
* @param value The iconList to add.
* @return This builder for chaining.
*/
public Builder addIconList(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIconListIsMutable();
iconList_.add(value);
onChanged();
return this;
}
/**
* repeated string iconList = 4;
* @param values The iconList to add.
* @return This builder for chaining.
*/
public Builder addAllIconList(
java.lang.Iterable values) {
ensureIconListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, iconList_);
onChanged();
return this;
}
/**
* repeated string iconList = 4;
* @return This builder for chaining.
*/
public Builder clearIconList() {
iconList_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string iconList = 4;
* @param value The bytes of the iconList to add.
* @return This builder for chaining.
*/
public Builder addIconListBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIconListIsMutable();
iconList_.add(value);
onChanged();
return this;
}
private int lifeNum_ ;
/**
* optional uint32 lifeNum = 5;
* @return Whether the lifeNum field is set.
*/
@java.lang.Override
public boolean hasLifeNum() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 lifeNum = 5;
* @return The lifeNum.
*/
@java.lang.Override
public int getLifeNum() {
return lifeNum_;
}
/**
* optional uint32 lifeNum = 5;
* @param value The lifeNum to set.
* @return This builder for chaining.
*/
public Builder setLifeNum(int value) {
bitField0_ |= 0x00000010;
lifeNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 lifeNum = 5;
* @return This builder for chaining.
*/
public Builder clearLifeNum() {
bitField0_ = (bitField0_ & ~0x00000010);
lifeNum_ = 0;
onChanged();
return this;
}
private java.util.List lifeList_ =
java.util.Collections.emptyList();
private void ensureLifeListIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
lifeList_ = new java.util.ArrayList(lifeList_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.Lbs.LbsLife, wechat.protobuf.Lbs.LbsLife.Builder, wechat.protobuf.Lbs.LbsLifeOrBuilder> lifeListBuilder_;
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public java.util.List getLifeListList() {
if (lifeListBuilder_ == null) {
return java.util.Collections.unmodifiableList(lifeList_);
} else {
return lifeListBuilder_.getMessageList();
}
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public int getLifeListCount() {
if (lifeListBuilder_ == null) {
return lifeList_.size();
} else {
return lifeListBuilder_.getCount();
}
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public wechat.protobuf.Lbs.LbsLife getLifeList(int index) {
if (lifeListBuilder_ == null) {
return lifeList_.get(index);
} else {
return lifeListBuilder_.getMessage(index);
}
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder setLifeList(
int index, wechat.protobuf.Lbs.LbsLife value) {
if (lifeListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLifeListIsMutable();
lifeList_.set(index, value);
onChanged();
} else {
lifeListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder setLifeList(
int index, wechat.protobuf.Lbs.LbsLife.Builder builderForValue) {
if (lifeListBuilder_ == null) {
ensureLifeListIsMutable();
lifeList_.set(index, builderForValue.build());
onChanged();
} else {
lifeListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder addLifeList(wechat.protobuf.Lbs.LbsLife value) {
if (lifeListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLifeListIsMutable();
lifeList_.add(value);
onChanged();
} else {
lifeListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder addLifeList(
int index, wechat.protobuf.Lbs.LbsLife value) {
if (lifeListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLifeListIsMutable();
lifeList_.add(index, value);
onChanged();
} else {
lifeListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder addLifeList(
wechat.protobuf.Lbs.LbsLife.Builder builderForValue) {
if (lifeListBuilder_ == null) {
ensureLifeListIsMutable();
lifeList_.add(builderForValue.build());
onChanged();
} else {
lifeListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder addLifeList(
int index, wechat.protobuf.Lbs.LbsLife.Builder builderForValue) {
if (lifeListBuilder_ == null) {
ensureLifeListIsMutable();
lifeList_.add(index, builderForValue.build());
onChanged();
} else {
lifeListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder addAllLifeList(
java.lang.Iterable extends wechat.protobuf.Lbs.LbsLife> values) {
if (lifeListBuilder_ == null) {
ensureLifeListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, lifeList_);
onChanged();
} else {
lifeListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder clearLifeList() {
if (lifeListBuilder_ == null) {
lifeList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
lifeListBuilder_.clear();
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public Builder removeLifeList(int index) {
if (lifeListBuilder_ == null) {
ensureLifeListIsMutable();
lifeList_.remove(index);
onChanged();
} else {
lifeListBuilder_.remove(index);
}
return this;
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public wechat.protobuf.Lbs.LbsLife.Builder getLifeListBuilder(
int index) {
return getLifeListFieldBuilder().getBuilder(index);
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public wechat.protobuf.Lbs.LbsLifeOrBuilder getLifeListOrBuilder(
int index) {
if (lifeListBuilder_ == null) {
return lifeList_.get(index); } else {
return lifeListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public java.util.List extends wechat.protobuf.Lbs.LbsLifeOrBuilder>
getLifeListOrBuilderList() {
if (lifeListBuilder_ != null) {
return lifeListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(lifeList_);
}
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public wechat.protobuf.Lbs.LbsLife.Builder addLifeListBuilder() {
return getLifeListFieldBuilder().addBuilder(
wechat.protobuf.Lbs.LbsLife.getDefaultInstance());
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public wechat.protobuf.Lbs.LbsLife.Builder addLifeListBuilder(
int index) {
return getLifeListFieldBuilder().addBuilder(
index, wechat.protobuf.Lbs.LbsLife.getDefaultInstance());
}
/**
* repeated .wechat_proto.LbsLife lifeList = 6;
*/
public java.util.List
getLifeListBuilderList() {
return getLifeListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.Lbs.LbsLife, wechat.protobuf.Lbs.LbsLife.Builder, wechat.protobuf.Lbs.LbsLifeOrBuilder>
getLifeListFieldBuilder() {
if (lifeListBuilder_ == null) {
lifeListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.Lbs.LbsLife, wechat.protobuf.Lbs.LbsLife.Builder, wechat.protobuf.Lbs.LbsLifeOrBuilder>(
lifeList_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
lifeList_ = null;
}
return lifeListBuilder_;
}
private int continueFlag_ ;
/**
* optional uint32 continueFlag = 7;
* @return Whether the continueFlag field is set.
*/
@java.lang.Override
public boolean hasContinueFlag() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 continueFlag = 7;
* @return The continueFlag.
*/
@java.lang.Override
public int getContinueFlag() {
return continueFlag_;
}
/**
* optional uint32 continueFlag = 7;
* @param value The continueFlag to set.
* @return This builder for chaining.
*/
public Builder setContinueFlag(int value) {
bitField0_ |= 0x00000040;
continueFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 continueFlag = 7;
* @return This builder for chaining.
*/
public Builder clearContinueFlag() {
bitField0_ = (bitField0_ & ~0x00000040);
continueFlag_ = 0;
onChanged();
return this;
}
private java.lang.Object logoUrl_ = "";
/**
* optional string logoUrl = 8;
* @return Whether the logoUrl field is set.
*/
public boolean hasLogoUrl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string logoUrl = 8;
* @return The logoUrl.
*/
public java.lang.String getLogoUrl() {
java.lang.Object ref = logoUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
logoUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string logoUrl = 8;
* @return The bytes for logoUrl.
*/
public com.google.protobuf.ByteString
getLogoUrlBytes() {
java.lang.Object ref = logoUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logoUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string logoUrl = 8;
* @param value The logoUrl to set.
* @return This builder for chaining.
*/
public Builder setLogoUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
logoUrl_ = value;
onChanged();
return this;
}
/**
* optional string logoUrl = 8;
* @return This builder for chaining.
*/
public Builder clearLogoUrl() {
bitField0_ = (bitField0_ & ~0x00000080);
logoUrl_ = getDefaultInstance().getLogoUrl();
onChanged();
return this;
}
/**
* optional string logoUrl = 8;
* @param value The bytes for logoUrl to set.
* @return This builder for chaining.
*/
public Builder setLogoUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
logoUrl_ = value;
onChanged();
return this;
}
private java.lang.Object searchId_ = "";
/**
* optional string searchId = 9;
* @return Whether the searchId field is set.
*/
public boolean hasSearchId() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string searchId = 9;
* @return The searchId.
*/
public java.lang.String getSearchId() {
java.lang.Object ref = searchId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
searchId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string searchId = 9;
* @return The bytes for searchId.
*/
public com.google.protobuf.ByteString
getSearchIdBytes() {
java.lang.Object ref = searchId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
searchId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string searchId = 9;
* @param value The searchId to set.
* @return This builder for chaining.
*/
public Builder setSearchId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
searchId_ = value;
onChanged();
return this;
}
/**
* optional string searchId = 9;
* @return This builder for chaining.
*/
public Builder clearSearchId() {
bitField0_ = (bitField0_ & ~0x00000100);
searchId_ = getDefaultInstance().getSearchId();
onChanged();
return this;
}
/**
* optional string searchId = 9;
* @param value The bytes for searchId to set.
* @return This builder for chaining.
*/
public Builder setSearchIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
searchId_ = value;
onChanged();
return this;
}
private int autoQueryInterval_ ;
/**
* optional int32 autoQueryInterval = 10;
* @return Whether the autoQueryInterval field is set.
*/
@java.lang.Override
public boolean hasAutoQueryInterval() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int32 autoQueryInterval = 10;
* @return The autoQueryInterval.
*/
@java.lang.Override
public int getAutoQueryInterval() {
return autoQueryInterval_;
}
/**
* optional int32 autoQueryInterval = 10;
* @param value The autoQueryInterval to set.
* @return This builder for chaining.
*/
public Builder setAutoQueryInterval(int value) {
bitField0_ |= 0x00000200;
autoQueryInterval_ = value;
onChanged();
return this;
}
/**
* optional int32 autoQueryInterval = 10;
* @return This builder for chaining.
*/
public Builder clearAutoQueryInterval() {
bitField0_ = (bitField0_ & ~0x00000200);
autoQueryInterval_ = 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.GetLbsLifeListResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.GetLbsLifeListResponse)
private static final wechat.protobuf.Lbs.GetLbsLifeListResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.Lbs.GetLbsLifeListResponse();
}
public static wechat.protobuf.Lbs.GetLbsLifeListResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetLbsLifeListResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetLbsLifeListResponse(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.Lbs.GetLbsLifeListResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LbsLifeOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.LbsLife)
com.google.protobuf.MessageOrBuilder {
/**
* optional string bid = 1;
* @return Whether the bid field is set.
*/
boolean hasBid();
/**
* optional string bid = 1;
* @return The bid.
*/
java.lang.String getBid();
/**
* optional string bid = 1;
* @return The bytes for bid.
*/
com.google.protobuf.ByteString
getBidBytes();
/**
* optional string title = 2;
* @return Whether the title field is set.
*/
boolean hasTitle();
/**
* optional string title = 2;
* @return The title.
*/
java.lang.String getTitle();
/**
* optional string title = 2;
* @return The bytes for title.
*/
com.google.protobuf.ByteString
getTitleBytes();
/**
* optional float price = 3;
* @return Whether the price field is set.
*/
boolean hasPrice();
/**
* optional float price = 3;
* @return The price.
*/
float getPrice();
/**
* optional uint32 iconIdxNum = 4;
* @return Whether the iconIdxNum field is set.
*/
boolean hasIconIdxNum();
/**
* optional uint32 iconIdxNum = 4;
* @return The iconIdxNum.
*/
int getIconIdxNum();
/**
* repeated uint32 iconIdxList = 5;
* @return A list containing the iconIdxList.
*/
java.util.List getIconIdxListList();
/**
* repeated uint32 iconIdxList = 5;
* @return The count of iconIdxList.
*/
int getIconIdxListCount();
/**
* repeated uint32 iconIdxList = 5;
* @param index The index of the element to return.
* @return The iconIdxList at the given index.
*/
int getIconIdxList(int index);
/**
* optional uint32 descNum = 6;
* @return Whether the descNum field is set.
*/
boolean hasDescNum();
/**
* optional uint32 descNum = 6;
* @return The descNum.
*/
int getDescNum();
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
java.util.List
getDescListList();
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
wechat.protobuf.Wechat.SKBuiltinString getDescList(int index);
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
int getDescListCount();
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
java.util.List extends wechat.protobuf.Wechat.SKBuiltinStringOrBuilder>
getDescListOrBuilderList();
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
wechat.protobuf.Wechat.SKBuiltinStringOrBuilder getDescListOrBuilder(
int index);
/**
* optional float rate = 8;
* @return Whether the rate field is set.
*/
boolean hasRate();
/**
* optional float rate = 8;
* @return The rate.
*/
float getRate();
/**
* optional string link = 9;
* @return Whether the link field is set.
*/
boolean hasLink();
/**
* optional string link = 9;
* @return The link.
*/
java.lang.String getLink();
/**
* optional string link = 9;
* @return The bytes for link.
*/
com.google.protobuf.ByteString
getLinkBytes();
/**
* optional uint32 type = 10;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional uint32 type = 10;
* @return The type.
*/
int getType();
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
* @return Whether the ctx field is set.
*/
boolean hasCtx();
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
* @return The ctx.
*/
wechat.protobuf.Wechat.SKBuiltinString_ getCtx();
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getCtxOrBuilder();
/**
* optional string poiUrl = 12;
* @return Whether the poiUrl field is set.
*/
boolean hasPoiUrl();
/**
* optional string poiUrl = 12;
* @return The poiUrl.
*/
java.lang.String getPoiUrl();
/**
* optional string poiUrl = 12;
* @return The bytes for poiUrl.
*/
com.google.protobuf.ByteString
getPoiUrlBytes();
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
* @return Whether the weAppInfo field is set.
*/
boolean hasWeAppInfo();
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
* @return The weAppInfo.
*/
wechat.protobuf.Wechat.SKBuiltinString_ getWeAppInfo();
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getWeAppInfoOrBuilder();
/**
* optional uint32 showType = 14;
* @return Whether the showType field is set.
*/
boolean hasShowType();
/**
* optional uint32 showType = 14;
* @return The showType.
*/
int getShowType();
/**
* optional uint32 showFlag = 15;
* @return Whether the showFlag field is set.
*/
boolean hasShowFlag();
/**
* optional uint32 showFlag = 15;
* @return The showFlag.
*/
int getShowFlag();
}
/**
* Protobuf type {@code wechat_proto.LbsLife}
*/
public static final class LbsLife extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.LbsLife)
LbsLifeOrBuilder {
private static final long serialVersionUID = 0L;
// Use LbsLife.newBuilder() to construct.
private LbsLife(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LbsLife() {
bid_ = "";
title_ = "";
iconIdxList_ = emptyIntList();
descList_ = java.util.Collections.emptyList();
link_ = "";
poiUrl_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LbsLife();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LbsLife(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
bid_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
title_ = bs;
break;
}
case 29: {
bitField0_ |= 0x00000004;
price_ = input.readFloat();
break;
}
case 32: {
bitField0_ |= 0x00000008;
iconIdxNum_ = input.readUInt32();
break;
}
case 40: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
iconIdxList_ = newIntList();
mutable_bitField0_ |= 0x00000010;
}
iconIdxList_.addInt(input.readUInt32());
break;
}
case 42: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) {
iconIdxList_ = newIntList();
mutable_bitField0_ |= 0x00000010;
}
while (input.getBytesUntilLimit() > 0) {
iconIdxList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 48: {
bitField0_ |= 0x00000010;
descNum_ = input.readUInt32();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
descList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
descList_.add(
input.readMessage(wechat.protobuf.Wechat.SKBuiltinString.PARSER, extensionRegistry));
break;
}
case 69: {
bitField0_ |= 0x00000020;
rate_ = input.readFloat();
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
link_ = bs;
break;
}
case 80: {
bitField0_ |= 0x00000080;
type_ = input.readUInt32();
break;
}
case 90: {
wechat.protobuf.Wechat.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) != 0)) {
subBuilder = ctx_.toBuilder();
}
ctx_ = input.readMessage(wechat.protobuf.Wechat.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ctx_);
ctx_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
poiUrl_ = bs;
break;
}
case 106: {
wechat.protobuf.Wechat.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) != 0)) {
subBuilder = weAppInfo_.toBuilder();
}
weAppInfo_ = input.readMessage(wechat.protobuf.Wechat.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(weAppInfo_);
weAppInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 112: {
bitField0_ |= 0x00000800;
showType_ = input.readUInt32();
break;
}
case 120: {
bitField0_ |= 0x00001000;
showFlag_ = 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 {
if (((mutable_bitField0_ & 0x00000010) != 0)) {
iconIdxList_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
descList_ = java.util.Collections.unmodifiableList(descList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLife_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLife_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.LbsLife.class, wechat.protobuf.Lbs.LbsLife.Builder.class);
}
private int bitField0_;
public static final int BID_FIELD_NUMBER = 1;
private volatile java.lang.Object bid_;
/**
* optional string bid = 1;
* @return Whether the bid field is set.
*/
@java.lang.Override
public boolean hasBid() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string bid = 1;
* @return The bid.
*/
@java.lang.Override
public java.lang.String getBid() {
java.lang.Object ref = bid_;
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();
if (bs.isValidUtf8()) {
bid_ = s;
}
return s;
}
}
/**
* optional string bid = 1;
* @return The bytes for bid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBidBytes() {
java.lang.Object ref = bid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TITLE_FIELD_NUMBER = 2;
private volatile java.lang.Object title_;
/**
* optional string title = 2;
* @return Whether the title field is set.
*/
@java.lang.Override
public boolean hasTitle() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string title = 2;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
if (bs.isValidUtf8()) {
title_ = s;
}
return s;
}
}
/**
* optional string title = 2;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRICE_FIELD_NUMBER = 3;
private float price_;
/**
* optional float price = 3;
* @return Whether the price field is set.
*/
@java.lang.Override
public boolean hasPrice() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional float price = 3;
* @return The price.
*/
@java.lang.Override
public float getPrice() {
return price_;
}
public static final int ICONIDXNUM_FIELD_NUMBER = 4;
private int iconIdxNum_;
/**
* optional uint32 iconIdxNum = 4;
* @return Whether the iconIdxNum field is set.
*/
@java.lang.Override
public boolean hasIconIdxNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 iconIdxNum = 4;
* @return The iconIdxNum.
*/
@java.lang.Override
public int getIconIdxNum() {
return iconIdxNum_;
}
public static final int ICONIDXLIST_FIELD_NUMBER = 5;
private com.google.protobuf.Internal.IntList iconIdxList_;
/**
* repeated uint32 iconIdxList = 5;
* @return A list containing the iconIdxList.
*/
@java.lang.Override
public java.util.List
getIconIdxListList() {
return iconIdxList_;
}
/**
* repeated uint32 iconIdxList = 5;
* @return The count of iconIdxList.
*/
public int getIconIdxListCount() {
return iconIdxList_.size();
}
/**
* repeated uint32 iconIdxList = 5;
* @param index The index of the element to return.
* @return The iconIdxList at the given index.
*/
public int getIconIdxList(int index) {
return iconIdxList_.getInt(index);
}
public static final int DESCNUM_FIELD_NUMBER = 6;
private int descNum_;
/**
* optional uint32 descNum = 6;
* @return Whether the descNum field is set.
*/
@java.lang.Override
public boolean hasDescNum() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 descNum = 6;
* @return The descNum.
*/
@java.lang.Override
public int getDescNum() {
return descNum_;
}
public static final int DESCLIST_FIELD_NUMBER = 7;
private java.util.List descList_;
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
@java.lang.Override
public java.util.List getDescListList() {
return descList_;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
@java.lang.Override
public java.util.List extends wechat.protobuf.Wechat.SKBuiltinStringOrBuilder>
getDescListOrBuilderList() {
return descList_;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
@java.lang.Override
public int getDescListCount() {
return descList_.size();
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString getDescList(int index) {
return descList_.get(index);
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinStringOrBuilder getDescListOrBuilder(
int index) {
return descList_.get(index);
}
public static final int RATE_FIELD_NUMBER = 8;
private float rate_;
/**
* optional float rate = 8;
* @return Whether the rate field is set.
*/
@java.lang.Override
public boolean hasRate() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional float rate = 8;
* @return The rate.
*/
@java.lang.Override
public float getRate() {
return rate_;
}
public static final int LINK_FIELD_NUMBER = 9;
private volatile java.lang.Object link_;
/**
* optional string link = 9;
* @return Whether the link field is set.
*/
@java.lang.Override
public boolean hasLink() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string link = 9;
* @return The link.
*/
@java.lang.Override
public java.lang.String getLink() {
java.lang.Object ref = link_;
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();
if (bs.isValidUtf8()) {
link_ = s;
}
return s;
}
}
/**
* optional string link = 9;
* @return The bytes for link.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLinkBytes() {
java.lang.Object ref = link_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
link_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 10;
private int type_;
/**
* optional uint32 type = 10;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 type = 10;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
public static final int CTX_FIELD_NUMBER = 11;
private wechat.protobuf.Wechat.SKBuiltinString_ ctx_;
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
* @return Whether the ctx field is set.
*/
@java.lang.Override
public boolean hasCtx() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
* @return The ctx.
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_ getCtx() {
return ctx_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : ctx_;
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getCtxOrBuilder() {
return ctx_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : ctx_;
}
public static final int POIURL_FIELD_NUMBER = 12;
private volatile java.lang.Object poiUrl_;
/**
* optional string poiUrl = 12;
* @return Whether the poiUrl field is set.
*/
@java.lang.Override
public boolean hasPoiUrl() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string poiUrl = 12;
* @return The poiUrl.
*/
@java.lang.Override
public java.lang.String getPoiUrl() {
java.lang.Object ref = poiUrl_;
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();
if (bs.isValidUtf8()) {
poiUrl_ = s;
}
return s;
}
}
/**
* optional string poiUrl = 12;
* @return The bytes for poiUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPoiUrlBytes() {
java.lang.Object ref = poiUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
poiUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WEAPPINFO_FIELD_NUMBER = 13;
private wechat.protobuf.Wechat.SKBuiltinString_ weAppInfo_;
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
* @return Whether the weAppInfo field is set.
*/
@java.lang.Override
public boolean hasWeAppInfo() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
* @return The weAppInfo.
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_ getWeAppInfo() {
return weAppInfo_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : weAppInfo_;
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getWeAppInfoOrBuilder() {
return weAppInfo_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : weAppInfo_;
}
public static final int SHOWTYPE_FIELD_NUMBER = 14;
private int showType_;
/**
* optional uint32 showType = 14;
* @return Whether the showType field is set.
*/
@java.lang.Override
public boolean hasShowType() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint32 showType = 14;
* @return The showType.
*/
@java.lang.Override
public int getShowType() {
return showType_;
}
public static final int SHOWFLAG_FIELD_NUMBER = 15;
private int showFlag_;
/**
* optional uint32 showFlag = 15;
* @return Whether the showFlag field is set.
*/
@java.lang.Override
public boolean hasShowFlag() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional uint32 showFlag = 15;
* @return The showFlag.
*/
@java.lang.Override
public int getShowFlag() {
return showFlag_;
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bid_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFloat(3, price_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, iconIdxNum_);
}
for (int i = 0; i < iconIdxList_.size(); i++) {
output.writeUInt32(5, iconIdxList_.getInt(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(6, descNum_);
}
for (int i = 0; i < descList_.size(); i++) {
output.writeMessage(7, descList_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeFloat(8, rate_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, link_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt32(10, type_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(11, getCtx());
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, poiUrl_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(13, getWeAppInfo());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeUInt32(14, showType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeUInt32(15, showFlag_);
}
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.GeneratedMessageV3.computeStringSize(1, bid_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, price_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, iconIdxNum_);
}
{
int dataSize = 0;
for (int i = 0; i < iconIdxList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(iconIdxList_.getInt(i));
}
size += dataSize;
size += 1 * getIconIdxListList().size();
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, descNum_);
}
for (int i = 0; i < descList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, descList_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(8, rate_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, link_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, type_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getCtx());
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, poiUrl_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getWeAppInfo());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, showType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, showFlag_);
}
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.Lbs.LbsLife)) {
return super.equals(obj);
}
wechat.protobuf.Lbs.LbsLife other = (wechat.protobuf.Lbs.LbsLife) obj;
if (hasBid() != other.hasBid()) return false;
if (hasBid()) {
if (!getBid()
.equals(other.getBid())) return false;
}
if (hasTitle() != other.hasTitle()) return false;
if (hasTitle()) {
if (!getTitle()
.equals(other.getTitle())) return false;
}
if (hasPrice() != other.hasPrice()) return false;
if (hasPrice()) {
if (java.lang.Float.floatToIntBits(getPrice())
!= java.lang.Float.floatToIntBits(
other.getPrice())) return false;
}
if (hasIconIdxNum() != other.hasIconIdxNum()) return false;
if (hasIconIdxNum()) {
if (getIconIdxNum()
!= other.getIconIdxNum()) return false;
}
if (!getIconIdxListList()
.equals(other.getIconIdxListList())) return false;
if (hasDescNum() != other.hasDescNum()) return false;
if (hasDescNum()) {
if (getDescNum()
!= other.getDescNum()) return false;
}
if (!getDescListList()
.equals(other.getDescListList())) return false;
if (hasRate() != other.hasRate()) return false;
if (hasRate()) {
if (java.lang.Float.floatToIntBits(getRate())
!= java.lang.Float.floatToIntBits(
other.getRate())) return false;
}
if (hasLink() != other.hasLink()) return false;
if (hasLink()) {
if (!getLink()
.equals(other.getLink())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (getType()
!= other.getType()) return false;
}
if (hasCtx() != other.hasCtx()) return false;
if (hasCtx()) {
if (!getCtx()
.equals(other.getCtx())) return false;
}
if (hasPoiUrl() != other.hasPoiUrl()) return false;
if (hasPoiUrl()) {
if (!getPoiUrl()
.equals(other.getPoiUrl())) return false;
}
if (hasWeAppInfo() != other.hasWeAppInfo()) return false;
if (hasWeAppInfo()) {
if (!getWeAppInfo()
.equals(other.getWeAppInfo())) return false;
}
if (hasShowType() != other.hasShowType()) return false;
if (hasShowType()) {
if (getShowType()
!= other.getShowType()) return false;
}
if (hasShowFlag() != other.hasShowFlag()) return false;
if (hasShowFlag()) {
if (getShowFlag()
!= other.getShowFlag()) 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 (hasBid()) {
hash = (37 * hash) + BID_FIELD_NUMBER;
hash = (53 * hash) + getBid().hashCode();
}
if (hasTitle()) {
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
}
if (hasPrice()) {
hash = (37 * hash) + PRICE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getPrice());
}
if (hasIconIdxNum()) {
hash = (37 * hash) + ICONIDXNUM_FIELD_NUMBER;
hash = (53 * hash) + getIconIdxNum();
}
if (getIconIdxListCount() > 0) {
hash = (37 * hash) + ICONIDXLIST_FIELD_NUMBER;
hash = (53 * hash) + getIconIdxListList().hashCode();
}
if (hasDescNum()) {
hash = (37 * hash) + DESCNUM_FIELD_NUMBER;
hash = (53 * hash) + getDescNum();
}
if (getDescListCount() > 0) {
hash = (37 * hash) + DESCLIST_FIELD_NUMBER;
hash = (53 * hash) + getDescListList().hashCode();
}
if (hasRate()) {
hash = (37 * hash) + RATE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getRate());
}
if (hasLink()) {
hash = (37 * hash) + LINK_FIELD_NUMBER;
hash = (53 * hash) + getLink().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasCtx()) {
hash = (37 * hash) + CTX_FIELD_NUMBER;
hash = (53 * hash) + getCtx().hashCode();
}
if (hasPoiUrl()) {
hash = (37 * hash) + POIURL_FIELD_NUMBER;
hash = (53 * hash) + getPoiUrl().hashCode();
}
if (hasWeAppInfo()) {
hash = (37 * hash) + WEAPPINFO_FIELD_NUMBER;
hash = (53 * hash) + getWeAppInfo().hashCode();
}
if (hasShowType()) {
hash = (37 * hash) + SHOWTYPE_FIELD_NUMBER;
hash = (53 * hash) + getShowType();
}
if (hasShowFlag()) {
hash = (37 * hash) + SHOWFLAG_FIELD_NUMBER;
hash = (53 * hash) + getShowFlag();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.Lbs.LbsLife parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.LbsLife parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.LbsLife parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.LbsLife 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.Lbs.LbsLife parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.LbsLife parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.LbsLife parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.LbsLife 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.Lbs.LbsLife parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.LbsLife 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.Lbs.LbsLife parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.LbsLife 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.Lbs.LbsLife 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.LbsLife}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.LbsLife)
wechat.protobuf.Lbs.LbsLifeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLife_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLife_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.LbsLife.class, wechat.protobuf.Lbs.LbsLife.Builder.class);
}
// Construct using wechat.protobuf.Lbs.LbsLife.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDescListFieldBuilder();
getCtxFieldBuilder();
getWeAppInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bid_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
title_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
price_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
iconIdxNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
iconIdxList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000010);
descNum_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
if (descListBuilder_ == null) {
descList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
descListBuilder_.clear();
}
rate_ = 0F;
bitField0_ = (bitField0_ & ~0x00000080);
link_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
if (ctxBuilder_ == null) {
ctx_ = null;
} else {
ctxBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
poiUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
if (weAppInfoBuilder_ == null) {
weAppInfo_ = null;
} else {
weAppInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
showType_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
showFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_LbsLife_descriptor;
}
@java.lang.Override
public wechat.protobuf.Lbs.LbsLife getDefaultInstanceForType() {
return wechat.protobuf.Lbs.LbsLife.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.Lbs.LbsLife build() {
wechat.protobuf.Lbs.LbsLife result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.Lbs.LbsLife buildPartial() {
wechat.protobuf.Lbs.LbsLife result = new wechat.protobuf.Lbs.LbsLife(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.bid_ = bid_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.title_ = title_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.price_ = price_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.iconIdxNum_ = iconIdxNum_;
to_bitField0_ |= 0x00000008;
}
if (((bitField0_ & 0x00000010) != 0)) {
iconIdxList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.iconIdxList_ = iconIdxList_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.descNum_ = descNum_;
to_bitField0_ |= 0x00000010;
}
if (descListBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
descList_ = java.util.Collections.unmodifiableList(descList_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.descList_ = descList_;
} else {
result.descList_ = descListBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.rate_ = rate_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.link_ = link_;
if (((from_bitField0_ & 0x00000200) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
if (ctxBuilder_ == null) {
result.ctx_ = ctx_;
} else {
result.ctx_ = ctxBuilder_.build();
}
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.poiUrl_ = poiUrl_;
if (((from_bitField0_ & 0x00001000) != 0)) {
if (weAppInfoBuilder_ == null) {
result.weAppInfo_ = weAppInfo_;
} else {
result.weAppInfo_ = weAppInfoBuilder_.build();
}
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.showType_ = showType_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.showFlag_ = showFlag_;
to_bitField0_ |= 0x00001000;
}
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.Lbs.LbsLife) {
return mergeFrom((wechat.protobuf.Lbs.LbsLife)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.Lbs.LbsLife other) {
if (other == wechat.protobuf.Lbs.LbsLife.getDefaultInstance()) return this;
if (other.hasBid()) {
bitField0_ |= 0x00000001;
bid_ = other.bid_;
onChanged();
}
if (other.hasTitle()) {
bitField0_ |= 0x00000002;
title_ = other.title_;
onChanged();
}
if (other.hasPrice()) {
setPrice(other.getPrice());
}
if (other.hasIconIdxNum()) {
setIconIdxNum(other.getIconIdxNum());
}
if (!other.iconIdxList_.isEmpty()) {
if (iconIdxList_.isEmpty()) {
iconIdxList_ = other.iconIdxList_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureIconIdxListIsMutable();
iconIdxList_.addAll(other.iconIdxList_);
}
onChanged();
}
if (other.hasDescNum()) {
setDescNum(other.getDescNum());
}
if (descListBuilder_ == null) {
if (!other.descList_.isEmpty()) {
if (descList_.isEmpty()) {
descList_ = other.descList_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureDescListIsMutable();
descList_.addAll(other.descList_);
}
onChanged();
}
} else {
if (!other.descList_.isEmpty()) {
if (descListBuilder_.isEmpty()) {
descListBuilder_.dispose();
descListBuilder_ = null;
descList_ = other.descList_;
bitField0_ = (bitField0_ & ~0x00000040);
descListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDescListFieldBuilder() : null;
} else {
descListBuilder_.addAllMessages(other.descList_);
}
}
}
if (other.hasRate()) {
setRate(other.getRate());
}
if (other.hasLink()) {
bitField0_ |= 0x00000100;
link_ = other.link_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasCtx()) {
mergeCtx(other.getCtx());
}
if (other.hasPoiUrl()) {
bitField0_ |= 0x00000800;
poiUrl_ = other.poiUrl_;
onChanged();
}
if (other.hasWeAppInfo()) {
mergeWeAppInfo(other.getWeAppInfo());
}
if (other.hasShowType()) {
setShowType(other.getShowType());
}
if (other.hasShowFlag()) {
setShowFlag(other.getShowFlag());
}
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.Lbs.LbsLife parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.Lbs.LbsLife) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object bid_ = "";
/**
* optional string bid = 1;
* @return Whether the bid field is set.
*/
public boolean hasBid() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string bid = 1;
* @return The bid.
*/
public java.lang.String getBid() {
java.lang.Object ref = bid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
bid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string bid = 1;
* @return The bytes for bid.
*/
public com.google.protobuf.ByteString
getBidBytes() {
java.lang.Object ref = bid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string bid = 1;
* @param value The bid to set.
* @return This builder for chaining.
*/
public Builder setBid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
bid_ = value;
onChanged();
return this;
}
/**
* optional string bid = 1;
* @return This builder for chaining.
*/
public Builder clearBid() {
bitField0_ = (bitField0_ & ~0x00000001);
bid_ = getDefaultInstance().getBid();
onChanged();
return this;
}
/**
* optional string bid = 1;
* @param value The bytes for bid to set.
* @return This builder for chaining.
*/
public Builder setBidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
bid_ = value;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
* optional string title = 2;
* @return Whether the title field is set.
*/
public boolean hasTitle() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string title = 2;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
title_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string title = 2;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string title = 2;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
title_ = value;
onChanged();
return this;
}
/**
* optional string title = 2;
* @return This builder for chaining.
*/
public Builder clearTitle() {
bitField0_ = (bitField0_ & ~0x00000002);
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
* optional string title = 2;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
title_ = value;
onChanged();
return this;
}
private float price_ ;
/**
* optional float price = 3;
* @return Whether the price field is set.
*/
@java.lang.Override
public boolean hasPrice() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional float price = 3;
* @return The price.
*/
@java.lang.Override
public float getPrice() {
return price_;
}
/**
* optional float price = 3;
* @param value The price to set.
* @return This builder for chaining.
*/
public Builder setPrice(float value) {
bitField0_ |= 0x00000004;
price_ = value;
onChanged();
return this;
}
/**
* optional float price = 3;
* @return This builder for chaining.
*/
public Builder clearPrice() {
bitField0_ = (bitField0_ & ~0x00000004);
price_ = 0F;
onChanged();
return this;
}
private int iconIdxNum_ ;
/**
* optional uint32 iconIdxNum = 4;
* @return Whether the iconIdxNum field is set.
*/
@java.lang.Override
public boolean hasIconIdxNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 iconIdxNum = 4;
* @return The iconIdxNum.
*/
@java.lang.Override
public int getIconIdxNum() {
return iconIdxNum_;
}
/**
* optional uint32 iconIdxNum = 4;
* @param value The iconIdxNum to set.
* @return This builder for chaining.
*/
public Builder setIconIdxNum(int value) {
bitField0_ |= 0x00000008;
iconIdxNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 iconIdxNum = 4;
* @return This builder for chaining.
*/
public Builder clearIconIdxNum() {
bitField0_ = (bitField0_ & ~0x00000008);
iconIdxNum_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList iconIdxList_ = emptyIntList();
private void ensureIconIdxListIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
iconIdxList_ = mutableCopy(iconIdxList_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated uint32 iconIdxList = 5;
* @return A list containing the iconIdxList.
*/
public java.util.List
getIconIdxListList() {
return ((bitField0_ & 0x00000010) != 0) ?
java.util.Collections.unmodifiableList(iconIdxList_) : iconIdxList_;
}
/**
* repeated uint32 iconIdxList = 5;
* @return The count of iconIdxList.
*/
public int getIconIdxListCount() {
return iconIdxList_.size();
}
/**
* repeated uint32 iconIdxList = 5;
* @param index The index of the element to return.
* @return The iconIdxList at the given index.
*/
public int getIconIdxList(int index) {
return iconIdxList_.getInt(index);
}
/**
* repeated uint32 iconIdxList = 5;
* @param index The index to set the value at.
* @param value The iconIdxList to set.
* @return This builder for chaining.
*/
public Builder setIconIdxList(
int index, int value) {
ensureIconIdxListIsMutable();
iconIdxList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 iconIdxList = 5;
* @param value The iconIdxList to add.
* @return This builder for chaining.
*/
public Builder addIconIdxList(int value) {
ensureIconIdxListIsMutable();
iconIdxList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 iconIdxList = 5;
* @param values The iconIdxList to add.
* @return This builder for chaining.
*/
public Builder addAllIconIdxList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureIconIdxListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, iconIdxList_);
onChanged();
return this;
}
/**
* repeated uint32 iconIdxList = 5;
* @return This builder for chaining.
*/
public Builder clearIconIdxList() {
iconIdxList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private int descNum_ ;
/**
* optional uint32 descNum = 6;
* @return Whether the descNum field is set.
*/
@java.lang.Override
public boolean hasDescNum() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 descNum = 6;
* @return The descNum.
*/
@java.lang.Override
public int getDescNum() {
return descNum_;
}
/**
* optional uint32 descNum = 6;
* @param value The descNum to set.
* @return This builder for chaining.
*/
public Builder setDescNum(int value) {
bitField0_ |= 0x00000020;
descNum_ = value;
onChanged();
return this;
}
/**
* optional uint32 descNum = 6;
* @return This builder for chaining.
*/
public Builder clearDescNum() {
bitField0_ = (bitField0_ & ~0x00000020);
descNum_ = 0;
onChanged();
return this;
}
private java.util.List descList_ =
java.util.Collections.emptyList();
private void ensureDescListIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
descList_ = new java.util.ArrayList(descList_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString, wechat.protobuf.Wechat.SKBuiltinString.Builder, wechat.protobuf.Wechat.SKBuiltinStringOrBuilder> descListBuilder_;
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public java.util.List getDescListList() {
if (descListBuilder_ == null) {
return java.util.Collections.unmodifiableList(descList_);
} else {
return descListBuilder_.getMessageList();
}
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public int getDescListCount() {
if (descListBuilder_ == null) {
return descList_.size();
} else {
return descListBuilder_.getCount();
}
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public wechat.protobuf.Wechat.SKBuiltinString getDescList(int index) {
if (descListBuilder_ == null) {
return descList_.get(index);
} else {
return descListBuilder_.getMessage(index);
}
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder setDescList(
int index, wechat.protobuf.Wechat.SKBuiltinString value) {
if (descListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDescListIsMutable();
descList_.set(index, value);
onChanged();
} else {
descListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder setDescList(
int index, wechat.protobuf.Wechat.SKBuiltinString.Builder builderForValue) {
if (descListBuilder_ == null) {
ensureDescListIsMutable();
descList_.set(index, builderForValue.build());
onChanged();
} else {
descListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder addDescList(wechat.protobuf.Wechat.SKBuiltinString value) {
if (descListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDescListIsMutable();
descList_.add(value);
onChanged();
} else {
descListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder addDescList(
int index, wechat.protobuf.Wechat.SKBuiltinString value) {
if (descListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDescListIsMutable();
descList_.add(index, value);
onChanged();
} else {
descListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder addDescList(
wechat.protobuf.Wechat.SKBuiltinString.Builder builderForValue) {
if (descListBuilder_ == null) {
ensureDescListIsMutable();
descList_.add(builderForValue.build());
onChanged();
} else {
descListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder addDescList(
int index, wechat.protobuf.Wechat.SKBuiltinString.Builder builderForValue) {
if (descListBuilder_ == null) {
ensureDescListIsMutable();
descList_.add(index, builderForValue.build());
onChanged();
} else {
descListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder addAllDescList(
java.lang.Iterable extends wechat.protobuf.Wechat.SKBuiltinString> values) {
if (descListBuilder_ == null) {
ensureDescListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, descList_);
onChanged();
} else {
descListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder clearDescList() {
if (descListBuilder_ == null) {
descList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
descListBuilder_.clear();
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public Builder removeDescList(int index) {
if (descListBuilder_ == null) {
ensureDescListIsMutable();
descList_.remove(index);
onChanged();
} else {
descListBuilder_.remove(index);
}
return this;
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public wechat.protobuf.Wechat.SKBuiltinString.Builder getDescListBuilder(
int index) {
return getDescListFieldBuilder().getBuilder(index);
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public wechat.protobuf.Wechat.SKBuiltinStringOrBuilder getDescListOrBuilder(
int index) {
if (descListBuilder_ == null) {
return descList_.get(index); } else {
return descListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public java.util.List extends wechat.protobuf.Wechat.SKBuiltinStringOrBuilder>
getDescListOrBuilderList() {
if (descListBuilder_ != null) {
return descListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(descList_);
}
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public wechat.protobuf.Wechat.SKBuiltinString.Builder addDescListBuilder() {
return getDescListFieldBuilder().addBuilder(
wechat.protobuf.Wechat.SKBuiltinString.getDefaultInstance());
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public wechat.protobuf.Wechat.SKBuiltinString.Builder addDescListBuilder(
int index) {
return getDescListFieldBuilder().addBuilder(
index, wechat.protobuf.Wechat.SKBuiltinString.getDefaultInstance());
}
/**
* repeated .wechat_proto.SKBuiltinString descList = 7;
*/
public java.util.List
getDescListBuilderList() {
return getDescListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString, wechat.protobuf.Wechat.SKBuiltinString.Builder, wechat.protobuf.Wechat.SKBuiltinStringOrBuilder>
getDescListFieldBuilder() {
if (descListBuilder_ == null) {
descListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString, wechat.protobuf.Wechat.SKBuiltinString.Builder, wechat.protobuf.Wechat.SKBuiltinStringOrBuilder>(
descList_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
descList_ = null;
}
return descListBuilder_;
}
private float rate_ ;
/**
* optional float rate = 8;
* @return Whether the rate field is set.
*/
@java.lang.Override
public boolean hasRate() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional float rate = 8;
* @return The rate.
*/
@java.lang.Override
public float getRate() {
return rate_;
}
/**
* optional float rate = 8;
* @param value The rate to set.
* @return This builder for chaining.
*/
public Builder setRate(float value) {
bitField0_ |= 0x00000080;
rate_ = value;
onChanged();
return this;
}
/**
* optional float rate = 8;
* @return This builder for chaining.
*/
public Builder clearRate() {
bitField0_ = (bitField0_ & ~0x00000080);
rate_ = 0F;
onChanged();
return this;
}
private java.lang.Object link_ = "";
/**
* optional string link = 9;
* @return Whether the link field is set.
*/
public boolean hasLink() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string link = 9;
* @return The link.
*/
public java.lang.String getLink() {
java.lang.Object ref = link_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
link_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string link = 9;
* @return The bytes for link.
*/
public com.google.protobuf.ByteString
getLinkBytes() {
java.lang.Object ref = link_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
link_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string link = 9;
* @param value The link to set.
* @return This builder for chaining.
*/
public Builder setLink(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
link_ = value;
onChanged();
return this;
}
/**
* optional string link = 9;
* @return This builder for chaining.
*/
public Builder clearLink() {
bitField0_ = (bitField0_ & ~0x00000100);
link_ = getDefaultInstance().getLink();
onChanged();
return this;
}
/**
* optional string link = 9;
* @param value The bytes for link to set.
* @return This builder for chaining.
*/
public Builder setLinkBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
link_ = value;
onChanged();
return this;
}
private int type_ ;
/**
* optional uint32 type = 10;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional uint32 type = 10;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
/**
* optional uint32 type = 10;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(int value) {
bitField0_ |= 0x00000200;
type_ = value;
onChanged();
return this;
}
/**
* optional uint32 type = 10;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000200);
type_ = 0;
onChanged();
return this;
}
private wechat.protobuf.Wechat.SKBuiltinString_ ctx_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder> ctxBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
* @return Whether the ctx field is set.
*/
public boolean hasCtx() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
* @return The ctx.
*/
public wechat.protobuf.Wechat.SKBuiltinString_ getCtx() {
if (ctxBuilder_ == null) {
return ctx_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : ctx_;
} else {
return ctxBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
public Builder setCtx(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (ctxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ctx_ = value;
onChanged();
} else {
ctxBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
public Builder setCtx(
wechat.protobuf.Wechat.SKBuiltinString_.Builder builderForValue) {
if (ctxBuilder_ == null) {
ctx_ = builderForValue.build();
onChanged();
} else {
ctxBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
public Builder mergeCtx(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (ctxBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
ctx_ != null &&
ctx_ != wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance()) {
ctx_ =
wechat.protobuf.Wechat.SKBuiltinString_.newBuilder(ctx_).mergeFrom(value).buildPartial();
} else {
ctx_ = value;
}
onChanged();
} else {
ctxBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
public Builder clearCtx() {
if (ctxBuilder_ == null) {
ctx_ = null;
onChanged();
} else {
ctxBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
public wechat.protobuf.Wechat.SKBuiltinString_.Builder getCtxBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getCtxFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getCtxOrBuilder() {
if (ctxBuilder_ != null) {
return ctxBuilder_.getMessageOrBuilder();
} else {
return ctx_ == null ?
wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : ctx_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ ctx = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>
getCtxFieldBuilder() {
if (ctxBuilder_ == null) {
ctxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>(
getCtx(),
getParentForChildren(),
isClean());
ctx_ = null;
}
return ctxBuilder_;
}
private java.lang.Object poiUrl_ = "";
/**
* optional string poiUrl = 12;
* @return Whether the poiUrl field is set.
*/
public boolean hasPoiUrl() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string poiUrl = 12;
* @return The poiUrl.
*/
public java.lang.String getPoiUrl() {
java.lang.Object ref = poiUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
poiUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string poiUrl = 12;
* @return The bytes for poiUrl.
*/
public com.google.protobuf.ByteString
getPoiUrlBytes() {
java.lang.Object ref = poiUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
poiUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string poiUrl = 12;
* @param value The poiUrl to set.
* @return This builder for chaining.
*/
public Builder setPoiUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
poiUrl_ = value;
onChanged();
return this;
}
/**
* optional string poiUrl = 12;
* @return This builder for chaining.
*/
public Builder clearPoiUrl() {
bitField0_ = (bitField0_ & ~0x00000800);
poiUrl_ = getDefaultInstance().getPoiUrl();
onChanged();
return this;
}
/**
* optional string poiUrl = 12;
* @param value The bytes for poiUrl to set.
* @return This builder for chaining.
*/
public Builder setPoiUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
poiUrl_ = value;
onChanged();
return this;
}
private wechat.protobuf.Wechat.SKBuiltinString_ weAppInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder> weAppInfoBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
* @return Whether the weAppInfo field is set.
*/
public boolean hasWeAppInfo() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
* @return The weAppInfo.
*/
public wechat.protobuf.Wechat.SKBuiltinString_ getWeAppInfo() {
if (weAppInfoBuilder_ == null) {
return weAppInfo_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : weAppInfo_;
} else {
return weAppInfoBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
public Builder setWeAppInfo(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (weAppInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
weAppInfo_ = value;
onChanged();
} else {
weAppInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
public Builder setWeAppInfo(
wechat.protobuf.Wechat.SKBuiltinString_.Builder builderForValue) {
if (weAppInfoBuilder_ == null) {
weAppInfo_ = builderForValue.build();
onChanged();
} else {
weAppInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
public Builder mergeWeAppInfo(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (weAppInfoBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
weAppInfo_ != null &&
weAppInfo_ != wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance()) {
weAppInfo_ =
wechat.protobuf.Wechat.SKBuiltinString_.newBuilder(weAppInfo_).mergeFrom(value).buildPartial();
} else {
weAppInfo_ = value;
}
onChanged();
} else {
weAppInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
public Builder clearWeAppInfo() {
if (weAppInfoBuilder_ == null) {
weAppInfo_ = null;
onChanged();
} else {
weAppInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
public wechat.protobuf.Wechat.SKBuiltinString_.Builder getWeAppInfoBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getWeAppInfoFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getWeAppInfoOrBuilder() {
if (weAppInfoBuilder_ != null) {
return weAppInfoBuilder_.getMessageOrBuilder();
} else {
return weAppInfo_ == null ?
wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : weAppInfo_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ weAppInfo = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>
getWeAppInfoFieldBuilder() {
if (weAppInfoBuilder_ == null) {
weAppInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>(
getWeAppInfo(),
getParentForChildren(),
isClean());
weAppInfo_ = null;
}
return weAppInfoBuilder_;
}
private int showType_ ;
/**
* optional uint32 showType = 14;
* @return Whether the showType field is set.
*/
@java.lang.Override
public boolean hasShowType() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional uint32 showType = 14;
* @return The showType.
*/
@java.lang.Override
public int getShowType() {
return showType_;
}
/**
* optional uint32 showType = 14;
* @param value The showType to set.
* @return This builder for chaining.
*/
public Builder setShowType(int value) {
bitField0_ |= 0x00002000;
showType_ = value;
onChanged();
return this;
}
/**
* optional uint32 showType = 14;
* @return This builder for chaining.
*/
public Builder clearShowType() {
bitField0_ = (bitField0_ & ~0x00002000);
showType_ = 0;
onChanged();
return this;
}
private int showFlag_ ;
/**
* optional uint32 showFlag = 15;
* @return Whether the showFlag field is set.
*/
@java.lang.Override
public boolean hasShowFlag() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional uint32 showFlag = 15;
* @return The showFlag.
*/
@java.lang.Override
public int getShowFlag() {
return showFlag_;
}
/**
* optional uint32 showFlag = 15;
* @param value The showFlag to set.
* @return This builder for chaining.
*/
public Builder setShowFlag(int value) {
bitField0_ |= 0x00004000;
showFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 showFlag = 15;
* @return This builder for chaining.
*/
public Builder clearShowFlag() {
bitField0_ = (bitField0_ & ~0x00004000);
showFlag_ = 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.LbsLife)
}
// @@protoc_insertion_point(class_scope:wechat_proto.LbsLife)
private static final wechat.protobuf.Lbs.LbsLife DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.Lbs.LbsLife();
}
public static wechat.protobuf.Lbs.LbsLife getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LbsLife parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LbsLife(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.Lbs.LbsLife getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAddressRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.GetAddressRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
boolean hasBaseRequest();
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
wechat.protobuf.Wechat.BaseRequest getBaseRequest();
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
wechat.protobuf.Wechat.BaseRequestOrBuilder getBaseRequestOrBuilder();
/**
* optional double longitude = 2;
* @return Whether the longitude field is set.
*/
boolean hasLongitude();
/**
* optional double longitude = 2;
* @return The longitude.
*/
double getLongitude();
/**
* optional double latitude = 3;
* @return Whether the latitude field is set.
*/
boolean hasLatitude();
/**
* optional double latitude = 3;
* @return The latitude.
*/
double getLatitude();
}
/**
* Protobuf type {@code wechat_proto.GetAddressRequest}
*/
public static final class GetAddressRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.GetAddressRequest)
GetAddressRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAddressRequest.newBuilder() to construct.
private GetAddressRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAddressRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAddressRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAddressRequest(
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.Wechat.BaseRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseRequest_.toBuilder();
}
baseRequest_ = input.readMessage(wechat.protobuf.Wechat.BaseRequest.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseRequest_);
baseRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 17: {
bitField0_ |= 0x00000002;
longitude_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
latitude_ = input.readDouble();
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.Lbs.internal_static_wechat_proto_GetAddressRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetAddressRequest.class, wechat.protobuf.Lbs.GetAddressRequest.Builder.class);
}
private int bitField0_;
public static final int BASEREQUEST_FIELD_NUMBER = 1;
private wechat.protobuf.Wechat.BaseRequest baseRequest_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
@java.lang.Override
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseRequest getBaseRequest() {
return baseRequest_ == null ? wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseRequestOrBuilder getBaseRequestOrBuilder() {
return baseRequest_ == null ? wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
}
public static final int LONGITUDE_FIELD_NUMBER = 2;
private double longitude_;
/**
* optional double longitude = 2;
* @return Whether the longitude field is set.
*/
@java.lang.Override
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double longitude = 2;
* @return The longitude.
*/
@java.lang.Override
public double getLongitude() {
return longitude_;
}
public static final int LATITUDE_FIELD_NUMBER = 3;
private double latitude_;
/**
* optional double latitude = 3;
* @return Whether the latitude field is set.
*/
@java.lang.Override
public boolean hasLatitude() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double latitude = 3;
* @return The latitude.
*/
@java.lang.Override
public double getLatitude() {
return latitude_;
}
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.writeDouble(2, longitude_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, latitude_);
}
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
.computeDoubleSize(2, longitude_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, latitude_);
}
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.Lbs.GetAddressRequest)) {
return super.equals(obj);
}
wechat.protobuf.Lbs.GetAddressRequest other = (wechat.protobuf.Lbs.GetAddressRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasLongitude() != other.hasLongitude()) return false;
if (hasLongitude()) {
if (java.lang.Double.doubleToLongBits(getLongitude())
!= java.lang.Double.doubleToLongBits(
other.getLongitude())) return false;
}
if (hasLatitude() != other.hasLatitude()) return false;
if (hasLatitude()) {
if (java.lang.Double.doubleToLongBits(getLatitude())
!= java.lang.Double.doubleToLongBits(
other.getLatitude())) 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) + BASEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasLongitude()) {
hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLongitude()));
}
if (hasLatitude()) {
hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLatitude()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.Lbs.GetAddressRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetAddressRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetAddressRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetAddressRequest 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.Lbs.GetAddressRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetAddressRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetAddressRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetAddressRequest 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.Lbs.GetAddressRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetAddressRequest 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.Lbs.GetAddressRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetAddressRequest 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.Lbs.GetAddressRequest 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.GetAddressRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.GetAddressRequest)
wechat.protobuf.Lbs.GetAddressRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetAddressRequest.class, wechat.protobuf.Lbs.GetAddressRequest.Builder.class);
}
// Construct using wechat.protobuf.Lbs.GetAddressRequest.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();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
longitude_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
latitude_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetAddressRequest getDefaultInstanceForType() {
return wechat.protobuf.Lbs.GetAddressRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.Lbs.GetAddressRequest build() {
wechat.protobuf.Lbs.GetAddressRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetAddressRequest buildPartial() {
wechat.protobuf.Lbs.GetAddressRequest result = new wechat.protobuf.Lbs.GetAddressRequest(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)) {
result.longitude_ = longitude_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.latitude_ = latitude_;
to_bitField0_ |= 0x00000004;
}
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.Lbs.GetAddressRequest) {
return mergeFrom((wechat.protobuf.Lbs.GetAddressRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.Lbs.GetAddressRequest other) {
if (other == wechat.protobuf.Lbs.GetAddressRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasLongitude()) {
setLongitude(other.getLongitude());
}
if (other.hasLatitude()) {
setLatitude(other.getLatitude());
}
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.Lbs.GetAddressRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.Lbs.GetAddressRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.Wechat.BaseRequest baseRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseRequest, wechat.protobuf.Wechat.BaseRequest.Builder, wechat.protobuf.Wechat.BaseRequestOrBuilder> baseRequestBuilder_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
public wechat.protobuf.Wechat.BaseRequest getBaseRequest() {
if (baseRequestBuilder_ == null) {
return baseRequest_ == null ? wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
} else {
return baseRequestBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder setBaseRequest(wechat.protobuf.Wechat.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 baseRequest = 1;
*/
public Builder setBaseRequest(
wechat.protobuf.Wechat.BaseRequest.Builder builderForValue) {
if (baseRequestBuilder_ == null) {
baseRequest_ = builderForValue.build();
onChanged();
} else {
baseRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder mergeBaseRequest(wechat.protobuf.Wechat.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseRequest_ != null &&
baseRequest_ != wechat.protobuf.Wechat.BaseRequest.getDefaultInstance()) {
baseRequest_ =
wechat.protobuf.Wechat.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
} else {
baseRequest_ = value;
}
onChanged();
} else {
baseRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder clearBaseRequest() {
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
onChanged();
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.Wechat.BaseRequest.Builder getBaseRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseRequestFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.Wechat.BaseRequestOrBuilder getBaseRequestOrBuilder() {
if (baseRequestBuilder_ != null) {
return baseRequestBuilder_.getMessageOrBuilder();
} else {
return baseRequest_ == null ?
wechat.protobuf.Wechat.BaseRequest.getDefaultInstance() : baseRequest_;
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseRequest, wechat.protobuf.Wechat.BaseRequest.Builder, wechat.protobuf.Wechat.BaseRequestOrBuilder>
getBaseRequestFieldBuilder() {
if (baseRequestBuilder_ == null) {
baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseRequest, wechat.protobuf.Wechat.BaseRequest.Builder, wechat.protobuf.Wechat.BaseRequestOrBuilder>(
getBaseRequest(),
getParentForChildren(),
isClean());
baseRequest_ = null;
}
return baseRequestBuilder_;
}
private double longitude_ ;
/**
* optional double longitude = 2;
* @return Whether the longitude field is set.
*/
@java.lang.Override
public boolean hasLongitude() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double longitude = 2;
* @return The longitude.
*/
@java.lang.Override
public double getLongitude() {
return longitude_;
}
/**
* optional double longitude = 2;
* @param value The longitude to set.
* @return This builder for chaining.
*/
public Builder setLongitude(double value) {
bitField0_ |= 0x00000002;
longitude_ = value;
onChanged();
return this;
}
/**
* optional double longitude = 2;
* @return This builder for chaining.
*/
public Builder clearLongitude() {
bitField0_ = (bitField0_ & ~0x00000002);
longitude_ = 0D;
onChanged();
return this;
}
private double latitude_ ;
/**
* optional double latitude = 3;
* @return Whether the latitude field is set.
*/
@java.lang.Override
public boolean hasLatitude() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double latitude = 3;
* @return The latitude.
*/
@java.lang.Override
public double getLatitude() {
return latitude_;
}
/**
* optional double latitude = 3;
* @param value The latitude to set.
* @return This builder for chaining.
*/
public Builder setLatitude(double value) {
bitField0_ |= 0x00000004;
latitude_ = value;
onChanged();
return this;
}
/**
* optional double latitude = 3;
* @return This builder for chaining.
*/
public Builder clearLatitude() {
bitField0_ = (bitField0_ & ~0x00000004);
latitude_ = 0D;
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.GetAddressRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.GetAddressRequest)
private static final wechat.protobuf.Lbs.GetAddressRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.Lbs.GetAddressRequest();
}
public static wechat.protobuf.Lbs.GetAddressRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAddressRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAddressRequest(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.Lbs.GetAddressRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAddressResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.GetAddressResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
boolean hasBaseResponse();
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
wechat.protobuf.Wechat.BaseResponse getBaseResponse();
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
wechat.protobuf.Wechat.BaseResponseOrBuilder getBaseResponseOrBuilder();
/**
* optional string retJson = 2;
* @return Whether the retJson field is set.
*/
boolean hasRetJson();
/**
* optional string retJson = 2;
* @return The retJson.
*/
java.lang.String getRetJson();
/**
* optional string retJson = 2;
* @return The bytes for retJson.
*/
com.google.protobuf.ByteString
getRetJsonBytes();
}
/**
* Protobuf type {@code wechat_proto.GetAddressResponse}
*/
public static final class GetAddressResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.GetAddressResponse)
GetAddressResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetAddressResponse.newBuilder() to construct.
private GetAddressResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAddressResponse() {
retJson_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetAddressResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetAddressResponse(
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.Wechat.BaseResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseResponse_.toBuilder();
}
baseResponse_ = input.readMessage(wechat.protobuf.Wechat.BaseResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseResponse_);
baseResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
retJson_ = bs;
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.Lbs.internal_static_wechat_proto_GetAddressResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetAddressResponse.class, wechat.protobuf.Lbs.GetAddressResponse.Builder.class);
}
private int bitField0_;
public static final int BASERESPONSE_FIELD_NUMBER = 1;
private wechat.protobuf.Wechat.BaseResponse baseResponse_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
@java.lang.Override
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseResponse getBaseResponse() {
return baseResponse_ == null ? wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
@java.lang.Override
public wechat.protobuf.Wechat.BaseResponseOrBuilder getBaseResponseOrBuilder() {
return baseResponse_ == null ? wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
}
public static final int RETJSON_FIELD_NUMBER = 2;
private volatile java.lang.Object retJson_;
/**
* optional string retJson = 2;
* @return Whether the retJson field is set.
*/
@java.lang.Override
public boolean hasRetJson() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string retJson = 2;
* @return The retJson.
*/
@java.lang.Override
public java.lang.String getRetJson() {
java.lang.Object ref = retJson_;
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();
if (bs.isValidUtf8()) {
retJson_ = s;
}
return s;
}
}
/**
* optional string retJson = 2;
* @return The bytes for retJson.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRetJsonBytes() {
java.lang.Object ref = retJson_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, retJson_);
}
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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, retJson_);
}
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.Lbs.GetAddressResponse)) {
return super.equals(obj);
}
wechat.protobuf.Lbs.GetAddressResponse other = (wechat.protobuf.Lbs.GetAddressResponse) obj;
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasRetJson() != other.hasRetJson()) return false;
if (hasRetJson()) {
if (!getRetJson()
.equals(other.getRetJson())) 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 (hasBaseResponse()) {
hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBaseResponse().hashCode();
}
if (hasRetJson()) {
hash = (37 * hash) + RETJSON_FIELD_NUMBER;
hash = (53 * hash) + getRetJson().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.Lbs.GetAddressResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetAddressResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetAddressResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetAddressResponse 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.Lbs.GetAddressResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.Lbs.GetAddressResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.Lbs.GetAddressResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetAddressResponse 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.Lbs.GetAddressResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetAddressResponse 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.Lbs.GetAddressResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.Lbs.GetAddressResponse 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.Lbs.GetAddressResponse 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.GetAddressResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.GetAddressResponse)
wechat.protobuf.Lbs.GetAddressResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.Lbs.GetAddressResponse.class, wechat.protobuf.Lbs.GetAddressResponse.Builder.class);
}
// Construct using wechat.protobuf.Lbs.GetAddressResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseResponseFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
retJson_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Lbs.internal_static_wechat_proto_GetAddressResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetAddressResponse getDefaultInstanceForType() {
return wechat.protobuf.Lbs.GetAddressResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.Lbs.GetAddressResponse build() {
wechat.protobuf.Lbs.GetAddressResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.Lbs.GetAddressResponse buildPartial() {
wechat.protobuf.Lbs.GetAddressResponse result = new wechat.protobuf.Lbs.GetAddressResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseResponseBuilder_ == null) {
result.baseResponse_ = baseResponse_;
} else {
result.baseResponse_ = baseResponseBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.retJson_ = retJson_;
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.Lbs.GetAddressResponse) {
return mergeFrom((wechat.protobuf.Lbs.GetAddressResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.Lbs.GetAddressResponse other) {
if (other == wechat.protobuf.Lbs.GetAddressResponse.getDefaultInstance()) return this;
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasRetJson()) {
bitField0_ |= 0x00000002;
retJson_ = other.retJson_;
onChanged();
}
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.Lbs.GetAddressResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.Lbs.GetAddressResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.Wechat.BaseResponse baseResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseResponse, wechat.protobuf.Wechat.BaseResponse.Builder, wechat.protobuf.Wechat.BaseResponseOrBuilder> baseResponseBuilder_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
public wechat.protobuf.Wechat.BaseResponse getBaseResponse() {
if (baseResponseBuilder_ == null) {
return baseResponse_ == null ? wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
} else {
return baseResponseBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(wechat.protobuf.Wechat.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseResponse_ = value;
onChanged();
} else {
baseResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(
wechat.protobuf.Wechat.BaseResponse.Builder builderForValue) {
if (baseResponseBuilder_ == null) {
baseResponse_ = builderForValue.build();
onChanged();
} else {
baseResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder mergeBaseResponse(wechat.protobuf.Wechat.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseResponse_ != null &&
baseResponse_ != wechat.protobuf.Wechat.BaseResponse.getDefaultInstance()) {
baseResponse_ =
wechat.protobuf.Wechat.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
} else {
baseResponse_ = value;
}
onChanged();
} else {
baseResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder clearBaseResponse() {
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
onChanged();
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.Wechat.BaseResponse.Builder getBaseResponseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseResponseFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.Wechat.BaseResponseOrBuilder getBaseResponseOrBuilder() {
if (baseResponseBuilder_ != null) {
return baseResponseBuilder_.getMessageOrBuilder();
} else {
return baseResponse_ == null ?
wechat.protobuf.Wechat.BaseResponse.getDefaultInstance() : baseResponse_;
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseResponse, wechat.protobuf.Wechat.BaseResponse.Builder, wechat.protobuf.Wechat.BaseResponseOrBuilder>
getBaseResponseFieldBuilder() {
if (baseResponseBuilder_ == null) {
baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.BaseResponse, wechat.protobuf.Wechat.BaseResponse.Builder, wechat.protobuf.Wechat.BaseResponseOrBuilder>(
getBaseResponse(),
getParentForChildren(),
isClean());
baseResponse_ = null;
}
return baseResponseBuilder_;
}
private java.lang.Object retJson_ = "";
/**
* optional string retJson = 2;
* @return Whether the retJson field is set.
*/
public boolean hasRetJson() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string retJson = 2;
* @return The retJson.
*/
public java.lang.String getRetJson() {
java.lang.Object ref = retJson_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retJson_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string retJson = 2;
* @return The bytes for retJson.
*/
public com.google.protobuf.ByteString
getRetJsonBytes() {
java.lang.Object ref = retJson_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retJson_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string retJson = 2;
* @param value The retJson to set.
* @return This builder for chaining.
*/
public Builder setRetJson(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retJson_ = value;
onChanged();
return this;
}
/**
* optional string retJson = 2;
* @return This builder for chaining.
*/
public Builder clearRetJson() {
bitField0_ = (bitField0_ & ~0x00000002);
retJson_ = getDefaultInstance().getRetJson();
onChanged();
return this;
}
/**
* optional string retJson = 2;
* @param value The bytes for retJson to set.
* @return This builder for chaining.
*/
public Builder setRetJsonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retJson_ = value;
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.GetAddressResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.GetAddressResponse)
private static final wechat.protobuf.Lbs.GetAddressResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.Lbs.GetAddressResponse();
}
public static wechat.protobuf.Lbs.GetAddressResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetAddressResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAddressResponse(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.Lbs.GetAddressResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_GetLbsLifeListRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_GetLbsLifeListRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_LbsLocation_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_LbsLocation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_GetLbsLifeListResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_GetLbsLifeListResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_LbsLife_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_LbsLife_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_GetAddressRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_GetAddressRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_GetAddressResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_GetAddressResponse_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\tlbs.proto\022\014wechat_proto\032\014wechat.proto\"" +
"\365\001\n\025GetLbsLifeListRequest\022.\n\013baseRequest" +
"\030\001 \001(\0132\031.wechat_proto.BaseRequest\022\016\n\006opc" +
"ode\030\002 \001(\r\022\r\n\005scene\030\003 \001(\r\022,\n\004buff\030\004 \001(\0132\036" +
".wechat_proto.SKBuiltinString_\022&\n\003loc\030\005 " +
"\001(\0132\031.wechat_proto.LbsLocation\022\017\n\007keywor" +
"d\030\006 \001(\t\022\021\n\tentryTime\030\007 \001(\r\022\023\n\013isAutoQuer" +
"y\030\010 \001(\r\"y\n\013LbsLocation\022\021\n\tlongitude\030\001 \001(" +
"\002\022\020\n\010latitude\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\005\022\017" +
"\n\007macAddr\030\004 \001(\t\022\016\n\006cellId\030\005 \001(\t\022\021\n\tgpsso" +
"urce\030\006 \001(\005\"\251\002\n\026GetLbsLifeListResponse\0220\n" +
"\014baseResponse\030\001 \001(\0132\032.wechat_proto.BaseR" +
"esponse\022,\n\004buff\030\002 \001(\0132\036.wechat_proto.SKB" +
"uiltinString_\022\017\n\007iconNum\030\003 \001(\r\022\020\n\010iconLi" +
"st\030\004 \003(\t\022\017\n\007lifeNum\030\005 \001(\r\022\'\n\010lifeList\030\006 " +
"\003(\0132\025.wechat_proto.LbsLife\022\024\n\014continueFl" +
"ag\030\007 \001(\r\022\017\n\007logoUrl\030\010 \001(\t\022\020\n\010searchId\030\t " +
"\001(\t\022\031\n\021autoQueryInterval\030\n \001(\005\"\335\002\n\007LbsLi" +
"fe\022\013\n\003bid\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\r\n\005price\030" +
"\003 \001(\002\022\022\n\niconIdxNum\030\004 \001(\r\022\023\n\013iconIdxList" +
"\030\005 \003(\r\022\017\n\007descNum\030\006 \001(\r\022/\n\010descList\030\007 \003(" +
"\0132\035.wechat_proto.SKBuiltinString\022\014\n\004rate" +
"\030\010 \001(\002\022\014\n\004link\030\t \001(\t\022\014\n\004type\030\n \001(\r\022+\n\003ct" +
"x\030\013 \001(\0132\036.wechat_proto.SKBuiltinString_\022" +
"\016\n\006poiUrl\030\014 \001(\t\0221\n\tweAppInfo\030\r \001(\0132\036.wec" +
"hat_proto.SKBuiltinString_\022\020\n\010showType\030\016" +
" \001(\r\022\020\n\010showFlag\030\017 \001(\r\"h\n\021GetAddressRequ" +
"est\022.\n\013baseRequest\030\001 \001(\0132\031.wechat_proto." +
"BaseRequest\022\021\n\tlongitude\030\002 \001(\001\022\020\n\010latitu" +
"de\030\003 \001(\001\"W\n\022GetAddressResponse\0220\n\014baseRe" +
"sponse\030\001 \001(\0132\032.wechat_proto.BaseResponse" +
"\022\017\n\007retJson\030\002 \001(\tB\034\n\017wechat.protobufZ\t.." +
"/wechat"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
wechat.protobuf.Wechat.getDescriptor(),
});
internal_static_wechat_proto_GetLbsLifeListRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_wechat_proto_GetLbsLifeListRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_GetLbsLifeListRequest_descriptor,
new java.lang.String[] { "BaseRequest", "Opcode", "Scene", "Buff", "Loc", "Keyword", "EntryTime", "IsAutoQuery", });
internal_static_wechat_proto_LbsLocation_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_wechat_proto_LbsLocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_LbsLocation_descriptor,
new java.lang.String[] { "Longitude", "Latitude", "Precision", "MacAddr", "CellId", "Gpssource", });
internal_static_wechat_proto_GetLbsLifeListResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_wechat_proto_GetLbsLifeListResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_GetLbsLifeListResponse_descriptor,
new java.lang.String[] { "BaseResponse", "Buff", "IconNum", "IconList", "LifeNum", "LifeList", "ContinueFlag", "LogoUrl", "SearchId", "AutoQueryInterval", });
internal_static_wechat_proto_LbsLife_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_wechat_proto_LbsLife_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_LbsLife_descriptor,
new java.lang.String[] { "Bid", "Title", "Price", "IconIdxNum", "IconIdxList", "DescNum", "DescList", "Rate", "Link", "Type", "Ctx", "PoiUrl", "WeAppInfo", "ShowType", "ShowFlag", });
internal_static_wechat_proto_GetAddressRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_wechat_proto_GetAddressRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_GetAddressRequest_descriptor,
new java.lang.String[] { "BaseRequest", "Longitude", "Latitude", });
internal_static_wechat_proto_GetAddressResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_wechat_proto_GetAddressResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_GetAddressResponse_descriptor,
new java.lang.String[] { "BaseResponse", "RetJson", });
wechat.protobuf.Wechat.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy