@Generated(value="by gapic-generator-java") public class ApiKeysSettings extends com.google.api.gax.rpc.ClientSettings<ApiKeysSettings>
ApiKeysClient.
The default instance has everything set to sensible defaults:
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 total timeout of getKey to 30 seconds:
// 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
ApiKeysSettings.Builder apiKeysSettingsBuilder = ApiKeysSettings.newBuilder();
apiKeysSettingsBuilder
.getKeySettings()
.setRetrySettings(
apiKeysSettingsBuilder
.getKeySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ApiKeysSettings apiKeysSettings = apiKeysSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiKeysSettings.Builder
Builder for ApiKeysSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ApiKeysSettings(ApiKeysSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
static ApiKeysSettings |
create(ApiKeysStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateKeyRequest,Key,com.google.protobuf.Empty> |
createKeyOperationSettings()
Returns the object with the settings used for calls to createKey.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateKeyRequest,com.google.longrunning.Operation> |
createKeySettings()
Returns the object with the settings used for calls to createKey.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteKeyRequest,Key,com.google.protobuf.Empty> |
deleteKeyOperationSettings()
Returns the object with the settings used for calls to deleteKey.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteKeyRequest,com.google.longrunning.Operation> |
deleteKeySettings()
Returns the object with the settings used for calls to deleteKey.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetKeyRequest,Key> |
getKeySettings()
Returns the object with the settings used for calls to getKey.
|
com.google.api.gax.rpc.UnaryCallSettings<GetKeyStringRequest,GetKeyStringResponse> |
getKeyStringSettings()
Returns the object with the settings used for calls to getKeyString.
|
com.google.api.gax.rpc.PagedCallSettings<ListKeysRequest,ListKeysResponse,ApiKeysClient.ListKeysPagedResponse> |
listKeysSettings()
Returns the object with the settings used for calls to listKeys.
|
com.google.api.gax.rpc.UnaryCallSettings<LookupKeyRequest,LookupKeyResponse> |
lookupKeySettings()
Returns the object with the settings used for calls to lookupKey.
|
static ApiKeysSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static ApiKeysSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static ApiKeysSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
ApiKeysSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UndeleteKeyRequest,Key,com.google.protobuf.Empty> |
undeleteKeyOperationSettings()
Returns the object with the settings used for calls to undeleteKey.
|
com.google.api.gax.rpc.UnaryCallSettings<UndeleteKeyRequest,com.google.longrunning.Operation> |
undeleteKeySettings()
Returns the object with the settings used for calls to undeleteKey.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateKeyRequest,Key,com.google.protobuf.Empty> |
updateKeyOperationSettings()
Returns the object with the settings used for calls to updateKey.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateKeyRequest,com.google.longrunning.Operation> |
updateKeySettings()
Returns the object with the settings used for calls to updateKey.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogProvider, toStringprotected ApiKeysSettings(ApiKeysSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallSettings<CreateKeyRequest,com.google.longrunning.Operation> createKeySettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateKeyRequest,Key,com.google.protobuf.Empty> createKeyOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListKeysRequest,ListKeysResponse,ApiKeysClient.ListKeysPagedResponse> listKeysSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetKeyRequest,Key> getKeySettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetKeyStringRequest,GetKeyStringResponse> getKeyStringSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateKeyRequest,com.google.longrunning.Operation> updateKeySettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateKeyRequest,Key,com.google.protobuf.Empty> updateKeyOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteKeyRequest,com.google.longrunning.Operation> deleteKeySettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteKeyRequest,Key,com.google.protobuf.Empty> deleteKeyOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteKeyRequest,com.google.longrunning.Operation> undeleteKeySettings()
public com.google.api.gax.rpc.OperationCallSettings<UndeleteKeyRequest,Key,com.google.protobuf.Empty> undeleteKeyOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<LookupKeyRequest,LookupKeyResponse> lookupKeySettings()
public static final ApiKeysSettings create(ApiKeysStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static ApiKeysSettings.Builder newBuilder()
@BetaApi public static ApiKeysSettings.Builder newHttpJsonBuilder()
public static ApiKeysSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public ApiKeysSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<ApiKeysSettings>Copyright © 2024 Google LLC. All rights reserved.