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

com.google.api.services.kgsearch.v1.model.SearchResponse Maven / Gradle / Ivy

There is a newer version: v1-rev20200809-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * 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.
 */
/*
 * This code was generated by https://github.com/google/apis-client-generator/
 * (build: 2018-10-08 17:45:39 UTC)
 * on 2019-08-18 at 08:22:04 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.kgsearch.v1.model;

/**
 * Response message includes the context and a list of matching results which contain the detail of
 * associated entities.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Knowledge Graph Search API. For a detailed * explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class SearchResponse extends com.google.api.client.json.GenericJson { /** * The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld * /#context-definitions. * The value may be {@code null}. */ @com.google.api.client.util.Key("@context") private java.lang.Object context; /** * The schema type of top-level JSON-LD object, e.g. ItemList. * The value may be {@code null}. */ @com.google.api.client.util.Key("@type") private java.lang.Object type; /** * The item list of search results. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List itemListElement; /** * The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld * /#context-definitions. * @return value or {@code null} for none */ public java.lang.Object getContext() { return context; } /** * The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld * /#context-definitions. * @param context context or {@code null} for none */ public SearchResponse setContext(java.lang.Object context) { this.context = context; return this; } /** * The schema type of top-level JSON-LD object, e.g. ItemList. * @return value or {@code null} for none */ public java.lang.Object getType() { return type; } /** * The schema type of top-level JSON-LD object, e.g. ItemList. * @param type type or {@code null} for none */ public SearchResponse setType(java.lang.Object type) { this.type = type; return this; } /** * The item list of search results. * @return value or {@code null} for none */ public java.util.List getItemListElement() { return itemListElement; } /** * The item list of search results. * @param itemListElement itemListElement or {@code null} for none */ public SearchResponse setItemListElement(java.util.List itemListElement) { this.itemListElement = itemListElement; return this; } @Override public SearchResponse set(String fieldName, Object value) { return (SearchResponse) super.set(fieldName, value); } @Override public SearchResponse clone() { return (SearchResponse) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy