diff options
Diffstat (limited to 'src/com/appspot/cluestick_server/search/Search.java')
-rw-r--r-- | src/com/appspot/cluestick_server/search/Search.java | 535 |
1 files changed, 0 insertions, 535 deletions
diff --git a/src/com/appspot/cluestick_server/search/Search.java b/src/com/appspot/cluestick_server/search/Search.java deleted file mode 100644 index 855648e..0000000 --- a/src/com/appspot/cluestick_server/search/Search.java +++ /dev/null @@ -1,535 +0,0 @@ -/* - * 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: 2016-01-08 17:48:37 UTC) - * on 2016-02-17 at 11:17:28 UTC - * Modify at your own risk. - */ - -package com.appspot.cluestick_server.search; - -/** - * Service definition for Search (v1). - * - * <p> - * Google Sample Code Index & API - * </p> - * - * <p> - * For more information about this service, see the - * <a href="" target="_blank">API Documentation</a> - * </p> - * - * <p> - * This service uses {@link SearchRequestInitializer} to initialize global parameters via its - * {@link Builder}. - * </p> - * - * @since 1.3 - * @author Google, Inc. - */ -@SuppressWarnings("javadoc") -public class Search extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { - - // Note: Leave this static initializer at the top of the file. - static { - com.google.api.client.util.Preconditions.checkState( - com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && - com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 15, - "You are currently running with version %s of google-api-client. " + - "You need at least version 1.15 of google-api-client to run version " + - "1.21.0 of the search library.", com.google.api.client.googleapis.GoogleUtils.VERSION); - } - - /** - * The default encoded root URL of the service. This is determined when the library is generated - * and normally should not be changed. - * - * @since 1.7 - */ - public static final String DEFAULT_ROOT_URL = "https://cluestick-server.appspot.com/_ah/api/"; - - /** - * The default encoded service path of the service. This is determined when the library is - * generated and normally should not be changed. - * - * @since 1.7 - */ - public static final String DEFAULT_SERVICE_PATH = "search/v1/"; - - /** - * The default encoded base URL of the service. This is determined when the library is generated - * and normally should not be changed. - */ - public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; - - /** - * Constructor. - * - * <p> - * Use {@link Builder} if you need to specify any of the optional parameters. - * </p> - * - * @param transport HTTP transport, which should normally be: - * <ul> - * <li>Google App Engine: - * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li> - * <li>Android: {@code newCompatibleTransport} from - * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li> - * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - * </li> - * </ul> - * @param jsonFactory JSON factory, which may be: - * <ul> - * <li>Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}</li> - * <li>Google GSON: {@code com.google.api.client.json.gson.GsonFactory}</li> - * <li>Android Honeycomb or higher: - * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}</li> - * </ul> - * @param httpRequestInitializer HTTP request initializer or {@code null} for none - * @since 1.7 - */ - public Search(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, - com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { - this(new Builder(transport, jsonFactory, httpRequestInitializer)); - } - - /** - * @param builder builder - */ - Search(Builder builder) { - super(builder); - } - - @Override - protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException { - super.initialize(httpClientRequest); - } - - /** - * Create a request for the method "event". - * - * This request holds the parameters needed by the search server. After setting any optional - * parameters, call the {@link Event#execute()} method to invoke the remote operation. - * - * @param content the {@link com.appspot.cluestick_server.search.model.EventReq} - * @return the request - */ - public Event event(com.appspot.cluestick_server.search.model.EventReq content) throws java.io.IOException { - Event result = new Event(content); - initialize(result); - return result; - } - - public class Event extends SearchRequest<Void> { - - private static final String REST_PATH = "event"; - - /** - * Create a request for the method "event". - * - * This request holds the parameters needed by the the search server. After setting any optional - * parameters, call the {@link Event#execute()} method to invoke the remote operation. <p> {@link - * Event#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor. </p> - * - * @param content the {@link com.appspot.cluestick_server.search.model.EventReq} - * @since 1.13 - */ - protected Event(com.appspot.cluestick_server.search.model.EventReq content) { - super(Search.this, "POST", REST_PATH, content, Void.class); - } - - @Override - public Event setAlt(java.lang.String alt) { - return (Event) super.setAlt(alt); - } - - @Override - public Event setFields(java.lang.String fields) { - return (Event) super.setFields(fields); - } - - @Override - public Event setKey(java.lang.String key) { - return (Event) super.setKey(key); - } - - @Override - public Event setOauthToken(java.lang.String oauthToken) { - return (Event) super.setOauthToken(oauthToken); - } - - @Override - public Event setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Event) super.setPrettyPrint(prettyPrint); - } - - @Override - public Event setQuotaUser(java.lang.String quotaUser) { - return (Event) super.setQuotaUser(quotaUser); - } - - @Override - public Event setUserIp(java.lang.String userIp) { - return (Event) super.setUserIp(userIp); - } - - @Override - public Event set(String parameterName, Object value) { - return (Event) super.set(parameterName, value); - } - } - - /** - * Search the Index - * - * Create a request for the method "search". - * - * This request holds the parameters needed by the search server. After setting any optional - * parameters, call the {@link SearchOperation#execute()} method to invoke the remote operation. - * - * @return the request - */ - public SearchOperation search() throws java.io.IOException { - SearchOperation result = new SearchOperation(); - initialize(result); - return result; - } - - public class SearchOperation extends SearchRequest<com.appspot.cluestick_server.search.model.SearchResponse> { - - private static final String REST_PATH = "search"; - - /** - * Search the Index - * - * Create a request for the method "search". - * - * This request holds the parameters needed by the the search server. After setting any optional - * parameters, call the {@link SearchOperation#execute()} method to invoke the remote operation. - * <p> {@link SearchOperation#initialize(com.google.api.client.googleapis.services.AbstractGoogleC - * lientRequest)} must be called to initialize this instance immediately after invoking the - * constructor. </p> - * - * @since 1.13 - */ - protected SearchOperation() { - super(Search.this, "GET", REST_PATH, null, com.appspot.cluestick_server.search.model.SearchResponse.class); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public SearchOperation setAlt(java.lang.String alt) { - return (SearchOperation) super.setAlt(alt); - } - - @Override - public SearchOperation setFields(java.lang.String fields) { - return (SearchOperation) super.setFields(fields); - } - - @Override - public SearchOperation setKey(java.lang.String key) { - return (SearchOperation) super.setKey(key); - } - - @Override - public SearchOperation setOauthToken(java.lang.String oauthToken) { - return (SearchOperation) super.setOauthToken(oauthToken); - } - - @Override - public SearchOperation setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SearchOperation) super.setPrettyPrint(prettyPrint); - } - - @Override - public SearchOperation setQuotaUser(java.lang.String quotaUser) { - return (SearchOperation) super.setQuotaUser(quotaUser); - } - - @Override - public SearchOperation setUserIp(java.lang.String userIp) { - return (SearchOperation) super.setUserIp(userIp); - } - - @com.google.api.client.util.Key - private java.lang.String lang; - - /** - - */ - public java.lang.String getLang() { - return lang; - } - - public SearchOperation setLang(java.lang.String lang) { - this.lang = lang; - return this; - } - - @com.google.api.client.util.Key("package") - private java.lang.String package__; - - /** - - */ - public java.lang.String getPackage() { - return package__; - } - - public SearchOperation setPackage(java.lang.String package__) { - this.package__ = package__; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String symbol; - - /** - - */ - public java.lang.String getSymbol() { - return symbol; - } - - public SearchOperation setSymbol(java.lang.String symbol) { - this.symbol = symbol; - return this; - } - - @com.google.api.client.util.Key - private java.lang.Boolean prefill; - - /** - - */ - public java.lang.Boolean getPrefill() { - return prefill; - } - - public SearchOperation setPrefill(java.lang.Boolean prefill) { - this.prefill = prefill; - return this; - } - - @com.google.api.client.util.Key - private java.lang.Integer limit; - - /** - [ default: 10] - [ - - */ - public java.lang.Integer getLimit() { - return limit; - } - - public SearchOperation setLimit(java.lang.Integer limit) { - this.limit = limit; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String sessionId; - - /** - - */ - public java.lang.String getSessionId() { - return sessionId; - } - - public SearchOperation setSessionId(java.lang.String sessionId) { - this.sessionId = sessionId; - return this; - } - - @com.google.api.client.util.Key - private java.lang.Boolean hasIndex; - - /** - - */ - public java.lang.Boolean getHasIndex() { - return hasIndex; - } - - public SearchOperation setHasIndex(java.lang.Boolean hasIndex) { - this.hasIndex = hasIndex; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String env; - - /** - - */ - public java.lang.String getEnv() { - return env; - } - - public SearchOperation setEnv(java.lang.String env) { - this.env = env; - return this; - } - - @com.google.api.client.util.Key - private java.lang.String userAgent; - - /** - - */ - public java.lang.String getUserAgent() { - return userAgent; - } - - public SearchOperation setUserAgent(java.lang.String userAgent) { - this.userAgent = userAgent; - return this; - } - - @com.google.api.client.util.Key - private java.lang.Boolean allContext; - - /** - - */ - public java.lang.Boolean getAllContext() { - return allContext; - } - - public SearchOperation setAllContext(java.lang.Boolean allContext) { - this.allContext = allContext; - return this; - } - - @Override - public SearchOperation set(String parameterName, Object value) { - return (SearchOperation) super.set(parameterName, value); - } - } - - /** - * Builder for {@link Search}. - * - * <p> - * Implementation is not thread-safe. - * </p> - * - * @since 1.3.0 - */ - public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { - - /** - * Returns an instance of a new builder. - * - * @param transport HTTP transport, which should normally be: - * <ul> - * <li>Google App Engine: - * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}</li> - * <li>Android: {@code newCompatibleTransport} from - * {@code com.google.api.client.extensions.android.http.AndroidHttp}</li> - * <li>Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - * </li> - * </ul> - * @param jsonFactory JSON factory, which may be: - * <ul> - * <li>Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}</li> - * <li>Google GSON: {@code com.google.api.client.json.gson.GsonFactory}</li> - * <li>Android Honeycomb or higher: - * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}</li> - * </ul> - * @param httpRequestInitializer HTTP request initializer or {@code null} for none - * @since 1.7 - */ - public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, - com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { - super( - transport, - jsonFactory, - DEFAULT_ROOT_URL, - DEFAULT_SERVICE_PATH, - httpRequestInitializer, - false); - } - - /** Builds a new instance of {@link Search}. */ - @Override - public Search build() { - return new Search(this); - } - - @Override - public Builder setRootUrl(String rootUrl) { - return (Builder) super.setRootUrl(rootUrl); - } - - @Override - public Builder setServicePath(String servicePath) { - return (Builder) super.setServicePath(servicePath); - } - - @Override - public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { - return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); - } - - @Override - public Builder setApplicationName(String applicationName) { - return (Builder) super.setApplicationName(applicationName); - } - - @Override - public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { - return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); - } - - @Override - public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { - return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); - } - - @Override - public Builder setSuppressAllChecks(boolean suppressAllChecks) { - return (Builder) super.setSuppressAllChecks(suppressAllChecks); - } - - /** - * Set the {@link SearchRequestInitializer}. - * - * @since 1.12 - */ - public Builder setSearchRequestInitializer( - SearchRequestInitializer searchRequestInitializer) { - return (Builder) super.setGoogleClientRequestInitializer(searchRequestInitializer); - } - - @Override - public Builder setGoogleClientRequestInitializer( - com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { - return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); - } - } -} |