All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wechat.protobuf.SearchDetailPageRequest Maven / Gradle / Ivy

There is a newer version: 8.0.48.01
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wechat.proto

package wechat.protobuf;

/**
 * Protobuf type {@code wechat_proto.SearchDetailPageRequest}
 */
public final class SearchDetailPageRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.SearchDetailPageRequest)
    SearchDetailPageRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SearchDetailPageRequest.newBuilder() to construct.
  private SearchDetailPageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SearchDetailPageRequest() {
    keyWord_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new SearchDetailPageRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SearchDetailPageRequest(
      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 8: {
            bitField0_ |= 0x00000001;
            bussinessType_ = input.readInt64();
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            keyWord_ = bs;
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            offset_ = input.readUInt32();
            break;
          }
          case 34: {
            wechat.protobuf.LbsLocationNew.Builder subBuilder = null;
            if (((bitField0_ & 0x00000008) != 0)) {
              subBuilder = location_.toBuilder();
            }
            location_ = input.readMessage(wechat.protobuf.LbsLocationNew.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(location_);
              location_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000008;
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            requestSrc_ = input.readUInt32();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000020;
            scene_ = input.readUInt32();
            break;
          }
          case 64: {
            bitField0_ |= 0x00000040;
            searchId_ = input.readUInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchDetailPageRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchDetailPageRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.SearchDetailPageRequest.class, wechat.protobuf.SearchDetailPageRequest.Builder.class);
  }

  private int bitField0_;
  public static final int BUSSINESS_TYPE_FIELD_NUMBER = 1;
  private long bussinessType_;
  /**
   * optional int64 bussiness_type = 1;
   * @return Whether the bussinessType field is set.
   */
  @java.lang.Override
  public boolean hasBussinessType() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int64 bussiness_type = 1;
   * @return The bussinessType.
   */
  @java.lang.Override
  public long getBussinessType() {
    return bussinessType_;
  }

  public static final int KEY_WORD_FIELD_NUMBER = 2;
  private volatile java.lang.Object keyWord_;
  /**
   * optional string key_word = 2;
   * @return Whether the keyWord field is set.
   */
  @java.lang.Override
  public boolean hasKeyWord() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string key_word = 2;
   * @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 key_word = 2;
   * @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 OFFSET_FIELD_NUMBER = 3;
  private int offset_;
  /**
   * optional uint32 offset = 3;
   * @return Whether the offset field is set.
   */
  @java.lang.Override
  public boolean hasOffset() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint32 offset = 3;
   * @return The offset.
   */
  @java.lang.Override
  public int getOffset() {
    return offset_;
  }

  public static final int LOCATION_FIELD_NUMBER = 4;
  private wechat.protobuf.LbsLocationNew location_;
  /**
   * optional .wechat_proto.LbsLocationNew location = 4;
   * @return Whether the location field is set.
   */
  @java.lang.Override
  public boolean hasLocation() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional .wechat_proto.LbsLocationNew location = 4;
   * @return The location.
   */
  @java.lang.Override
  public wechat.protobuf.LbsLocationNew getLocation() {
    return location_ == null ? wechat.protobuf.LbsLocationNew.getDefaultInstance() : location_;
  }
  /**
   * optional .wechat_proto.LbsLocationNew location = 4;
   */
  @java.lang.Override
  public wechat.protobuf.LbsLocationNewOrBuilder getLocationOrBuilder() {
    return location_ == null ? wechat.protobuf.LbsLocationNew.getDefaultInstance() : location_;
  }

  public static final int REQUEST_SRC_FIELD_NUMBER = 5;
  private int requestSrc_;
  /**
   * optional uint32 request_src = 5;
   * @return Whether the requestSrc field is set.
   */
  @java.lang.Override
  public boolean hasRequestSrc() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional uint32 request_src = 5;
   * @return The requestSrc.
   */
  @java.lang.Override
  public int getRequestSrc() {
    return requestSrc_;
  }

  public static final int SCENE_FIELD_NUMBER = 7;
  private int scene_;
  /**
   * optional uint32 scene = 7;
   * @return Whether the scene field is set.
   */
  @java.lang.Override
  public boolean hasScene() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional uint32 scene = 7;
   * @return The scene.
   */
  @java.lang.Override
  public int getScene() {
    return scene_;
  }

  public static final int SEARCH_ID_FIELD_NUMBER = 8;
  private int searchId_;
  /**
   * optional uint32 search_id = 8;
   * @return Whether the searchId field is set.
   */
  @java.lang.Override
  public boolean hasSearchId() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional uint32 search_id = 8;
   * @return The searchId.
   */
  @java.lang.Override
  public int getSearchId() {
    return searchId_;
  }

  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.writeInt64(1, bussinessType_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyWord_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, offset_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(4, getLocation());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeUInt32(5, requestSrc_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeUInt32(7, scene_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeUInt32(8, searchId_);
    }
    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
        .computeInt64Size(1, bussinessType_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyWord_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, offset_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getLocation());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(5, requestSrc_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, scene_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, searchId_);
    }
    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.SearchDetailPageRequest)) {
      return super.equals(obj);
    }
    wechat.protobuf.SearchDetailPageRequest other = (wechat.protobuf.SearchDetailPageRequest) obj;

    if (hasBussinessType() != other.hasBussinessType()) return false;
    if (hasBussinessType()) {
      if (getBussinessType()
          != other.getBussinessType()) return false;
    }
    if (hasKeyWord() != other.hasKeyWord()) return false;
    if (hasKeyWord()) {
      if (!getKeyWord()
          .equals(other.getKeyWord())) return false;
    }
    if (hasOffset() != other.hasOffset()) return false;
    if (hasOffset()) {
      if (getOffset()
          != other.getOffset()) return false;
    }
    if (hasLocation() != other.hasLocation()) return false;
    if (hasLocation()) {
      if (!getLocation()
          .equals(other.getLocation())) return false;
    }
    if (hasRequestSrc() != other.hasRequestSrc()) return false;
    if (hasRequestSrc()) {
      if (getRequestSrc()
          != other.getRequestSrc()) return false;
    }
    if (hasScene() != other.hasScene()) return false;
    if (hasScene()) {
      if (getScene()
          != other.getScene()) return false;
    }
    if (hasSearchId() != other.hasSearchId()) return false;
    if (hasSearchId()) {
      if (getSearchId()
          != other.getSearchId()) 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 (hasBussinessType()) {
      hash = (37 * hash) + BUSSINESS_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getBussinessType());
    }
    if (hasKeyWord()) {
      hash = (37 * hash) + KEY_WORD_FIELD_NUMBER;
      hash = (53 * hash) + getKeyWord().hashCode();
    }
    if (hasOffset()) {
      hash = (37 * hash) + OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + getOffset();
    }
    if (hasLocation()) {
      hash = (37 * hash) + LOCATION_FIELD_NUMBER;
      hash = (53 * hash) + getLocation().hashCode();
    }
    if (hasRequestSrc()) {
      hash = (37 * hash) + REQUEST_SRC_FIELD_NUMBER;
      hash = (53 * hash) + getRequestSrc();
    }
    if (hasScene()) {
      hash = (37 * hash) + SCENE_FIELD_NUMBER;
      hash = (53 * hash) + getScene();
    }
    if (hasSearchId()) {
      hash = (37 * hash) + SEARCH_ID_FIELD_NUMBER;
      hash = (53 * hash) + getSearchId();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static wechat.protobuf.SearchDetailPageRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.SearchDetailPageRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.SearchDetailPageRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.SearchDetailPageRequest 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.SearchDetailPageRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.SearchDetailPageRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.SearchDetailPageRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.SearchDetailPageRequest 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.SearchDetailPageRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static wechat.protobuf.SearchDetailPageRequest 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.SearchDetailPageRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.SearchDetailPageRequest 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.SearchDetailPageRequest 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.SearchDetailPageRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:wechat_proto.SearchDetailPageRequest)
      wechat.protobuf.SearchDetailPageRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchDetailPageRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchDetailPageRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              wechat.protobuf.SearchDetailPageRequest.class, wechat.protobuf.SearchDetailPageRequest.Builder.class);
    }

    // Construct using wechat.protobuf.SearchDetailPageRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getLocationFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bussinessType_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000001);
      keyWord_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      offset_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      if (locationBuilder_ == null) {
        location_ = null;
      } else {
        locationBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      requestSrc_ = 0;
      bitField0_ = (bitField0_ & ~0x00000010);
      scene_ = 0;
      bitField0_ = (bitField0_ & ~0x00000020);
      searchId_ = 0;
      bitField0_ = (bitField0_ & ~0x00000040);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_SearchDetailPageRequest_descriptor;
    }

    @java.lang.Override
    public wechat.protobuf.SearchDetailPageRequest getDefaultInstanceForType() {
      return wechat.protobuf.SearchDetailPageRequest.getDefaultInstance();
    }

    @java.lang.Override
    public wechat.protobuf.SearchDetailPageRequest build() {
      wechat.protobuf.SearchDetailPageRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public wechat.protobuf.SearchDetailPageRequest buildPartial() {
      wechat.protobuf.SearchDetailPageRequest result = new wechat.protobuf.SearchDetailPageRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.bussinessType_ = bussinessType_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.keyWord_ = keyWord_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.offset_ = offset_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        if (locationBuilder_ == null) {
          result.location_ = location_;
        } else {
          result.location_ = locationBuilder_.build();
        }
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.requestSrc_ = requestSrc_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.scene_ = scene_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.searchId_ = searchId_;
        to_bitField0_ |= 0x00000040;
      }
      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.SearchDetailPageRequest) {
        return mergeFrom((wechat.protobuf.SearchDetailPageRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.SearchDetailPageRequest other) {
      if (other == wechat.protobuf.SearchDetailPageRequest.getDefaultInstance()) return this;
      if (other.hasBussinessType()) {
        setBussinessType(other.getBussinessType());
      }
      if (other.hasKeyWord()) {
        bitField0_ |= 0x00000002;
        keyWord_ = other.keyWord_;
        onChanged();
      }
      if (other.hasOffset()) {
        setOffset(other.getOffset());
      }
      if (other.hasLocation()) {
        mergeLocation(other.getLocation());
      }
      if (other.hasRequestSrc()) {
        setRequestSrc(other.getRequestSrc());
      }
      if (other.hasScene()) {
        setScene(other.getScene());
      }
      if (other.hasSearchId()) {
        setSearchId(other.getSearchId());
      }
      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.SearchDetailPageRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.SearchDetailPageRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private long bussinessType_ ;
    /**
     * optional int64 bussiness_type = 1;
     * @return Whether the bussinessType field is set.
     */
    @java.lang.Override
    public boolean hasBussinessType() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int64 bussiness_type = 1;
     * @return The bussinessType.
     */
    @java.lang.Override
    public long getBussinessType() {
      return bussinessType_;
    }
    /**
     * optional int64 bussiness_type = 1;
     * @param value The bussinessType to set.
     * @return This builder for chaining.
     */
    public Builder setBussinessType(long value) {
      bitField0_ |= 0x00000001;
      bussinessType_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 bussiness_type = 1;
     * @return This builder for chaining.
     */
    public Builder clearBussinessType() {
      bitField0_ = (bitField0_ & ~0x00000001);
      bussinessType_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object keyWord_ = "";
    /**
     * optional string key_word = 2;
     * @return Whether the keyWord field is set.
     */
    public boolean hasKeyWord() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string key_word = 2;
     * @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 key_word = 2;
     * @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 key_word = 2;
     * @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_ |= 0x00000002;
      keyWord_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string key_word = 2;
     * @return This builder for chaining.
     */
    public Builder clearKeyWord() {
      bitField0_ = (bitField0_ & ~0x00000002);
      keyWord_ = getDefaultInstance().getKeyWord();
      onChanged();
      return this;
    }
    /**
     * optional string key_word = 2;
     * @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_ |= 0x00000002;
      keyWord_ = value;
      onChanged();
      return this;
    }

    private int offset_ ;
    /**
     * optional uint32 offset = 3;
     * @return Whether the offset field is set.
     */
    @java.lang.Override
    public boolean hasOffset() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 offset = 3;
     * @return The offset.
     */
    @java.lang.Override
    public int getOffset() {
      return offset_;
    }
    /**
     * optional uint32 offset = 3;
     * @param value The offset to set.
     * @return This builder for chaining.
     */
    public Builder setOffset(int value) {
      bitField0_ |= 0x00000004;
      offset_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 offset = 3;
     * @return This builder for chaining.
     */
    public Builder clearOffset() {
      bitField0_ = (bitField0_ & ~0x00000004);
      offset_ = 0;
      onChanged();
      return this;
    }

    private wechat.protobuf.LbsLocationNew location_;
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.LbsLocationNew, wechat.protobuf.LbsLocationNew.Builder, wechat.protobuf.LbsLocationNewOrBuilder> locationBuilder_;
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     * @return Whether the location field is set.
     */
    public boolean hasLocation() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     * @return The location.
     */
    public wechat.protobuf.LbsLocationNew getLocation() {
      if (locationBuilder_ == null) {
        return location_ == null ? wechat.protobuf.LbsLocationNew.getDefaultInstance() : location_;
      } else {
        return locationBuilder_.getMessage();
      }
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    public Builder setLocation(wechat.protobuf.LbsLocationNew value) {
      if (locationBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        location_ = value;
        onChanged();
      } else {
        locationBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    public Builder setLocation(
        wechat.protobuf.LbsLocationNew.Builder builderForValue) {
      if (locationBuilder_ == null) {
        location_ = builderForValue.build();
        onChanged();
      } else {
        locationBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    public Builder mergeLocation(wechat.protobuf.LbsLocationNew value) {
      if (locationBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
            location_ != null &&
            location_ != wechat.protobuf.LbsLocationNew.getDefaultInstance()) {
          location_ =
            wechat.protobuf.LbsLocationNew.newBuilder(location_).mergeFrom(value).buildPartial();
        } else {
          location_ = value;
        }
        onChanged();
      } else {
        locationBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    public Builder clearLocation() {
      if (locationBuilder_ == null) {
        location_ = null;
        onChanged();
      } else {
        locationBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    public wechat.protobuf.LbsLocationNew.Builder getLocationBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getLocationFieldBuilder().getBuilder();
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    public wechat.protobuf.LbsLocationNewOrBuilder getLocationOrBuilder() {
      if (locationBuilder_ != null) {
        return locationBuilder_.getMessageOrBuilder();
      } else {
        return location_ == null ?
            wechat.protobuf.LbsLocationNew.getDefaultInstance() : location_;
      }
    }
    /**
     * optional .wechat_proto.LbsLocationNew location = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        wechat.protobuf.LbsLocationNew, wechat.protobuf.LbsLocationNew.Builder, wechat.protobuf.LbsLocationNewOrBuilder> 
        getLocationFieldBuilder() {
      if (locationBuilder_ == null) {
        locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            wechat.protobuf.LbsLocationNew, wechat.protobuf.LbsLocationNew.Builder, wechat.protobuf.LbsLocationNewOrBuilder>(
                getLocation(),
                getParentForChildren(),
                isClean());
        location_ = null;
      }
      return locationBuilder_;
    }

    private int requestSrc_ ;
    /**
     * optional uint32 request_src = 5;
     * @return Whether the requestSrc field is set.
     */
    @java.lang.Override
    public boolean hasRequestSrc() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional uint32 request_src = 5;
     * @return The requestSrc.
     */
    @java.lang.Override
    public int getRequestSrc() {
      return requestSrc_;
    }
    /**
     * optional uint32 request_src = 5;
     * @param value The requestSrc to set.
     * @return This builder for chaining.
     */
    public Builder setRequestSrc(int value) {
      bitField0_ |= 0x00000010;
      requestSrc_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 request_src = 5;
     * @return This builder for chaining.
     */
    public Builder clearRequestSrc() {
      bitField0_ = (bitField0_ & ~0x00000010);
      requestSrc_ = 0;
      onChanged();
      return this;
    }

    private int scene_ ;
    /**
     * optional uint32 scene = 7;
     * @return Whether the scene field is set.
     */
    @java.lang.Override
    public boolean hasScene() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional uint32 scene = 7;
     * @return The scene.
     */
    @java.lang.Override
    public int getScene() {
      return scene_;
    }
    /**
     * optional uint32 scene = 7;
     * @param value The scene to set.
     * @return This builder for chaining.
     */
    public Builder setScene(int value) {
      bitField0_ |= 0x00000020;
      scene_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 scene = 7;
     * @return This builder for chaining.
     */
    public Builder clearScene() {
      bitField0_ = (bitField0_ & ~0x00000020);
      scene_ = 0;
      onChanged();
      return this;
    }

    private int searchId_ ;
    /**
     * optional uint32 search_id = 8;
     * @return Whether the searchId field is set.
     */
    @java.lang.Override
    public boolean hasSearchId() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional uint32 search_id = 8;
     * @return The searchId.
     */
    @java.lang.Override
    public int getSearchId() {
      return searchId_;
    }
    /**
     * optional uint32 search_id = 8;
     * @param value The searchId to set.
     * @return This builder for chaining.
     */
    public Builder setSearchId(int value) {
      bitField0_ |= 0x00000040;
      searchId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 search_id = 8;
     * @return This builder for chaining.
     */
    public Builder clearSearchId() {
      bitField0_ = (bitField0_ & ~0x00000040);
      searchId_ = 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.SearchDetailPageRequest)
  }

  // @@protoc_insertion_point(class_scope:wechat_proto.SearchDetailPageRequest)
  private static final wechat.protobuf.SearchDetailPageRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new wechat.protobuf.SearchDetailPageRequest();
  }

  public static wechat.protobuf.SearchDetailPageRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public SearchDetailPageRequest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new SearchDetailPageRequest(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.SearchDetailPageRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy