Skip to content

Commit 9008c36

Browse files
authored
Add 1.28.0 clients (googleapis#553)
* Compile to Java 7 * Add all 1.28.0 clients
1 parent c1e6df2 commit 9008c36

File tree

10,073 files changed

+2878794
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,073 files changed

+2878794
-2
lines changed

clients/1.28.0/google-api-services-abusiveexperiencereport/v1/com/google/api/services/abusiveexperiencereport/v1/AbusiveExperienceReport.java

Lines changed: 567 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
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/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.abusiveexperiencereport.v1;
18+
19+
/**
20+
* AbusiveExperienceReport request.
21+
*
22+
* @since 1.3
23+
*/
24+
@SuppressWarnings("javadoc")
25+
public abstract class AbusiveExperienceReportRequest<T> extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T> {
26+
27+
/**
28+
* @param client Google client
29+
* @param method HTTP Method
30+
* @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/"
31+
* the base path from the base URL will be stripped out. The URI template can also be a
32+
* full URL. URI template expansion is done using
33+
* {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)}
34+
* @param content A POJO that can be serialized into JSON or {@code null} for none
35+
* @param responseClass response class to parse into
36+
*/
37+
public AbusiveExperienceReportRequest(
38+
AbusiveExperienceReport client, String method, String uriTemplate, Object content, Class<T> responseClass) {
39+
super(
40+
client,
41+
method,
42+
uriTemplate,
43+
content,
44+
responseClass);
45+
}
46+
47+
/** V1 error format. */
48+
@com.google.api.client.util.Key("$.xgafv")
49+
private java.lang.String $Xgafv;
50+
51+
/**
52+
* V1 error format.
53+
*/
54+
public java.lang.String get$Xgafv() {
55+
return $Xgafv;
56+
}
57+
58+
/** V1 error format. */
59+
public AbusiveExperienceReportRequest<T> set$Xgafv(java.lang.String $Xgafv) {
60+
this.$Xgafv = $Xgafv;
61+
return this;
62+
}
63+
64+
/** OAuth access token. */
65+
@com.google.api.client.util.Key("access_token")
66+
private java.lang.String accessToken;
67+
68+
/**
69+
* OAuth access token.
70+
*/
71+
public java.lang.String getAccessToken() {
72+
return accessToken;
73+
}
74+
75+
/** OAuth access token. */
76+
public AbusiveExperienceReportRequest<T> setAccessToken(java.lang.String accessToken) {
77+
this.accessToken = accessToken;
78+
return this;
79+
}
80+
81+
/** Data format for response. */
82+
@com.google.api.client.util.Key
83+
private java.lang.String alt;
84+
85+
/**
86+
* Data format for response. [default: json]
87+
*/
88+
public java.lang.String getAlt() {
89+
return alt;
90+
}
91+
92+
/** Data format for response. */
93+
public AbusiveExperienceReportRequest<T> setAlt(java.lang.String alt) {
94+
this.alt = alt;
95+
return this;
96+
}
97+
98+
/** JSONP */
99+
@com.google.api.client.util.Key
100+
private java.lang.String callback;
101+
102+
/**
103+
* JSONP
104+
*/
105+
public java.lang.String getCallback() {
106+
return callback;
107+
}
108+
109+
/** JSONP */
110+
public AbusiveExperienceReportRequest<T> setCallback(java.lang.String callback) {
111+
this.callback = callback;
112+
return this;
113+
}
114+
115+
/** Selector specifying which fields to include in a partial response. */
116+
@com.google.api.client.util.Key
117+
private java.lang.String fields;
118+
119+
/**
120+
* Selector specifying which fields to include in a partial response.
121+
*/
122+
public java.lang.String getFields() {
123+
return fields;
124+
}
125+
126+
/** Selector specifying which fields to include in a partial response. */
127+
public AbusiveExperienceReportRequest<T> setFields(java.lang.String fields) {
128+
this.fields = fields;
129+
return this;
130+
}
131+
132+
/**
133+
* API key. Your API key identifies your project and provides you with API access, quota, and
134+
* reports. Required unless you provide an OAuth 2.0 token.
135+
*/
136+
@com.google.api.client.util.Key
137+
private java.lang.String key;
138+
139+
/**
140+
* API key. Your API key identifies your project and provides you with API access, quota, and
141+
* reports. Required unless you provide an OAuth 2.0 token.
142+
*/
143+
public java.lang.String getKey() {
144+
return key;
145+
}
146+
147+
/**
148+
* API key. Your API key identifies your project and provides you with API access, quota, and
149+
* reports. Required unless you provide an OAuth 2.0 token.
150+
*/
151+
public AbusiveExperienceReportRequest<T> setKey(java.lang.String key) {
152+
this.key = key;
153+
return this;
154+
}
155+
156+
/** OAuth 2.0 token for the current user. */
157+
@com.google.api.client.util.Key("oauth_token")
158+
private java.lang.String oauthToken;
159+
160+
/**
161+
* OAuth 2.0 token for the current user.
162+
*/
163+
public java.lang.String getOauthToken() {
164+
return oauthToken;
165+
}
166+
167+
/** OAuth 2.0 token for the current user. */
168+
public AbusiveExperienceReportRequest<T> setOauthToken(java.lang.String oauthToken) {
169+
this.oauthToken = oauthToken;
170+
return this;
171+
}
172+
173+
/** Returns response with indentations and line breaks. */
174+
@com.google.api.client.util.Key
175+
private java.lang.Boolean prettyPrint;
176+
177+
/**
178+
* Returns response with indentations and line breaks. [default: true]
179+
*/
180+
public java.lang.Boolean getPrettyPrint() {
181+
return prettyPrint;
182+
}
183+
184+
/** Returns response with indentations and line breaks. */
185+
public AbusiveExperienceReportRequest<T> setPrettyPrint(java.lang.Boolean prettyPrint) {
186+
this.prettyPrint = prettyPrint;
187+
return this;
188+
}
189+
190+
/**
191+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string
192+
* assigned to a user, but should not exceed 40 characters.
193+
*/
194+
@com.google.api.client.util.Key
195+
private java.lang.String quotaUser;
196+
197+
/**
198+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string
199+
* assigned to a user, but should not exceed 40 characters.
200+
*/
201+
public java.lang.String getQuotaUser() {
202+
return quotaUser;
203+
}
204+
205+
/**
206+
* Available to use for quota purposes for server-side applications. Can be any arbitrary string
207+
* assigned to a user, but should not exceed 40 characters.
208+
*/
209+
public AbusiveExperienceReportRequest<T> setQuotaUser(java.lang.String quotaUser) {
210+
this.quotaUser = quotaUser;
211+
return this;
212+
}
213+
214+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
215+
@com.google.api.client.util.Key
216+
private java.lang.String uploadType;
217+
218+
/**
219+
* Legacy upload protocol for media (e.g. "media", "multipart").
220+
*/
221+
public java.lang.String getUploadType() {
222+
return uploadType;
223+
}
224+
225+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
226+
public AbusiveExperienceReportRequest<T> setUploadType(java.lang.String uploadType) {
227+
this.uploadType = uploadType;
228+
return this;
229+
}
230+
231+
/** Upload protocol for media (e.g. "raw", "multipart"). */
232+
@com.google.api.client.util.Key("upload_protocol")
233+
private java.lang.String uploadProtocol;
234+
235+
/**
236+
* Upload protocol for media (e.g. "raw", "multipart").
237+
*/
238+
public java.lang.String getUploadProtocol() {
239+
return uploadProtocol;
240+
}
241+
242+
/** Upload protocol for media (e.g. "raw", "multipart"). */
243+
public AbusiveExperienceReportRequest<T> setUploadProtocol(java.lang.String uploadProtocol) {
244+
this.uploadProtocol = uploadProtocol;
245+
return this;
246+
}
247+
248+
@Override
249+
public final AbusiveExperienceReport getAbstractGoogleClient() {
250+
return (AbusiveExperienceReport) super.getAbstractGoogleClient();
251+
}
252+
253+
@Override
254+
public AbusiveExperienceReportRequest<T> setDisableGZipContent(boolean disableGZipContent) {
255+
return (AbusiveExperienceReportRequest<T>) super.setDisableGZipContent(disableGZipContent);
256+
}
257+
258+
@Override
259+
public AbusiveExperienceReportRequest<T> setRequestHeaders(com.google.api.client.http.HttpHeaders headers) {
260+
return (AbusiveExperienceReportRequest<T>) super.setRequestHeaders(headers);
261+
}
262+
263+
@Override
264+
public AbusiveExperienceReportRequest<T> set(String parameterName, Object value) {
265+
return (AbusiveExperienceReportRequest<T>) super.set(parameterName, value);
266+
}
267+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.abusiveexperiencereport.v1;
18+
19+
/**
20+
* AbusiveExperienceReport request initializer for setting properties like key and userIp.
21+
*
22+
* <p>
23+
* The simplest usage is to use it to set the key parameter:
24+
* </p>
25+
*
26+
* <pre>
27+
public static final GoogleClientRequestInitializer KEY_INITIALIZER =
28+
new AbusiveExperienceReportRequestInitializer(KEY);
29+
* </pre>
30+
*
31+
* <p>
32+
* There is also a constructor to set both the key and userIp parameters:
33+
* </p>
34+
*
35+
* <pre>
36+
public static final GoogleClientRequestInitializer INITIALIZER =
37+
new AbusiveExperienceReportRequestInitializer(KEY, USER_IP);
38+
* </pre>
39+
*
40+
* <p>
41+
* If you want to implement custom logic, extend it like this:
42+
* </p>
43+
*
44+
* <pre>
45+
public static class MyRequestInitializer extends AbusiveExperienceReportRequestInitializer {
46+
47+
{@literal @}Override
48+
public void initializeAbusiveExperienceReportRequest(AbusiveExperienceReportRequest{@literal <}?{@literal >} request)
49+
throws IOException {
50+
// custom logic
51+
}
52+
}
53+
* </pre>
54+
*
55+
* <p>
56+
* Finally, to set the key and userIp parameters and insert custom logic, extend it like this:
57+
* </p>
58+
*
59+
* <pre>
60+
public static class MyRequestInitializer2 extends AbusiveExperienceReportRequestInitializer {
61+
62+
public MyKeyRequestInitializer() {
63+
super(KEY, USER_IP);
64+
}
65+
66+
{@literal @}Override
67+
public void initializeAbusiveExperienceReportRequest(AbusiveExperienceReportRequest{@literal <}?{@literal >} request)
68+
throws IOException {
69+
// custom logic
70+
}
71+
}
72+
* </pre>
73+
*
74+
* <p>
75+
* Subclasses should be thread-safe.
76+
* </p>
77+
*
78+
* @since 1.12
79+
*/
80+
public class AbusiveExperienceReportRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer {
81+
82+
public AbusiveExperienceReportRequestInitializer() {
83+
super();
84+
}
85+
86+
/**
87+
* @param key API key or {@code null} to leave it unchanged
88+
*/
89+
public AbusiveExperienceReportRequestInitializer(String key) {
90+
super(key);
91+
}
92+
93+
/**
94+
* @param key API key or {@code null} to leave it unchanged
95+
* @param userIp user IP or {@code null} to leave it unchanged
96+
*/
97+
public AbusiveExperienceReportRequestInitializer(String key, String userIp) {
98+
super(key, userIp);
99+
}
100+
101+
@Override
102+
public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<?> request) throws java.io.IOException {
103+
super.initializeJsonRequest(request);
104+
initializeAbusiveExperienceReportRequest((AbusiveExperienceReportRequest<?>) request);
105+
}
106+
107+
/**
108+
* Initializes AbusiveExperienceReport request.
109+
*
110+
* <p>
111+
* Default implementation does nothing. Called from
112+
* {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}.
113+
* </p>
114+
*
115+
* @throws java.io.IOException I/O exception
116+
*/
117+
protected void initializeAbusiveExperienceReportRequest(AbusiveExperienceReportRequest<?> request) throws java.io.IOException {
118+
}
119+
}

0 commit comments

Comments
 (0)