@@ -133,6 +133,194 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog
133
133
super .initialize (httpClientRequest );
134
134
}
135
135
136
+ /**
137
+ * An accessor for creating requests from the Accounts collection.
138
+ *
139
+ * <p>The typical use is:</p>
140
+ * <pre>
141
+ * {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
142
+ * {@code AdSensePlatform.Accounts.List request = adsenseplatform.accounts().list(parameters ...)}
143
+ * </pre>
144
+ *
145
+ * @return the resource collection
146
+ */
147
+ public Accounts accounts () {
148
+ return new Accounts ();
149
+ }
150
+
151
+ /**
152
+ * The "accounts" collection of methods.
153
+ */
154
+ public class Accounts {
155
+
156
+ /**
157
+ * An accessor for creating requests from the Platforms collection.
158
+ *
159
+ * <p>The typical use is:</p>
160
+ * <pre>
161
+ * {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
162
+ * {@code AdSensePlatform.Platforms.List request = adsenseplatform.platforms().list(parameters ...)}
163
+ * </pre>
164
+ *
165
+ * @return the resource collection
166
+ */
167
+ public Platforms platforms () {
168
+ return new Platforms ();
169
+ }
170
+
171
+ /**
172
+ * The "platforms" collection of methods.
173
+ */
174
+ public class Platforms {
175
+
176
+ /**
177
+ * Gets a platform.
178
+ *
179
+ * Create a request for the method "platforms.get".
180
+ *
181
+ * This request holds the parameters needed by the adsenseplatform server. After setting any
182
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
183
+ *
184
+ * @param name Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
185
+ * @return the request
186
+ */
187
+ public Get get (java .lang .String name ) throws java .io .IOException {
188
+ Get result = new Get (name );
189
+ initialize (result );
190
+ return result ;
191
+ }
192
+
193
+ public class Get extends AdSensePlatformRequest <com .google .api .services .adsenseplatform .v1alpha .model .Platform > {
194
+
195
+ private static final String REST_PATH = "v1alpha/{+name}" ;
196
+
197
+ private final java .util .regex .Pattern NAME_PATTERN =
198
+ java .util .regex .Pattern .compile ("^accounts/[^/]+/platforms/[^/]+$" );
199
+
200
+ /**
201
+ * Gets a platform.
202
+ *
203
+ * Create a request for the method "platforms.get".
204
+ *
205
+ * This request holds the parameters needed by the the adsenseplatform server. After setting any
206
+ * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
207
+ * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
208
+ * must be called to initialize this instance immediately after invoking the constructor. </p>
209
+ *
210
+ * @param name Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
211
+ * @since 1.13
212
+ */
213
+ protected Get (java .lang .String name ) {
214
+ super (AdSensePlatform .this , "GET" , REST_PATH , null , com .google .api .services .adsenseplatform .v1alpha .model .Platform .class );
215
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
216
+ if (!getSuppressPatternChecks ()) {
217
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
218
+ "Parameter name must conform to the pattern " +
219
+ "^accounts/[^/]+/platforms/[^/]+$" );
220
+ }
221
+ }
222
+
223
+ @ Override
224
+ public com .google .api .client .http .HttpResponse executeUsingHead () throws java .io .IOException {
225
+ return super .executeUsingHead ();
226
+ }
227
+
228
+ @ Override
229
+ public com .google .api .client .http .HttpRequest buildHttpRequestUsingHead () throws java .io .IOException {
230
+ return super .buildHttpRequestUsingHead ();
231
+ }
232
+
233
+ @ Override
234
+ public Get set$Xgafv (java .lang .String $Xgafv ) {
235
+ return (Get ) super .set$Xgafv ($Xgafv );
236
+ }
237
+
238
+ @ Override
239
+ public Get setAccessToken (java .lang .String accessToken ) {
240
+ return (Get ) super .setAccessToken (accessToken );
241
+ }
242
+
243
+ @ Override
244
+ public Get setAlt (java .lang .String alt ) {
245
+ return (Get ) super .setAlt (alt );
246
+ }
247
+
248
+ @ Override
249
+ public Get setCallback (java .lang .String callback ) {
250
+ return (Get ) super .setCallback (callback );
251
+ }
252
+
253
+ @ Override
254
+ public Get setFields (java .lang .String fields ) {
255
+ return (Get ) super .setFields (fields );
256
+ }
257
+
258
+ @ Override
259
+ public Get setKey (java .lang .String key ) {
260
+ return (Get ) super .setKey (key );
261
+ }
262
+
263
+ @ Override
264
+ public Get setOauthToken (java .lang .String oauthToken ) {
265
+ return (Get ) super .setOauthToken (oauthToken );
266
+ }
267
+
268
+ @ Override
269
+ public Get setPrettyPrint (java .lang .Boolean prettyPrint ) {
270
+ return (Get ) super .setPrettyPrint (prettyPrint );
271
+ }
272
+
273
+ @ Override
274
+ public Get setQuotaUser (java .lang .String quotaUser ) {
275
+ return (Get ) super .setQuotaUser (quotaUser );
276
+ }
277
+
278
+ @ Override
279
+ public Get setUploadType (java .lang .String uploadType ) {
280
+ return (Get ) super .setUploadType (uploadType );
281
+ }
282
+
283
+ @ Override
284
+ public Get setUploadProtocol (java .lang .String uploadProtocol ) {
285
+ return (Get ) super .setUploadProtocol (uploadProtocol );
286
+ }
287
+
288
+ /**
289
+ * Required. The name of the platform to retrieve. Format:
290
+ * accounts/{account}/platforms/{platform}
291
+ */
292
+ @ com .google .api .client .util .Key
293
+ private java .lang .String name ;
294
+
295
+ /** Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
296
+ */
297
+ public java .lang .String getName () {
298
+ return name ;
299
+ }
300
+
301
+ /**
302
+ * Required. The name of the platform to retrieve. Format:
303
+ * accounts/{account}/platforms/{platform}
304
+ */
305
+ public Get setName (java .lang .String name ) {
306
+ if (!getSuppressPatternChecks ()) {
307
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
308
+ "Parameter name must conform to the pattern " +
309
+ "^accounts/[^/]+/platforms/[^/]+$" );
310
+ }
311
+ this .name = name ;
312
+ return this ;
313
+ }
314
+
315
+ @ Override
316
+ public Get set (String parameterName , Object value ) {
317
+ return (Get ) super .set (parameterName , value );
318
+ }
319
+ }
320
+
321
+ }
322
+ }
323
+
136
324
/**
137
325
* An accessor for creating requests from the Platforms collection.
138
326
*
0 commit comments