|
17 | 17 | package com.google.storage.v2;
|
18 | 18 |
|
19 | 19 | import static com.google.storage.v2.StorageClient.ListBucketsPagedResponse;
|
20 |
| -import static com.google.storage.v2.StorageClient.ListHmacKeysPagedResponse; |
21 |
| -import static com.google.storage.v2.StorageClient.ListNotificationConfigsPagedResponse; |
22 | 20 | import static com.google.storage.v2.StorageClient.ListObjectsPagedResponse;
|
23 | 21 |
|
24 | 22 | import com.google.api.core.ApiFunction;
|
@@ -214,114 +212,6 @@ public UnaryCallSettings<RewriteObjectRequest, RewriteResponse> rewriteObjectSet
|
214 | 212 | return ((StorageStubSettings) getStubSettings()).queryWriteStatusSettings();
|
215 | 213 | }
|
216 | 214 |
|
217 |
| - /** |
218 |
| - * Returns the object with the settings used for calls to getServiceAccount. |
219 |
| - * |
220 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
221 |
| - */ |
222 |
| - @Deprecated |
223 |
| - public UnaryCallSettings<GetServiceAccountRequest, ServiceAccount> getServiceAccountSettings() { |
224 |
| - return ((StorageStubSettings) getStubSettings()).getServiceAccountSettings(); |
225 |
| - } |
226 |
| - |
227 |
| - /** |
228 |
| - * Returns the object with the settings used for calls to createHmacKey. |
229 |
| - * |
230 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
231 |
| - */ |
232 |
| - @Deprecated |
233 |
| - public UnaryCallSettings<CreateHmacKeyRequest, CreateHmacKeyResponse> createHmacKeySettings() { |
234 |
| - return ((StorageStubSettings) getStubSettings()).createHmacKeySettings(); |
235 |
| - } |
236 |
| - |
237 |
| - /** |
238 |
| - * Returns the object with the settings used for calls to deleteHmacKey. |
239 |
| - * |
240 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
241 |
| - */ |
242 |
| - @Deprecated |
243 |
| - public UnaryCallSettings<DeleteHmacKeyRequest, Empty> deleteHmacKeySettings() { |
244 |
| - return ((StorageStubSettings) getStubSettings()).deleteHmacKeySettings(); |
245 |
| - } |
246 |
| - |
247 |
| - /** |
248 |
| - * Returns the object with the settings used for calls to getHmacKey. |
249 |
| - * |
250 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
251 |
| - */ |
252 |
| - @Deprecated |
253 |
| - public UnaryCallSettings<GetHmacKeyRequest, HmacKeyMetadata> getHmacKeySettings() { |
254 |
| - return ((StorageStubSettings) getStubSettings()).getHmacKeySettings(); |
255 |
| - } |
256 |
| - |
257 |
| - /** |
258 |
| - * Returns the object with the settings used for calls to listHmacKeys. |
259 |
| - * |
260 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
261 |
| - */ |
262 |
| - @Deprecated |
263 |
| - public PagedCallSettings<ListHmacKeysRequest, ListHmacKeysResponse, ListHmacKeysPagedResponse> |
264 |
| - listHmacKeysSettings() { |
265 |
| - return ((StorageStubSettings) getStubSettings()).listHmacKeysSettings(); |
266 |
| - } |
267 |
| - |
268 |
| - /** |
269 |
| - * Returns the object with the settings used for calls to updateHmacKey. |
270 |
| - * |
271 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
272 |
| - */ |
273 |
| - @Deprecated |
274 |
| - public UnaryCallSettings<UpdateHmacKeyRequest, HmacKeyMetadata> updateHmacKeySettings() { |
275 |
| - return ((StorageStubSettings) getStubSettings()).updateHmacKeySettings(); |
276 |
| - } |
277 |
| - |
278 |
| - /** |
279 |
| - * Returns the object with the settings used for calls to deleteNotificationConfig. |
280 |
| - * |
281 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
282 |
| - */ |
283 |
| - @Deprecated |
284 |
| - public UnaryCallSettings<DeleteNotificationConfigRequest, Empty> |
285 |
| - deleteNotificationConfigSettings() { |
286 |
| - return ((StorageStubSettings) getStubSettings()).deleteNotificationConfigSettings(); |
287 |
| - } |
288 |
| - |
289 |
| - /** |
290 |
| - * Returns the object with the settings used for calls to getNotificationConfig. |
291 |
| - * |
292 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
293 |
| - */ |
294 |
| - @Deprecated |
295 |
| - public UnaryCallSettings<GetNotificationConfigRequest, NotificationConfig> |
296 |
| - getNotificationConfigSettings() { |
297 |
| - return ((StorageStubSettings) getStubSettings()).getNotificationConfigSettings(); |
298 |
| - } |
299 |
| - |
300 |
| - /** |
301 |
| - * Returns the object with the settings used for calls to createNotificationConfig. |
302 |
| - * |
303 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
304 |
| - */ |
305 |
| - @Deprecated |
306 |
| - public UnaryCallSettings<CreateNotificationConfigRequest, NotificationConfig> |
307 |
| - createNotificationConfigSettings() { |
308 |
| - return ((StorageStubSettings) getStubSettings()).createNotificationConfigSettings(); |
309 |
| - } |
310 |
| - |
311 |
| - /** |
312 |
| - * Returns the object with the settings used for calls to listNotificationConfigs. |
313 |
| - * |
314 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
315 |
| - */ |
316 |
| - @Deprecated |
317 |
| - public PagedCallSettings< |
318 |
| - ListNotificationConfigsRequest, |
319 |
| - ListNotificationConfigsResponse, |
320 |
| - ListNotificationConfigsPagedResponse> |
321 |
| - listNotificationConfigsSettings() { |
322 |
| - return ((StorageStubSettings) getStubSettings()).listNotificationConfigsSettings(); |
323 |
| - } |
324 |
| - |
325 | 215 | public static final StorageSettings create(StorageStubSettings stub) throws IOException {
|
326 | 216 | return new StorageSettings.Builder(stub.toBuilder()).build();
|
327 | 217 | }
|
@@ -540,118 +430,6 @@ public UnaryCallSettings.Builder<UpdateObjectRequest, Object> updateObjectSettin
|
540 | 430 | return getStubSettingsBuilder().queryWriteStatusSettings();
|
541 | 431 | }
|
542 | 432 |
|
543 |
| - /** |
544 |
| - * Returns the builder for the settings used for calls to getServiceAccount. |
545 |
| - * |
546 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
547 |
| - */ |
548 |
| - @Deprecated |
549 |
| - public UnaryCallSettings.Builder<GetServiceAccountRequest, ServiceAccount> |
550 |
| - getServiceAccountSettings() { |
551 |
| - return getStubSettingsBuilder().getServiceAccountSettings(); |
552 |
| - } |
553 |
| - |
554 |
| - /** |
555 |
| - * Returns the builder for the settings used for calls to createHmacKey. |
556 |
| - * |
557 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
558 |
| - */ |
559 |
| - @Deprecated |
560 |
| - public UnaryCallSettings.Builder<CreateHmacKeyRequest, CreateHmacKeyResponse> |
561 |
| - createHmacKeySettings() { |
562 |
| - return getStubSettingsBuilder().createHmacKeySettings(); |
563 |
| - } |
564 |
| - |
565 |
| - /** |
566 |
| - * Returns the builder for the settings used for calls to deleteHmacKey. |
567 |
| - * |
568 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
569 |
| - */ |
570 |
| - @Deprecated |
571 |
| - public UnaryCallSettings.Builder<DeleteHmacKeyRequest, Empty> deleteHmacKeySettings() { |
572 |
| - return getStubSettingsBuilder().deleteHmacKeySettings(); |
573 |
| - } |
574 |
| - |
575 |
| - /** |
576 |
| - * Returns the builder for the settings used for calls to getHmacKey. |
577 |
| - * |
578 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
579 |
| - */ |
580 |
| - @Deprecated |
581 |
| - public UnaryCallSettings.Builder<GetHmacKeyRequest, HmacKeyMetadata> getHmacKeySettings() { |
582 |
| - return getStubSettingsBuilder().getHmacKeySettings(); |
583 |
| - } |
584 |
| - |
585 |
| - /** |
586 |
| - * Returns the builder for the settings used for calls to listHmacKeys. |
587 |
| - * |
588 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
589 |
| - */ |
590 |
| - @Deprecated |
591 |
| - public PagedCallSettings.Builder< |
592 |
| - ListHmacKeysRequest, ListHmacKeysResponse, ListHmacKeysPagedResponse> |
593 |
| - listHmacKeysSettings() { |
594 |
| - return getStubSettingsBuilder().listHmacKeysSettings(); |
595 |
| - } |
596 |
| - |
597 |
| - /** |
598 |
| - * Returns the builder for the settings used for calls to updateHmacKey. |
599 |
| - * |
600 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
601 |
| - */ |
602 |
| - @Deprecated |
603 |
| - public UnaryCallSettings.Builder<UpdateHmacKeyRequest, HmacKeyMetadata> |
604 |
| - updateHmacKeySettings() { |
605 |
| - return getStubSettingsBuilder().updateHmacKeySettings(); |
606 |
| - } |
607 |
| - |
608 |
| - /** |
609 |
| - * Returns the builder for the settings used for calls to deleteNotificationConfig. |
610 |
| - * |
611 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
612 |
| - */ |
613 |
| - @Deprecated |
614 |
| - public UnaryCallSettings.Builder<DeleteNotificationConfigRequest, Empty> |
615 |
| - deleteNotificationConfigSettings() { |
616 |
| - return getStubSettingsBuilder().deleteNotificationConfigSettings(); |
617 |
| - } |
618 |
| - |
619 |
| - /** |
620 |
| - * Returns the builder for the settings used for calls to getNotificationConfig. |
621 |
| - * |
622 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
623 |
| - */ |
624 |
| - @Deprecated |
625 |
| - public UnaryCallSettings.Builder<GetNotificationConfigRequest, NotificationConfig> |
626 |
| - getNotificationConfigSettings() { |
627 |
| - return getStubSettingsBuilder().getNotificationConfigSettings(); |
628 |
| - } |
629 |
| - |
630 |
| - /** |
631 |
| - * Returns the builder for the settings used for calls to createNotificationConfig. |
632 |
| - * |
633 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
634 |
| - */ |
635 |
| - @Deprecated |
636 |
| - public UnaryCallSettings.Builder<CreateNotificationConfigRequest, NotificationConfig> |
637 |
| - createNotificationConfigSettings() { |
638 |
| - return getStubSettingsBuilder().createNotificationConfigSettings(); |
639 |
| - } |
640 |
| - |
641 |
| - /** |
642 |
| - * Returns the builder for the settings used for calls to listNotificationConfigs. |
643 |
| - * |
644 |
| - * @deprecated This method is deprecated and will be removed in the next major version update. |
645 |
| - */ |
646 |
| - @Deprecated |
647 |
| - public PagedCallSettings.Builder< |
648 |
| - ListNotificationConfigsRequest, |
649 |
| - ListNotificationConfigsResponse, |
650 |
| - ListNotificationConfigsPagedResponse> |
651 |
| - listNotificationConfigsSettings() { |
652 |
| - return getStubSettingsBuilder().listNotificationConfigsSettings(); |
653 |
| - } |
654 |
| - |
655 | 433 | @Override
|
656 | 434 | public StorageSettings build() throws IOException {
|
657 | 435 | return new StorageSettings(this);
|
|
0 commit comments