All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.networkservices.v1.NetworkServicesSettings Maven / Gradle / Ivy

Go to download

Network Services API Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure.

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.cloud.networkservices.v1;

import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGrpcRoutesPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListHttpRoutesPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListLocationsPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListMeshesPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListServiceBindingsPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListTcpRoutesPagedResponse;
import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListTlsRoutesPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.cloud.networkservices.v1.stub.NetworkServicesStubSettings;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * Settings class to configure an instance of {@link NetworkServicesClient}.
 *
 * 

The default instance has everything set to sensible defaults: * *

    *
  • The default service address (networkservices.googleapis.com) and default port (443) are * used. *
  • Credentials are acquired automatically through Application Default Credentials. *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) * of getEndpointPolicy: * *

{@code
 * // This snippet has been automatically generated and should be regarded as a code template only.
 * // It will require modifications to work:
 * // - It may require correct/in-range values for request initialization.
 * // - It may require specifying regional endpoints when creating the service client as shown in
 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 * NetworkServicesSettings.Builder networkServicesSettingsBuilder =
 *     NetworkServicesSettings.newBuilder();
 * networkServicesSettingsBuilder
 *     .getEndpointPolicySettings()
 *     .setRetrySettings(
 *         networkServicesSettingsBuilder
 *             .getEndpointPolicySettings()
 *             .getRetrySettings()
 *             .toBuilder()
 *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
 *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
 *             .setMaxAttempts(5)
 *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
 *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
 *             .setRetryDelayMultiplier(1.3)
 *             .setRpcTimeoutMultiplier(1.5)
 *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
 *             .build());
 * NetworkServicesSettings networkServicesSettings = networkServicesSettingsBuilder.build();
 * }
