Skip to content

Commit 5a98a32

Browse files
committed
Adds generated client library until v1 is published
1 parent b40c291 commit 5a98a32

27 files changed

+4764
-0
lines changed

language/analysis/src/main/java/com/google/api/services/language/v1/CloudNaturalLanguageAPI.java

+1,358
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,303 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/google/apis-client-generator/
14+
* (build: 2016-10-19 16:23:00 PDT)
15+
* on 2016-10-19 at 23:23:02 UTC
16+
* Modify at your own risk.
17+
*/
18+
19+
package com.google.api.services.language.v1;
20+
21+
/**
22+
* CloudNaturalLanguageAPI request.
23+
*
24+
* @since 1.3
25+
*/
26+
@SuppressWarnings("javadoc")
27+
public abstract class CloudNaturalLanguageAPIRequest<T> extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T> {
28+
29+
/**
30+
* @param client Google client
31+
* @param method HTTP Method
32+
* @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/"
33+
* the base path from the base URL will be stripped out. The URI template can also be a
34+
* full URL. URI template expansion is done using
35+
* {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)}
36+
* @param content A POJO that can be serialized into JSON or {@code null} for none
37+
* @param responseClass response class to parse into
38+
*/
39+
public CloudNaturalLanguageAPIRequest(
40+
CloudNaturalLanguageAPI client, String method, String uriTemplate, Object content, Class<T> responseClass) {
41+
super(
42+
client,
43+
method,
44+
uriTemplate,
45+
content,
46+
responseClass);
47+
}
48+
49+
/** V1 error format. */
50+
@com.google.api.client.util.Key("$.xgafv")
51+
private java.lang.String $Xgafv;
52+
53+
/**
54+
* V1 error format.
55+
*/
56+
public java.lang.String get$Xgafv() {
57+
return $Xgafv;
58+
}
59+
60+
/** V1 error format. */
61+
public CloudNaturalLanguageAPIRequest<T> set$Xgafv(java.lang.String $Xgafv) {
62+
this.$Xgafv = $Xgafv;
63+
return this;
64+
}
65+
66+
/** OAuth access token. */
67+
@com.google.api.client.util.Key("access_token")
68+
private java.lang.String accessToken;
69+
70+
/**
71+
* OAuth access token.
72+
*/
73+
public java.lang.String getAccessToken() {
74+
return accessToken;
75+
}
76+
77+
/** OAuth access token. */
78+
public CloudNaturalLanguageAPIRequest<T> setAccessToken(java.lang.String accessToken) {
79+
this.accessToken = accessToken;
80+
return this;
81+
}
82+
83+
/** Data format for response. */
84+
@com.google.api.client.util.Key
85+
private java.lang.String alt;
86+
87+
/**
88+
* Data format for response. [default: json]
89+
*/
90+
public java.lang.String getAlt() {
91+
return alt;
92+
}
93+
94+
/** Data format for response. */
95+
public CloudNaturalLanguageAPIRequest<T> setAlt(java.lang.String alt) {
96+
this.alt = alt;
97+
return this;
98+
}
99+
100+
/** OAuth bearer token. */
101+
@com.google.api.client.util.Key("bearer_token")
102+
private java.lang.String bearerToken;
103+
104+
/**
105+
* OAuth bearer token.
106+
*/
107+
public java.lang.String getBearerToken() {
108+
return bearerToken;
109+
}
110+
111+
/** OAuth bearer token. */
112+
public CloudNaturalLanguageAPIRequest<T> setBearerToken(java.lang.String bearerToken) {
113+
this.bearerToken = bearerToken;
114+
return this;
115+
}
116+
117+
/** JSONP */
118+
@com.google.api.client.util.Key
119+
private java.lang.String callback;
120+
121+
/**
122+
* JSONP
123+
*/
124+
public java.lang.String getCallback() {
125+
return callback;
126+
}
127+
128+
/** JSONP */
129+
public CloudNaturalLanguageAPIRequest<T> setCallback(java.lang.String callback) {
130+
this.callback = callback;
131+
return this;
132+
}
133+
134+
/** Selector specifying which fields to include in a partial response. */
135+
@com.google.api.client.util.Key
136+
private java.lang.String fields;
137+
138+
/**
139+
* Selector specifying which fields to include in a partial response.
140+
*/
141+
public java.lang.String getFields() {
142+
return fields;
143+
}
144+
145+
/** Selector specifying which fields to include in a partial response. */
146+
public CloudNaturalLanguageAPIRequest<T> setFields(java.lang.String fields) {
147+
this.fields = fields;
148+
return this;
149+
}
150+
151+
/**
152+
* API key. Your API key identifies your project and provides you with API access, quota, and
153+
* reports. Required unless you provide an OAuth 2.0 token.
154+
*/
155+
@com.google.api.client.util.Key
156+
private java.lang.String key;
157+
158+
/**
159+
* API key. Your API key identifies your project and provides you with API access, quota, and
160+
* reports. Required unless you provide an OAuth 2.0 token.
161+
*/
162+
public java.lang.String getKey() {
163+
return key;
164+
}
165+
166+
/**
167+
* API key. Your API key identifies your project and provides you with API access, quota, and
168+
* reports. Required unless you provide an OAuth 2.0 token.
169+
*/
170+
public CloudNaturalLanguageAPIRequest<T> setKey(java.lang.String key) {
171+
this.key = key;
172+
return this;
173+
}
174+
175+
/** OAuth 2.0 token for the current user. */
176+
@com.google.api.client.util.Key("oauth_token")
177+
private java.lang.String oauthToken;
178+
179+
/**
180+
* OAuth 2.0 token for the current user.
181+
*/
182+
public java.lang.String getOauthToken() {
183+
return oauthToken;
184+
}
185+
186+
/** OAuth 2.0 token for the current user. */
187+
public CloudNaturalLanguageAPIRequest<T> setOauthToken(java.lang.String oauthToken) {
188+
this.oauthToken = oauthToken;
189+
return this;
190+
}
191+
192+
/** Pretty-print response. */
193+
@com.google.api.client.util.Key
194+
private java.lang.Boolean pp;
195+
196+
/**
197+
* Pretty-print response. [default: true]
198+
*/
199+
public java.lang.Boolean getPp() {
200+
return pp;
201+
}
202+
203+
/** Pretty-print response. */
204+
public CloudNaturalLanguageAPIRequest<T> setPp(java.lang.Boolean pp) {
205+
this.pp = pp;
206+
return this;
207+
}
208+
209+
/** Returns response with indentations and line breaks. */
210+
@com.google.api.client.util.Key
211+
private java.lang.Boolean prettyPrint;
212+
213+
/**
214+
* Returns response with indentations and line breaks. [default: true]
215+
*/
216+
public java.lang.Boolean getPrettyPrint() {
217+
return prettyPrint;
218+
}
219+
220+
/** Returns response with indentations and line breaks. */
221+
public CloudNaturalLanguageAPIRequest<T> setPrettyPrint(java.lang.Boolean prettyPrint) {
222+
this.prettyPrint = prettyPrint;
223+
return this;
224+
}
225+
226+
/**
227+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string
228+
* assigned to a user, but should not exceed 40 characters.
229+
*/
230+
@com.google.api.client.util.Key
231+
private java.lang.String quotaUser;
232+
233+
/**
234+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string
235+
* assigned to a user, but should not exceed 40 characters.
236+
*/
237+
public java.lang.String getQuotaUser() {
238+
return quotaUser;
239+
}
240+
241+
/**
242+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string
243+
* assigned to a user, but should not exceed 40 characters.
244+
*/
245+
public CloudNaturalLanguageAPIRequest<T> setQuotaUser(java.lang.String quotaUser) {
246+
this.quotaUser = quotaUser;
247+
return this;
248+
}
249+
250+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
251+
@com.google.api.client.util.Key
252+
private java.lang.String uploadType;
253+
254+
/**
255+
* Legacy upload protocol for media (e.g. "media", "multipart").
256+
*/
257+
public java.lang.String getUploadType() {
258+
return uploadType;
259+
}
260+
261+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
262+
public CloudNaturalLanguageAPIRequest<T> setUploadType(java.lang.String uploadType) {
263+
this.uploadType = uploadType;
264+
return this;
265+
}
266+
267+
/** Upload protocol for media (e.g. "raw", "multipart"). */
268+
@com.google.api.client.util.Key("upload_protocol")
269+
private java.lang.String uploadProtocol;
270+
271+
/**
272+
* Upload protocol for media (e.g. "raw", "multipart").
273+
*/
274+
public java.lang.String getUploadProtocol() {
275+
return uploadProtocol;
276+
}
277+
278+
/** Upload protocol for media (e.g. "raw", "multipart"). */
279+
public CloudNaturalLanguageAPIRequest<T> setUploadProtocol(java.lang.String uploadProtocol) {
280+
this.uploadProtocol = uploadProtocol;
281+
return this;
282+
}
283+
284+
@Override
285+
public final CloudNaturalLanguageAPI getAbstractGoogleClient() {
286+
return (CloudNaturalLanguageAPI) super.getAbstractGoogleClient();
287+
}
288+
289+
@Override
290+
public CloudNaturalLanguageAPIRequest<T> setDisableGZipContent(boolean disableGZipContent) {
291+
return (CloudNaturalLanguageAPIRequest<T>) super.setDisableGZipContent(disableGZipContent);
292+
}
293+
294+
@Override
295+
public CloudNaturalLanguageAPIRequest<T> setRequestHeaders(com.google.api.client.http.HttpHeaders headers) {
296+
return (CloudNaturalLanguageAPIRequest<T>) super.setRequestHeaders(headers);
297+
}
298+
299+
@Override
300+
public CloudNaturalLanguageAPIRequest<T> set(String parameterName, Object value) {
301+
return (CloudNaturalLanguageAPIRequest<T>) super.set(parameterName, value);
302+
}
303+
}

0 commit comments

Comments
 (0)