content: /**
   * Copyright (C) 2024 AIDC-AI
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package com.alibaba.langengine.serp.sdk;
  
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  
  /**
   * SerpAPI Search Request
   */
  @JsonInclude(JsonInclude.Include.NON_NULL)
  public class SearchRequest {
      @JsonProperty("q")
      private String query;
  
      @JsonProperty("api_key")
      private String apiKey;
  
      @JsonProperty("engine")
      private String engine;
  
      @JsonProperty("location")
      private String location;
  
      @JsonProperty("hl")
      private String hl;
  
      @JsonProperty("gl")
      private String gl;
  
      @JsonProperty("google_domain")
      private String googleDomain;
  
      @JsonProperty("start")
      private Integer start;
  
      @JsonProperty("num")
      private Integer num;
  
      @JsonProperty("lr")
      private String lr;
  
      @JsonProperty("safe")
      private String safe;
  
      @JsonProperty("device")
      private String device;
  
      @JsonProperty("sort")
      private String sort;
  
      @JsonProperty("filter")
      private String filter;
  
      // Getters and Setters
      public String getQuery() {
          return query;
      }
  
      public void setQuery(String query) {
          this.query = query;
      }
  
      public String getApiKey() {
          return apiKey;
      }
  
      public void setApiKey(String apiKey) {
          this.apiKey = apiKey;
      }
  
      public String getEngine() {
          return engine;
      }
  
      public void setEngine(String engine) {
          this.engine = engine;
      }
  
      public String getLocation() {
          return location;
      }
  
      public void setLocation(String location) {
          this.location = location;
      }
  
      public String getHl() {
          return hl;
      }
  
      public void setHl(String hl) {
          this.hl = hl;
      }
  
      public String getGl() {
          return gl;
      }
  
      public void setGl(String gl) {
          this.gl = gl;
      }
  
      public String getGoogleDomain() {
          return googleDomain;
      }
  
      public void setGoogleDomain(String googleDomain) {
          this.googleDomain = googleDomain;
      }
  
      public Integer getStart() {
          return start;
      }
  
      public void setStart(Integer start) {
          this.start = start;
      }
  
      public Integer getNum() {
          return num;
      }
  
      public void setNum(Integer num) {
          this.num = num;
      }
  
      public String getLr() {
          return lr;
      }
  
      public void setLr(String lr) {
          this.lr = lr;
      }
  
      public String getSafe() {
          return safe;
      }
  
      public void setSafe(String safe) {
          this.safe = safe;
      }
  
      public String getDevice() {
          return device;
      }
  
      public void setDevice(String device) {
          this.device = device;
      }
  
      public String getSort() {
          return sort;
      }
  
      public void setSort(String sort) {
          this.sort = sort;
      }
  
      public String getFilter() {
          return filter;
      }
  
      public void setFilter(String filter) {
          this.filter = filter;
      }
  }