* * Please refer to the [Client Side Retry * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for * additional support in setting retries. * *

To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to * configure the RetrySettings for createEndpointPolicy: * *

{@code
 * // This snippet has been automatically generated and should be regarded as a code template only.
 * // It will require modifications to work:
 * // - It may require correct/in-range values for request initialization.
 * // - It may require specifying regional endpoints when creating the service client as shown in
 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 * NetworkServicesSettings.Builder networkServicesSettingsBuilder =
 *     NetworkServicesSettings.newBuilder();
 * TimedRetryAlgorithm timedRetryAlgorithm =
 *     OperationalTimedPollAlgorithm.create(
 *         RetrySettings.newBuilder()
 *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
 *             .setRetryDelayMultiplier(1.5)
 *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
 *             .setTotalTimeoutDuration(Duration.ofHours(24))
 *             .build());
 * networkServicesSettingsBuilder
 *     .createClusterOperationSettings()
 *     .setPollingAlgorithm(timedRetryAlgorithm)
 *     .build();
 * }
*/ @Generated("by gapic-generator-java") public class NetworkServicesSettings extends ClientSettings { /** Returns the object with the settings used for calls to listEndpointPolicies. */ public PagedCallSettings< ListEndpointPoliciesRequest, ListEndpointPoliciesResponse, ListEndpointPoliciesPagedResponse> listEndpointPoliciesSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listEndpointPoliciesSettings(); } /** Returns the object with the settings used for calls to getEndpointPolicy. */ public UnaryCallSettings getEndpointPolicySettings() { return ((NetworkServicesStubSettings) getStubSettings()).getEndpointPolicySettings(); } /** Returns the object with the settings used for calls to createEndpointPolicy. */ public UnaryCallSettings createEndpointPolicySettings() { return ((NetworkServicesStubSettings) getStubSettings()).createEndpointPolicySettings(); } /** Returns the object with the settings used for calls to createEndpointPolicy. */ public OperationCallSettings createEndpointPolicyOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()) .createEndpointPolicyOperationSettings(); } /** Returns the object with the settings used for calls to updateEndpointPolicy. */ public UnaryCallSettings updateEndpointPolicySettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateEndpointPolicySettings(); } /** Returns the object with the settings used for calls to updateEndpointPolicy. */ public OperationCallSettings updateEndpointPolicyOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()) .updateEndpointPolicyOperationSettings(); } /** Returns the object with the settings used for calls to deleteEndpointPolicy. */ public UnaryCallSettings deleteEndpointPolicySettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteEndpointPolicySettings(); } /** Returns the object with the settings used for calls to deleteEndpointPolicy. */ public OperationCallSettings deleteEndpointPolicyOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()) .deleteEndpointPolicyOperationSettings(); } /** Returns the object with the settings used for calls to listGateways. */ public PagedCallSettings listGatewaysSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listGatewaysSettings(); } /** Returns the object with the settings used for calls to getGateway. */ public UnaryCallSettings getGatewaySettings() { return ((NetworkServicesStubSettings) getStubSettings()).getGatewaySettings(); } /** Returns the object with the settings used for calls to createGateway. */ public UnaryCallSettings createGatewaySettings() { return ((NetworkServicesStubSettings) getStubSettings()).createGatewaySettings(); } /** Returns the object with the settings used for calls to createGateway. */ public OperationCallSettings createGatewayOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createGatewayOperationSettings(); } /** Returns the object with the settings used for calls to updateGateway. */ public UnaryCallSettings updateGatewaySettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateGatewaySettings(); } /** Returns the object with the settings used for calls to updateGateway. */ public OperationCallSettings updateGatewayOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateGatewayOperationSettings(); } /** Returns the object with the settings used for calls to deleteGateway. */ public UnaryCallSettings deleteGatewaySettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteGatewaySettings(); } /** Returns the object with the settings used for calls to deleteGateway. */ public OperationCallSettings deleteGatewayOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteGatewayOperationSettings(); } /** Returns the object with the settings used for calls to listGrpcRoutes. */ public PagedCallSettings< ListGrpcRoutesRequest, ListGrpcRoutesResponse, ListGrpcRoutesPagedResponse> listGrpcRoutesSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listGrpcRoutesSettings(); } /** Returns the object with the settings used for calls to getGrpcRoute. */ public UnaryCallSettings getGrpcRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getGrpcRouteSettings(); } /** Returns the object with the settings used for calls to createGrpcRoute. */ public UnaryCallSettings createGrpcRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createGrpcRouteSettings(); } /** Returns the object with the settings used for calls to createGrpcRoute. */ public OperationCallSettings createGrpcRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createGrpcRouteOperationSettings(); } /** Returns the object with the settings used for calls to updateGrpcRoute. */ public UnaryCallSettings updateGrpcRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateGrpcRouteSettings(); } /** Returns the object with the settings used for calls to updateGrpcRoute. */ public OperationCallSettings updateGrpcRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateGrpcRouteOperationSettings(); } /** Returns the object with the settings used for calls to deleteGrpcRoute. */ public UnaryCallSettings deleteGrpcRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteGrpcRouteSettings(); } /** Returns the object with the settings used for calls to deleteGrpcRoute. */ public OperationCallSettings deleteGrpcRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteGrpcRouteOperationSettings(); } /** Returns the object with the settings used for calls to listHttpRoutes. */ public PagedCallSettings< ListHttpRoutesRequest, ListHttpRoutesResponse, ListHttpRoutesPagedResponse> listHttpRoutesSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listHttpRoutesSettings(); } /** Returns the object with the settings used for calls to getHttpRoute. */ public UnaryCallSettings getHttpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getHttpRouteSettings(); } /** Returns the object with the settings used for calls to createHttpRoute. */ public UnaryCallSettings createHttpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createHttpRouteSettings(); } /** Returns the object with the settings used for calls to createHttpRoute. */ public OperationCallSettings createHttpRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createHttpRouteOperationSettings(); } /** Returns the object with the settings used for calls to updateHttpRoute. */ public UnaryCallSettings updateHttpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateHttpRouteSettings(); } /** Returns the object with the settings used for calls to updateHttpRoute. */ public OperationCallSettings updateHttpRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateHttpRouteOperationSettings(); } /** Returns the object with the settings used for calls to deleteHttpRoute. */ public UnaryCallSettings deleteHttpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteHttpRouteSettings(); } /** Returns the object with the settings used for calls to deleteHttpRoute. */ public OperationCallSettings deleteHttpRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteHttpRouteOperationSettings(); } /** Returns the object with the settings used for calls to listTcpRoutes. */ public PagedCallSettings listTcpRoutesSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listTcpRoutesSettings(); } /** Returns the object with the settings used for calls to getTcpRoute. */ public UnaryCallSettings getTcpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getTcpRouteSettings(); } /** Returns the object with the settings used for calls to createTcpRoute. */ public UnaryCallSettings createTcpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createTcpRouteSettings(); } /** Returns the object with the settings used for calls to createTcpRoute. */ public OperationCallSettings createTcpRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createTcpRouteOperationSettings(); } /** Returns the object with the settings used for calls to updateTcpRoute. */ public UnaryCallSettings updateTcpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateTcpRouteSettings(); } /** Returns the object with the settings used for calls to updateTcpRoute. */ public OperationCallSettings updateTcpRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateTcpRouteOperationSettings(); } /** Returns the object with the settings used for calls to deleteTcpRoute. */ public UnaryCallSettings deleteTcpRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteTcpRouteSettings(); } /** Returns the object with the settings used for calls to deleteTcpRoute. */ public OperationCallSettings deleteTcpRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteTcpRouteOperationSettings(); } /** Returns the object with the settings used for calls to listTlsRoutes. */ public PagedCallSettings listTlsRoutesSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listTlsRoutesSettings(); } /** Returns the object with the settings used for calls to getTlsRoute. */ public UnaryCallSettings getTlsRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getTlsRouteSettings(); } /** Returns the object with the settings used for calls to createTlsRoute. */ public UnaryCallSettings createTlsRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createTlsRouteSettings(); } /** Returns the object with the settings used for calls to createTlsRoute. */ public OperationCallSettings createTlsRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createTlsRouteOperationSettings(); } /** Returns the object with the settings used for calls to updateTlsRoute. */ public UnaryCallSettings updateTlsRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateTlsRouteSettings(); } /** Returns the object with the settings used for calls to updateTlsRoute. */ public OperationCallSettings updateTlsRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateTlsRouteOperationSettings(); } /** Returns the object with the settings used for calls to deleteTlsRoute. */ public UnaryCallSettings deleteTlsRouteSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteTlsRouteSettings(); } /** Returns the object with the settings used for calls to deleteTlsRoute. */ public OperationCallSettings deleteTlsRouteOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteTlsRouteOperationSettings(); } /** Returns the object with the settings used for calls to listServiceBindings. */ public PagedCallSettings< ListServiceBindingsRequest, ListServiceBindingsResponse, ListServiceBindingsPagedResponse> listServiceBindingsSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listServiceBindingsSettings(); } /** Returns the object with the settings used for calls to getServiceBinding. */ public UnaryCallSettings getServiceBindingSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getServiceBindingSettings(); } /** Returns the object with the settings used for calls to createServiceBinding. */ public UnaryCallSettings createServiceBindingSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createServiceBindingSettings(); } /** Returns the object with the settings used for calls to createServiceBinding. */ public OperationCallSettings createServiceBindingOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()) .createServiceBindingOperationSettings(); } /** Returns the object with the settings used for calls to deleteServiceBinding. */ public UnaryCallSettings deleteServiceBindingSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteServiceBindingSettings(); } /** Returns the object with the settings used for calls to deleteServiceBinding. */ public OperationCallSettings deleteServiceBindingOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()) .deleteServiceBindingOperationSettings(); } /** Returns the object with the settings used for calls to listMeshes. */ public PagedCallSettings listMeshesSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listMeshesSettings(); } /** Returns the object with the settings used for calls to getMesh. */ public UnaryCallSettings getMeshSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getMeshSettings(); } /** Returns the object with the settings used for calls to createMesh. */ public UnaryCallSettings createMeshSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createMeshSettings(); } /** Returns the object with the settings used for calls to createMesh. */ public OperationCallSettings createMeshOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).createMeshOperationSettings(); } /** Returns the object with the settings used for calls to updateMesh. */ public UnaryCallSettings updateMeshSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateMeshSettings(); } /** Returns the object with the settings used for calls to updateMesh. */ public OperationCallSettings updateMeshOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).updateMeshOperationSettings(); } /** Returns the object with the settings used for calls to deleteMesh. */ public UnaryCallSettings deleteMeshSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteMeshSettings(); } /** Returns the object with the settings used for calls to deleteMesh. */ public OperationCallSettings deleteMeshOperationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).deleteMeshOperationSettings(); } /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { return ((NetworkServicesStubSettings) getStubSettings()).listLocationsSettings(); } /** Returns the object with the settings used for calls to getLocation. */ public UnaryCallSettings getLocationSettings() { return ((NetworkServicesStubSettings) getStubSettings()).getLocationSettings(); } /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return ((NetworkServicesStubSettings) getStubSettings()).setIamPolicySettings(); } /** Returns the object with the settings used for calls to getIamPolicy. */ public UnaryCallSettings getIamPolicySettings() { return ((NetworkServicesStubSettings) getStubSettings()).getIamPolicySettings(); } /** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings testIamPermissionsSettings() { return ((NetworkServicesStubSettings) getStubSettings()).testIamPermissionsSettings(); } public static final NetworkServicesSettings create(NetworkServicesStubSettings stub) throws IOException { return new NetworkServicesSettings.Builder(stub.toBuilder()).build(); } /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return NetworkServicesStubSettings.defaultExecutorProviderBuilder(); } /** Returns the default service endpoint. */ public static String getDefaultEndpoint() { return NetworkServicesStubSettings.getDefaultEndpoint(); } /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return NetworkServicesStubSettings.getDefaultServiceScopes(); } /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { return NetworkServicesStubSettings.defaultCredentialsProviderBuilder(); } /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return NetworkServicesStubSettings.defaultGrpcTransportProviderBuilder(); } /** Returns a builder for the default REST ChannelProvider for this service. */ @BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder() { return NetworkServicesStubSettings.defaultHttpJsonTransportProviderBuilder(); } public static TransportChannelProvider defaultTransportChannelProvider() { return NetworkServicesStubSettings.defaultTransportChannelProvider(); } public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return NetworkServicesStubSettings.defaultApiClientHeaderProviderBuilder(); } /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } /** Returns a new REST builder for this class. */ public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); } /** Returns a builder containing all the values of this settings class. */ public Builder toBuilder() { return new Builder(this); } protected NetworkServicesSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); } /** Builder for NetworkServicesSettings. */ public static class Builder extends ClientSettings.Builder { protected Builder() throws IOException { this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(NetworkServicesStubSettings.newBuilder(clientContext)); } protected Builder(NetworkServicesSettings settings) { super(settings.getStubSettings().toBuilder()); } protected Builder(NetworkServicesStubSettings.Builder stubSettings) { super(stubSettings); } private static Builder createDefault() { return new Builder(NetworkServicesStubSettings.newBuilder()); } private static Builder createHttpJsonDefault() { return new Builder(NetworkServicesStubSettings.newHttpJsonBuilder()); } public NetworkServicesStubSettings.Builder getStubSettingsBuilder() { return ((NetworkServicesStubSettings.Builder) getStubSettings()); } /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; } /** Returns the builder for the settings used for calls to listEndpointPolicies. */ public PagedCallSettings.Builder< ListEndpointPoliciesRequest, ListEndpointPoliciesResponse, ListEndpointPoliciesPagedResponse> listEndpointPoliciesSettings() { return getStubSettingsBuilder().listEndpointPoliciesSettings(); } /** Returns the builder for the settings used for calls to getEndpointPolicy. */ public UnaryCallSettings.Builder getEndpointPolicySettings() { return getStubSettingsBuilder().getEndpointPolicySettings(); } /** Returns the builder for the settings used for calls to createEndpointPolicy. */ public UnaryCallSettings.Builder createEndpointPolicySettings() { return getStubSettingsBuilder().createEndpointPolicySettings(); } /** Returns the builder for the settings used for calls to createEndpointPolicy. */ public OperationCallSettings.Builder< CreateEndpointPolicyRequest, EndpointPolicy, OperationMetadata> createEndpointPolicyOperationSettings() { return getStubSettingsBuilder().createEndpointPolicyOperationSettings(); } /** Returns the builder for the settings used for calls to updateEndpointPolicy. */ public UnaryCallSettings.Builder updateEndpointPolicySettings() { return getStubSettingsBuilder().updateEndpointPolicySettings(); } /** Returns the builder for the settings used for calls to updateEndpointPolicy. */ public OperationCallSettings.Builder< UpdateEndpointPolicyRequest, EndpointPolicy, OperationMetadata> updateEndpointPolicyOperationSettings() { return getStubSettingsBuilder().updateEndpointPolicyOperationSettings(); } /** Returns the builder for the settings used for calls to deleteEndpointPolicy. */ public UnaryCallSettings.Builder deleteEndpointPolicySettings() { return getStubSettingsBuilder().deleteEndpointPolicySettings(); } /** Returns the builder for the settings used for calls to deleteEndpointPolicy. */ public OperationCallSettings.Builder deleteEndpointPolicyOperationSettings() { return getStubSettingsBuilder().deleteEndpointPolicyOperationSettings(); } /** Returns the builder for the settings used for calls to listGateways. */ public PagedCallSettings.Builder< ListGatewaysRequest, ListGatewaysResponse, ListGatewaysPagedResponse> listGatewaysSettings() { return getStubSettingsBuilder().listGatewaysSettings(); } /** Returns the builder for the settings used for calls to getGateway. */ public UnaryCallSettings.Builder getGatewaySettings() { return getStubSettingsBuilder().getGatewaySettings(); } /** Returns the builder for the settings used for calls to createGateway. */ public UnaryCallSettings.Builder createGatewaySettings() { return getStubSettingsBuilder().createGatewaySettings(); } /** Returns the builder for the settings used for calls to createGateway. */ public OperationCallSettings.Builder createGatewayOperationSettings() { return getStubSettingsBuilder().createGatewayOperationSettings(); } /** Returns the builder for the settings used for calls to updateGateway. */ public UnaryCallSettings.Builder updateGatewaySettings() { return getStubSettingsBuilder().updateGatewaySettings(); } /** Returns the builder for the settings used for calls to updateGateway. */ public OperationCallSettings.Builder updateGatewayOperationSettings() { return getStubSettingsBuilder().updateGatewayOperationSettings(); } /** Returns the builder for the settings used for calls to deleteGateway. */ public UnaryCallSettings.Builder deleteGatewaySettings() { return getStubSettingsBuilder().deleteGatewaySettings(); } /** Returns the builder for the settings used for calls to deleteGateway. */ public OperationCallSettings.Builder deleteGatewayOperationSettings() { return getStubSettingsBuilder().deleteGatewayOperationSettings(); } /** Returns the builder for the settings used for calls to listGrpcRoutes. */ public PagedCallSettings.Builder< ListGrpcRoutesRequest, ListGrpcRoutesResponse, ListGrpcRoutesPagedResponse> listGrpcRoutesSettings() { return getStubSettingsBuilder().listGrpcRoutesSettings(); } /** Returns the builder for the settings used for calls to getGrpcRoute. */ public UnaryCallSettings.Builder getGrpcRouteSettings() { return getStubSettingsBuilder().getGrpcRouteSettings(); } /** Returns the builder for the settings used for calls to createGrpcRoute. */ public UnaryCallSettings.Builder createGrpcRouteSettings() { return getStubSettingsBuilder().createGrpcRouteSettings(); } /** Returns the builder for the settings used for calls to createGrpcRoute. */ public OperationCallSettings.Builder createGrpcRouteOperationSettings() { return getStubSettingsBuilder().createGrpcRouteOperationSettings(); } /** Returns the builder for the settings used for calls to updateGrpcRoute. */ public UnaryCallSettings.Builder updateGrpcRouteSettings() { return getStubSettingsBuilder().updateGrpcRouteSettings(); } /** Returns the builder for the settings used for calls to updateGrpcRoute. */ public OperationCallSettings.Builder updateGrpcRouteOperationSettings() { return getStubSettingsBuilder().updateGrpcRouteOperationSettings(); } /** Returns the builder for the settings used for calls to deleteGrpcRoute. */ public UnaryCallSettings.Builder deleteGrpcRouteSettings() { return getStubSettingsBuilder().deleteGrpcRouteSettings(); } /** Returns the builder for the settings used for calls to deleteGrpcRoute. */ public OperationCallSettings.Builder deleteGrpcRouteOperationSettings() { return getStubSettingsBuilder().deleteGrpcRouteOperationSettings(); } /** Returns the builder for the settings used for calls to listHttpRoutes. */ public PagedCallSettings.Builder< ListHttpRoutesRequest, ListHttpRoutesResponse, ListHttpRoutesPagedResponse> listHttpRoutesSettings() { return getStubSettingsBuilder().listHttpRoutesSettings(); } /** Returns the builder for the settings used for calls to getHttpRoute. */ public UnaryCallSettings.Builder getHttpRouteSettings() { return getStubSettingsBuilder().getHttpRouteSettings(); } /** Returns the builder for the settings used for calls to createHttpRoute. */ public UnaryCallSettings.Builder createHttpRouteSettings() { return getStubSettingsBuilder().createHttpRouteSettings(); } /** Returns the builder for the settings used for calls to createHttpRoute. */ public OperationCallSettings.Builder createHttpRouteOperationSettings() { return getStubSettingsBuilder().createHttpRouteOperationSettings(); } /** Returns the builder for the settings used for calls to updateHttpRoute. */ public UnaryCallSettings.Builder updateHttpRouteSettings() { return getStubSettingsBuilder().updateHttpRouteSettings(); } /** Returns the builder for the settings used for calls to updateHttpRoute. */ public OperationCallSettings.Builder updateHttpRouteOperationSettings() { return getStubSettingsBuilder().updateHttpRouteOperationSettings(); } /** Returns the builder for the settings used for calls to deleteHttpRoute. */ public UnaryCallSettings.Builder deleteHttpRouteSettings() { return getStubSettingsBuilder().deleteHttpRouteSettings(); } /** Returns the builder for the settings used for calls to deleteHttpRoute. */ public OperationCallSettings.Builder deleteHttpRouteOperationSettings() { return getStubSettingsBuilder().deleteHttpRouteOperationSettings(); } /** Returns the builder for the settings used for calls to listTcpRoutes. */ public PagedCallSettings.Builder< ListTcpRoutesRequest, ListTcpRoutesResponse, ListTcpRoutesPagedResponse> listTcpRoutesSettings() { return getStubSettingsBuilder().listTcpRoutesSettings(); } /** Returns the builder for the settings used for calls to getTcpRoute. */ public UnaryCallSettings.Builder getTcpRouteSettings() { return getStubSettingsBuilder().getTcpRouteSettings(); } /** Returns the builder for the settings used for calls to createTcpRoute. */ public UnaryCallSettings.Builder createTcpRouteSettings() { return getStubSettingsBuilder().createTcpRouteSettings(); } /** Returns the builder for the settings used for calls to createTcpRoute. */ public OperationCallSettings.Builder createTcpRouteOperationSettings() { return getStubSettingsBuilder().createTcpRouteOperationSettings(); } /** Returns the builder for the settings used for calls to updateTcpRoute. */ public UnaryCallSettings.Builder updateTcpRouteSettings() { return getStubSettingsBuilder().updateTcpRouteSettings(); } /** Returns the builder for the settings used for calls to updateTcpRoute. */ public OperationCallSettings.Builder updateTcpRouteOperationSettings() { return getStubSettingsBuilder().updateTcpRouteOperationSettings(); } /** Returns the builder for the settings used for calls to deleteTcpRoute. */ public UnaryCallSettings.Builder deleteTcpRouteSettings() { return getStubSettingsBuilder().deleteTcpRouteSettings(); } /** Returns the builder for the settings used for calls to deleteTcpRoute. */ public OperationCallSettings.Builder deleteTcpRouteOperationSettings() { return getStubSettingsBuilder().deleteTcpRouteOperationSettings(); } /** Returns the builder for the settings used for calls to listTlsRoutes. */ public PagedCallSettings.Builder< ListTlsRoutesRequest, ListTlsRoutesResponse, ListTlsRoutesPagedResponse> listTlsRoutesSettings() { return getStubSettingsBuilder().listTlsRoutesSettings(); } /** Returns the builder for the settings used for calls to getTlsRoute. */ public UnaryCallSettings.Builder getTlsRouteSettings() { return getStubSettingsBuilder().getTlsRouteSettings(); } /** Returns the builder for the settings used for calls to createTlsRoute. */ public UnaryCallSettings.Builder createTlsRouteSettings() { return getStubSettingsBuilder().createTlsRouteSettings(); } /** Returns the builder for the settings used for calls to createTlsRoute. */ public OperationCallSettings.Builder createTlsRouteOperationSettings() { return getStubSettingsBuilder().createTlsRouteOperationSettings(); } /** Returns the builder for the settings used for calls to updateTlsRoute. */ public UnaryCallSettings.Builder updateTlsRouteSettings() { return getStubSettingsBuilder().updateTlsRouteSettings(); } /** Returns the builder for the settings used for calls to updateTlsRoute. */ public OperationCallSettings.Builder updateTlsRouteOperationSettings() { return getStubSettingsBuilder().updateTlsRouteOperationSettings(); } /** Returns the builder for the settings used for calls to deleteTlsRoute. */ public UnaryCallSettings.Builder deleteTlsRouteSettings() { return getStubSettingsBuilder().deleteTlsRouteSettings(); } /** Returns the builder for the settings used for calls to deleteTlsRoute. */ public OperationCallSettings.Builder deleteTlsRouteOperationSettings() { return getStubSettingsBuilder().deleteTlsRouteOperationSettings(); } /** Returns the builder for the settings used for calls to listServiceBindings. */ public PagedCallSettings.Builder< ListServiceBindingsRequest, ListServiceBindingsResponse, ListServiceBindingsPagedResponse> listServiceBindingsSettings() { return getStubSettingsBuilder().listServiceBindingsSettings(); } /** Returns the builder for the settings used for calls to getServiceBinding. */ public UnaryCallSettings.Builder getServiceBindingSettings() { return getStubSettingsBuilder().getServiceBindingSettings(); } /** Returns the builder for the settings used for calls to createServiceBinding. */ public UnaryCallSettings.Builder createServiceBindingSettings() { return getStubSettingsBuilder().createServiceBindingSettings(); } /** Returns the builder for the settings used for calls to createServiceBinding. */ public OperationCallSettings.Builder< CreateServiceBindingRequest, ServiceBinding, OperationMetadata> createServiceBindingOperationSettings() { return getStubSettingsBuilder().createServiceBindingOperationSettings(); } /** Returns the builder for the settings used for calls to deleteServiceBinding. */ public UnaryCallSettings.Builder deleteServiceBindingSettings() { return getStubSettingsBuilder().deleteServiceBindingSettings(); } /** Returns the builder for the settings used for calls to deleteServiceBinding. */ public OperationCallSettings.Builder deleteServiceBindingOperationSettings() { return getStubSettingsBuilder().deleteServiceBindingOperationSettings(); } /** Returns the builder for the settings used for calls to listMeshes. */ public PagedCallSettings.Builder listMeshesSettings() { return getStubSettingsBuilder().listMeshesSettings(); } /** Returns the builder for the settings used for calls to getMesh. */ public UnaryCallSettings.Builder getMeshSettings() { return getStubSettingsBuilder().getMeshSettings(); } /** Returns the builder for the settings used for calls to createMesh. */ public UnaryCallSettings.Builder createMeshSettings() { return getStubSettingsBuilder().createMeshSettings(); } /** Returns the builder for the settings used for calls to createMesh. */ public OperationCallSettings.Builder createMeshOperationSettings() { return getStubSettingsBuilder().createMeshOperationSettings(); } /** Returns the builder for the settings used for calls to updateMesh. */ public UnaryCallSettings.Builder updateMeshSettings() { return getStubSettingsBuilder().updateMeshSettings(); } /** Returns the builder for the settings used for calls to updateMesh. */ public OperationCallSettings.Builder updateMeshOperationSettings() { return getStubSettingsBuilder().updateMeshOperationSettings(); } /** Returns the builder for the settings used for calls to deleteMesh. */ public UnaryCallSettings.Builder deleteMeshSettings() { return getStubSettingsBuilder().deleteMeshSettings(); } /** Returns the builder for the settings used for calls to deleteMesh. */ public OperationCallSettings.Builder deleteMeshOperationSettings() { return getStubSettingsBuilder().deleteMeshOperationSettings(); } /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings() { return getStubSettingsBuilder().listLocationsSettings(); } /** Returns the builder for the settings used for calls to getLocation. */ public UnaryCallSettings.Builder getLocationSettings() { return getStubSettingsBuilder().getLocationSettings(); } /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return getStubSettingsBuilder().setIamPolicySettings(); } /** Returns the builder for the settings used for calls to getIamPolicy. */ public UnaryCallSettings.Builder getIamPolicySettings() { return getStubSettingsBuilder().getIamPolicySettings(); } /** Returns the builder for the settings used for calls to testIamPermissions. */ public UnaryCallSettings.Builder testIamPermissionsSettings() { return getStubSettingsBuilder().testIamPermissionsSettings(); } @Override public NetworkServicesSettings build() throws IOException { return new NetworkServicesSettings(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy