1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.google.cloud.asset.v1; 18 19 import static com.google.cloud.asset.v1.AssetServiceClient.AnalyzeOrgPoliciesPagedResponse; 20 import static com.google.cloud.asset.v1.AssetServiceClient.AnalyzeOrgPolicyGovernedAssetsPagedResponse; 21 import static com.google.cloud.asset.v1.AssetServiceClient.AnalyzeOrgPolicyGovernedContainersPagedResponse; 22 import static com.google.cloud.asset.v1.AssetServiceClient.ListAssetsPagedResponse; 23 import static com.google.cloud.asset.v1.AssetServiceClient.ListSavedQueriesPagedResponse; 24 import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllIamPoliciesPagedResponse; 25 import static com.google.cloud.asset.v1.AssetServiceClient.SearchAllResourcesPagedResponse; 26 27 import com.google.api.core.ApiFunction; 28 import com.google.api.core.BetaApi; 29 import com.google.api.gax.core.GoogleCredentialsProvider; 30 import com.google.api.gax.core.InstantiatingExecutorProvider; 31 import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; 32 import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; 33 import com.google.api.gax.rpc.ApiClientHeaderProvider; 34 import com.google.api.gax.rpc.ClientContext; 35 import com.google.api.gax.rpc.ClientSettings; 36 import com.google.api.gax.rpc.OperationCallSettings; 37 import com.google.api.gax.rpc.PagedCallSettings; 38 import com.google.api.gax.rpc.TransportChannelProvider; 39 import com.google.api.gax.rpc.UnaryCallSettings; 40 import com.google.cloud.asset.v1.stub.AssetServiceStubSettings; 41 import com.google.longrunning.Operation; 42 import com.google.protobuf.Empty; 43 import java.io.IOException; 44 import java.util.List; 45 import javax.annotation.Generated; 46 47 // AUTO-GENERATED DOCUMENTATION AND CLASS. 48 /** 49 * Settings class to configure an instance of {@link AssetServiceClient}. 50 * 51 * <p>The default instance has everything set to sensible defaults: 52 * 53 * <ul> 54 * <li>The default service address (cloudasset.googleapis.com) and default port (443) are used. 55 * <li>Credentials are acquired automatically through Application Default Credentials. 56 * <li>Retries are configured for idempotent methods but not for non-idempotent methods. 57 * </ul> 58 * 59 * <p>The builder of this class is recursive, so contained classes are themselves builders. When 60 * build() is called, the tree of builders is called to create the complete settings object. 61 * 62 * <p>For example, to set the total timeout of batchGetAssetsHistory to 30 seconds: 63 * 64 * <pre>{@code 65 * // This snippet has been automatically generated and should be regarded as a code template only. 66 * // It will require modifications to work: 67 * // - It may require correct/in-range values for request initialization. 68 * // - It may require specifying regional endpoints when creating the service client as shown in 69 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 70 * AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder(); 71 * assetServiceSettingsBuilder 72 * .batchGetAssetsHistorySettings() 73 * .setRetrySettings( 74 * assetServiceSettingsBuilder 75 * .batchGetAssetsHistorySettings() 76 * .getRetrySettings() 77 * .toBuilder() 78 * .setTotalTimeout(Duration.ofSeconds(30)) 79 * .build()); 80 * AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build(); 81 * }</pre> 82 */ 83 @Generated("by gapic-generator-java") 84 public class AssetServiceSettings extends ClientSettings<AssetServiceSettings> { 85 86 /** Returns the object with the settings used for calls to exportAssets. */ exportAssetsSettings()87 public UnaryCallSettings<ExportAssetsRequest, Operation> exportAssetsSettings() { 88 return ((AssetServiceStubSettings) getStubSettings()).exportAssetsSettings(); 89 } 90 91 /** Returns the object with the settings used for calls to exportAssets. */ 92 public OperationCallSettings<ExportAssetsRequest, ExportAssetsResponse, ExportAssetsRequest> exportAssetsOperationSettings()93 exportAssetsOperationSettings() { 94 return ((AssetServiceStubSettings) getStubSettings()).exportAssetsOperationSettings(); 95 } 96 97 /** Returns the object with the settings used for calls to listAssets. */ 98 public PagedCallSettings<ListAssetsRequest, ListAssetsResponse, ListAssetsPagedResponse> listAssetsSettings()99 listAssetsSettings() { 100 return ((AssetServiceStubSettings) getStubSettings()).listAssetsSettings(); 101 } 102 103 /** Returns the object with the settings used for calls to batchGetAssetsHistory. */ 104 public UnaryCallSettings<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse> batchGetAssetsHistorySettings()105 batchGetAssetsHistorySettings() { 106 return ((AssetServiceStubSettings) getStubSettings()).batchGetAssetsHistorySettings(); 107 } 108 109 /** Returns the object with the settings used for calls to createFeed. */ createFeedSettings()110 public UnaryCallSettings<CreateFeedRequest, Feed> createFeedSettings() { 111 return ((AssetServiceStubSettings) getStubSettings()).createFeedSettings(); 112 } 113 114 /** Returns the object with the settings used for calls to getFeed. */ getFeedSettings()115 public UnaryCallSettings<GetFeedRequest, Feed> getFeedSettings() { 116 return ((AssetServiceStubSettings) getStubSettings()).getFeedSettings(); 117 } 118 119 /** Returns the object with the settings used for calls to listFeeds. */ listFeedsSettings()120 public UnaryCallSettings<ListFeedsRequest, ListFeedsResponse> listFeedsSettings() { 121 return ((AssetServiceStubSettings) getStubSettings()).listFeedsSettings(); 122 } 123 124 /** Returns the object with the settings used for calls to updateFeed. */ updateFeedSettings()125 public UnaryCallSettings<UpdateFeedRequest, Feed> updateFeedSettings() { 126 return ((AssetServiceStubSettings) getStubSettings()).updateFeedSettings(); 127 } 128 129 /** Returns the object with the settings used for calls to deleteFeed. */ deleteFeedSettings()130 public UnaryCallSettings<DeleteFeedRequest, Empty> deleteFeedSettings() { 131 return ((AssetServiceStubSettings) getStubSettings()).deleteFeedSettings(); 132 } 133 134 /** Returns the object with the settings used for calls to searchAllResources. */ 135 public PagedCallSettings< 136 SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse> searchAllResourcesSettings()137 searchAllResourcesSettings() { 138 return ((AssetServiceStubSettings) getStubSettings()).searchAllResourcesSettings(); 139 } 140 141 /** Returns the object with the settings used for calls to searchAllIamPolicies. */ 142 public PagedCallSettings< 143 SearchAllIamPoliciesRequest, 144 SearchAllIamPoliciesResponse, 145 SearchAllIamPoliciesPagedResponse> searchAllIamPoliciesSettings()146 searchAllIamPoliciesSettings() { 147 return ((AssetServiceStubSettings) getStubSettings()).searchAllIamPoliciesSettings(); 148 } 149 150 /** Returns the object with the settings used for calls to analyzeIamPolicy. */ 151 public UnaryCallSettings<AnalyzeIamPolicyRequest, AnalyzeIamPolicyResponse> analyzeIamPolicySettings()152 analyzeIamPolicySettings() { 153 return ((AssetServiceStubSettings) getStubSettings()).analyzeIamPolicySettings(); 154 } 155 156 /** Returns the object with the settings used for calls to analyzeIamPolicyLongrunning. */ 157 public UnaryCallSettings<AnalyzeIamPolicyLongrunningRequest, Operation> analyzeIamPolicyLongrunningSettings()158 analyzeIamPolicyLongrunningSettings() { 159 return ((AssetServiceStubSettings) getStubSettings()).analyzeIamPolicyLongrunningSettings(); 160 } 161 162 /** Returns the object with the settings used for calls to analyzeIamPolicyLongrunning. */ 163 public OperationCallSettings< 164 AnalyzeIamPolicyLongrunningRequest, 165 AnalyzeIamPolicyLongrunningResponse, 166 AnalyzeIamPolicyLongrunningMetadata> analyzeIamPolicyLongrunningOperationSettings()167 analyzeIamPolicyLongrunningOperationSettings() { 168 return ((AssetServiceStubSettings) getStubSettings()) 169 .analyzeIamPolicyLongrunningOperationSettings(); 170 } 171 172 /** Returns the object with the settings used for calls to analyzeMove. */ analyzeMoveSettings()173 public UnaryCallSettings<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveSettings() { 174 return ((AssetServiceStubSettings) getStubSettings()).analyzeMoveSettings(); 175 } 176 177 /** Returns the object with the settings used for calls to queryAssets. */ queryAssetsSettings()178 public UnaryCallSettings<QueryAssetsRequest, QueryAssetsResponse> queryAssetsSettings() { 179 return ((AssetServiceStubSettings) getStubSettings()).queryAssetsSettings(); 180 } 181 182 /** Returns the object with the settings used for calls to createSavedQuery. */ createSavedQuerySettings()183 public UnaryCallSettings<CreateSavedQueryRequest, SavedQuery> createSavedQuerySettings() { 184 return ((AssetServiceStubSettings) getStubSettings()).createSavedQuerySettings(); 185 } 186 187 /** Returns the object with the settings used for calls to getSavedQuery. */ getSavedQuerySettings()188 public UnaryCallSettings<GetSavedQueryRequest, SavedQuery> getSavedQuerySettings() { 189 return ((AssetServiceStubSettings) getStubSettings()).getSavedQuerySettings(); 190 } 191 192 /** Returns the object with the settings used for calls to listSavedQueries. */ 193 public PagedCallSettings< 194 ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> listSavedQueriesSettings()195 listSavedQueriesSettings() { 196 return ((AssetServiceStubSettings) getStubSettings()).listSavedQueriesSettings(); 197 } 198 199 /** Returns the object with the settings used for calls to updateSavedQuery. */ updateSavedQuerySettings()200 public UnaryCallSettings<UpdateSavedQueryRequest, SavedQuery> updateSavedQuerySettings() { 201 return ((AssetServiceStubSettings) getStubSettings()).updateSavedQuerySettings(); 202 } 203 204 /** Returns the object with the settings used for calls to deleteSavedQuery. */ deleteSavedQuerySettings()205 public UnaryCallSettings<DeleteSavedQueryRequest, Empty> deleteSavedQuerySettings() { 206 return ((AssetServiceStubSettings) getStubSettings()).deleteSavedQuerySettings(); 207 } 208 209 /** Returns the object with the settings used for calls to batchGetEffectiveIamPolicies. */ 210 public UnaryCallSettings< 211 BatchGetEffectiveIamPoliciesRequest, BatchGetEffectiveIamPoliciesResponse> batchGetEffectiveIamPoliciesSettings()212 batchGetEffectiveIamPoliciesSettings() { 213 return ((AssetServiceStubSettings) getStubSettings()).batchGetEffectiveIamPoliciesSettings(); 214 } 215 216 /** Returns the object with the settings used for calls to analyzeOrgPolicies. */ 217 public PagedCallSettings< 218 AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesPagedResponse> analyzeOrgPoliciesSettings()219 analyzeOrgPoliciesSettings() { 220 return ((AssetServiceStubSettings) getStubSettings()).analyzeOrgPoliciesSettings(); 221 } 222 223 /** Returns the object with the settings used for calls to analyzeOrgPolicyGovernedContainers. */ 224 public PagedCallSettings< 225 AnalyzeOrgPolicyGovernedContainersRequest, 226 AnalyzeOrgPolicyGovernedContainersResponse, 227 AnalyzeOrgPolicyGovernedContainersPagedResponse> analyzeOrgPolicyGovernedContainersSettings()228 analyzeOrgPolicyGovernedContainersSettings() { 229 return ((AssetServiceStubSettings) getStubSettings()) 230 .analyzeOrgPolicyGovernedContainersSettings(); 231 } 232 233 /** Returns the object with the settings used for calls to analyzeOrgPolicyGovernedAssets. */ 234 public PagedCallSettings< 235 AnalyzeOrgPolicyGovernedAssetsRequest, 236 AnalyzeOrgPolicyGovernedAssetsResponse, 237 AnalyzeOrgPolicyGovernedAssetsPagedResponse> analyzeOrgPolicyGovernedAssetsSettings()238 analyzeOrgPolicyGovernedAssetsSettings() { 239 return ((AssetServiceStubSettings) getStubSettings()).analyzeOrgPolicyGovernedAssetsSettings(); 240 } 241 create(AssetServiceStubSettings stub)242 public static final AssetServiceSettings create(AssetServiceStubSettings stub) 243 throws IOException { 244 return new AssetServiceSettings.Builder(stub.toBuilder()).build(); 245 } 246 247 /** Returns a builder for the default ExecutorProvider for this service. */ defaultExecutorProviderBuilder()248 public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { 249 return AssetServiceStubSettings.defaultExecutorProviderBuilder(); 250 } 251 252 /** Returns the default service endpoint. */ getDefaultEndpoint()253 public static String getDefaultEndpoint() { 254 return AssetServiceStubSettings.getDefaultEndpoint(); 255 } 256 257 /** Returns the default service scopes. */ getDefaultServiceScopes()258 public static List<String> getDefaultServiceScopes() { 259 return AssetServiceStubSettings.getDefaultServiceScopes(); 260 } 261 262 /** Returns a builder for the default credentials for this service. */ defaultCredentialsProviderBuilder()263 public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { 264 return AssetServiceStubSettings.defaultCredentialsProviderBuilder(); 265 } 266 267 /** Returns a builder for the default gRPC ChannelProvider for this service. */ defaultGrpcTransportProviderBuilder()268 public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { 269 return AssetServiceStubSettings.defaultGrpcTransportProviderBuilder(); 270 } 271 272 /** Returns a builder for the default REST ChannelProvider for this service. */ 273 @BetaApi 274 public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()275 defaultHttpJsonTransportProviderBuilder() { 276 return AssetServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); 277 } 278 defaultTransportChannelProvider()279 public static TransportChannelProvider defaultTransportChannelProvider() { 280 return AssetServiceStubSettings.defaultTransportChannelProvider(); 281 } 282 283 @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") defaultApiClientHeaderProviderBuilder()284 public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { 285 return AssetServiceStubSettings.defaultApiClientHeaderProviderBuilder(); 286 } 287 288 /** Returns a new gRPC builder for this class. */ newBuilder()289 public static Builder newBuilder() { 290 return Builder.createDefault(); 291 } 292 293 /** Returns a new REST builder for this class. */ 294 @BetaApi newHttpJsonBuilder()295 public static Builder newHttpJsonBuilder() { 296 return Builder.createHttpJsonDefault(); 297 } 298 299 /** Returns a new builder for this class. */ newBuilder(ClientContext clientContext)300 public static Builder newBuilder(ClientContext clientContext) { 301 return new Builder(clientContext); 302 } 303 304 /** Returns a builder containing all the values of this settings class. */ toBuilder()305 public Builder toBuilder() { 306 return new Builder(this); 307 } 308 AssetServiceSettings(Builder settingsBuilder)309 protected AssetServiceSettings(Builder settingsBuilder) throws IOException { 310 super(settingsBuilder); 311 } 312 313 /** Builder for AssetServiceSettings. */ 314 public static class Builder extends ClientSettings.Builder<AssetServiceSettings, Builder> { 315 Builder()316 protected Builder() throws IOException { 317 this(((ClientContext) null)); 318 } 319 Builder(ClientContext clientContext)320 protected Builder(ClientContext clientContext) { 321 super(AssetServiceStubSettings.newBuilder(clientContext)); 322 } 323 Builder(AssetServiceSettings settings)324 protected Builder(AssetServiceSettings settings) { 325 super(settings.getStubSettings().toBuilder()); 326 } 327 Builder(AssetServiceStubSettings.Builder stubSettings)328 protected Builder(AssetServiceStubSettings.Builder stubSettings) { 329 super(stubSettings); 330 } 331 createDefault()332 private static Builder createDefault() { 333 return new Builder(AssetServiceStubSettings.newBuilder()); 334 } 335 336 @BetaApi createHttpJsonDefault()337 private static Builder createHttpJsonDefault() { 338 return new Builder(AssetServiceStubSettings.newHttpJsonBuilder()); 339 } 340 getStubSettingsBuilder()341 public AssetServiceStubSettings.Builder getStubSettingsBuilder() { 342 return ((AssetServiceStubSettings.Builder) getStubSettings()); 343 } 344 345 /** 346 * Applies the given settings updater function to all of the unary API methods in this service. 347 * 348 * <p>Note: This method does not support applying settings to streaming methods. 349 */ applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater)350 public Builder applyToAllUnaryMethods( 351 ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { 352 super.applyToAllUnaryMethods( 353 getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); 354 return this; 355 } 356 357 /** Returns the builder for the settings used for calls to exportAssets. */ exportAssetsSettings()358 public UnaryCallSettings.Builder<ExportAssetsRequest, Operation> exportAssetsSettings() { 359 return getStubSettingsBuilder().exportAssetsSettings(); 360 } 361 362 /** Returns the builder for the settings used for calls to exportAssets. */ 363 public OperationCallSettings.Builder< 364 ExportAssetsRequest, ExportAssetsResponse, ExportAssetsRequest> exportAssetsOperationSettings()365 exportAssetsOperationSettings() { 366 return getStubSettingsBuilder().exportAssetsOperationSettings(); 367 } 368 369 /** Returns the builder for the settings used for calls to listAssets. */ 370 public PagedCallSettings.Builder<ListAssetsRequest, ListAssetsResponse, ListAssetsPagedResponse> listAssetsSettings()371 listAssetsSettings() { 372 return getStubSettingsBuilder().listAssetsSettings(); 373 } 374 375 /** Returns the builder for the settings used for calls to batchGetAssetsHistory. */ 376 public UnaryCallSettings.Builder<BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse> batchGetAssetsHistorySettings()377 batchGetAssetsHistorySettings() { 378 return getStubSettingsBuilder().batchGetAssetsHistorySettings(); 379 } 380 381 /** Returns the builder for the settings used for calls to createFeed. */ createFeedSettings()382 public UnaryCallSettings.Builder<CreateFeedRequest, Feed> createFeedSettings() { 383 return getStubSettingsBuilder().createFeedSettings(); 384 } 385 386 /** Returns the builder for the settings used for calls to getFeed. */ getFeedSettings()387 public UnaryCallSettings.Builder<GetFeedRequest, Feed> getFeedSettings() { 388 return getStubSettingsBuilder().getFeedSettings(); 389 } 390 391 /** Returns the builder for the settings used for calls to listFeeds. */ listFeedsSettings()392 public UnaryCallSettings.Builder<ListFeedsRequest, ListFeedsResponse> listFeedsSettings() { 393 return getStubSettingsBuilder().listFeedsSettings(); 394 } 395 396 /** Returns the builder for the settings used for calls to updateFeed. */ updateFeedSettings()397 public UnaryCallSettings.Builder<UpdateFeedRequest, Feed> updateFeedSettings() { 398 return getStubSettingsBuilder().updateFeedSettings(); 399 } 400 401 /** Returns the builder for the settings used for calls to deleteFeed. */ deleteFeedSettings()402 public UnaryCallSettings.Builder<DeleteFeedRequest, Empty> deleteFeedSettings() { 403 return getStubSettingsBuilder().deleteFeedSettings(); 404 } 405 406 /** Returns the builder for the settings used for calls to searchAllResources. */ 407 public PagedCallSettings.Builder< 408 SearchAllResourcesRequest, SearchAllResourcesResponse, SearchAllResourcesPagedResponse> searchAllResourcesSettings()409 searchAllResourcesSettings() { 410 return getStubSettingsBuilder().searchAllResourcesSettings(); 411 } 412 413 /** Returns the builder for the settings used for calls to searchAllIamPolicies. */ 414 public PagedCallSettings.Builder< 415 SearchAllIamPoliciesRequest, 416 SearchAllIamPoliciesResponse, 417 SearchAllIamPoliciesPagedResponse> searchAllIamPoliciesSettings()418 searchAllIamPoliciesSettings() { 419 return getStubSettingsBuilder().searchAllIamPoliciesSettings(); 420 } 421 422 /** Returns the builder for the settings used for calls to analyzeIamPolicy. */ 423 public UnaryCallSettings.Builder<AnalyzeIamPolicyRequest, AnalyzeIamPolicyResponse> analyzeIamPolicySettings()424 analyzeIamPolicySettings() { 425 return getStubSettingsBuilder().analyzeIamPolicySettings(); 426 } 427 428 /** Returns the builder for the settings used for calls to analyzeIamPolicyLongrunning. */ 429 public UnaryCallSettings.Builder<AnalyzeIamPolicyLongrunningRequest, Operation> analyzeIamPolicyLongrunningSettings()430 analyzeIamPolicyLongrunningSettings() { 431 return getStubSettingsBuilder().analyzeIamPolicyLongrunningSettings(); 432 } 433 434 /** Returns the builder for the settings used for calls to analyzeIamPolicyLongrunning. */ 435 public OperationCallSettings.Builder< 436 AnalyzeIamPolicyLongrunningRequest, 437 AnalyzeIamPolicyLongrunningResponse, 438 AnalyzeIamPolicyLongrunningMetadata> analyzeIamPolicyLongrunningOperationSettings()439 analyzeIamPolicyLongrunningOperationSettings() { 440 return getStubSettingsBuilder().analyzeIamPolicyLongrunningOperationSettings(); 441 } 442 443 /** Returns the builder for the settings used for calls to analyzeMove. */ 444 public UnaryCallSettings.Builder<AnalyzeMoveRequest, AnalyzeMoveResponse> analyzeMoveSettings()445 analyzeMoveSettings() { 446 return getStubSettingsBuilder().analyzeMoveSettings(); 447 } 448 449 /** Returns the builder for the settings used for calls to queryAssets. */ 450 public UnaryCallSettings.Builder<QueryAssetsRequest, QueryAssetsResponse> queryAssetsSettings()451 queryAssetsSettings() { 452 return getStubSettingsBuilder().queryAssetsSettings(); 453 } 454 455 /** Returns the builder for the settings used for calls to createSavedQuery. */ 456 public UnaryCallSettings.Builder<CreateSavedQueryRequest, SavedQuery> createSavedQuerySettings()457 createSavedQuerySettings() { 458 return getStubSettingsBuilder().createSavedQuerySettings(); 459 } 460 461 /** Returns the builder for the settings used for calls to getSavedQuery. */ getSavedQuerySettings()462 public UnaryCallSettings.Builder<GetSavedQueryRequest, SavedQuery> getSavedQuerySettings() { 463 return getStubSettingsBuilder().getSavedQuerySettings(); 464 } 465 466 /** Returns the builder for the settings used for calls to listSavedQueries. */ 467 public PagedCallSettings.Builder< 468 ListSavedQueriesRequest, ListSavedQueriesResponse, ListSavedQueriesPagedResponse> listSavedQueriesSettings()469 listSavedQueriesSettings() { 470 return getStubSettingsBuilder().listSavedQueriesSettings(); 471 } 472 473 /** Returns the builder for the settings used for calls to updateSavedQuery. */ 474 public UnaryCallSettings.Builder<UpdateSavedQueryRequest, SavedQuery> updateSavedQuerySettings()475 updateSavedQuerySettings() { 476 return getStubSettingsBuilder().updateSavedQuerySettings(); 477 } 478 479 /** Returns the builder for the settings used for calls to deleteSavedQuery. */ deleteSavedQuerySettings()480 public UnaryCallSettings.Builder<DeleteSavedQueryRequest, Empty> deleteSavedQuerySettings() { 481 return getStubSettingsBuilder().deleteSavedQuerySettings(); 482 } 483 484 /** Returns the builder for the settings used for calls to batchGetEffectiveIamPolicies. */ 485 public UnaryCallSettings.Builder< 486 BatchGetEffectiveIamPoliciesRequest, BatchGetEffectiveIamPoliciesResponse> batchGetEffectiveIamPoliciesSettings()487 batchGetEffectiveIamPoliciesSettings() { 488 return getStubSettingsBuilder().batchGetEffectiveIamPoliciesSettings(); 489 } 490 491 /** Returns the builder for the settings used for calls to analyzeOrgPolicies. */ 492 public PagedCallSettings.Builder< 493 AnalyzeOrgPoliciesRequest, AnalyzeOrgPoliciesResponse, AnalyzeOrgPoliciesPagedResponse> analyzeOrgPoliciesSettings()494 analyzeOrgPoliciesSettings() { 495 return getStubSettingsBuilder().analyzeOrgPoliciesSettings(); 496 } 497 498 /** 499 * Returns the builder for the settings used for calls to analyzeOrgPolicyGovernedContainers. 500 */ 501 public PagedCallSettings.Builder< 502 AnalyzeOrgPolicyGovernedContainersRequest, 503 AnalyzeOrgPolicyGovernedContainersResponse, 504 AnalyzeOrgPolicyGovernedContainersPagedResponse> analyzeOrgPolicyGovernedContainersSettings()505 analyzeOrgPolicyGovernedContainersSettings() { 506 return getStubSettingsBuilder().analyzeOrgPolicyGovernedContainersSettings(); 507 } 508 509 /** Returns the builder for the settings used for calls to analyzeOrgPolicyGovernedAssets. */ 510 public PagedCallSettings.Builder< 511 AnalyzeOrgPolicyGovernedAssetsRequest, 512 AnalyzeOrgPolicyGovernedAssetsResponse, 513 AnalyzeOrgPolicyGovernedAssetsPagedResponse> analyzeOrgPolicyGovernedAssetsSettings()514 analyzeOrgPolicyGovernedAssetsSettings() { 515 return getStubSettingsBuilder().analyzeOrgPolicyGovernedAssetsSettings(); 516 } 517 518 @Override build()519 public AssetServiceSettings build() throws IOException { 520 return new AssetServiceSettings(this); 521 } 522 } 523 } 524