@Generated(value="by gapic-generator-java") public class ApiKeysStubSettings extends com.google.api.gax.rpc.StubSettings<ApiKeysStubSettings>
ApiKeysStub.
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
ApiKeysStubSettings.Builder apiKeysSettingsBuilder = ApiKeysStubSettings.newBuilder();
apiKeysSettingsBuilder
.getKeySettings()
.setRetrySettings(
apiKeysSettingsBuilder
.getKeySettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ApiKeysStubSettings apiKeysSettings = apiKeysSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiKeysStubSettings.Builder
Builder for ApiKeysStubSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ApiKeysStubSettings(ApiKeysStubSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ApiKeysStub |
createStub() |
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.rpc.ApiClientHeaderProvider.Builder |
defaultGrpcApiClientHeaderProviderBuilder() |
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.rpc.ApiClientHeaderProvider.Builder |
defaultHttpJsonApiClientHeaderProviderBuilder() |
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 String |
getDefaultMtlsEndpoint()
Returns the default mTLS 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.
|
String |
getServiceName()
Returns the default service name.
|
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 ApiKeysStubSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static ApiKeysStubSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static ApiKeysStubSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
ApiKeysStubSettings.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, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toStringprotected ApiKeysStubSettings(ApiKeysStubSettings.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 ApiKeysStub createStub() throws IOException
IOExceptionpublic String getServiceName()
getServiceName in class com.google.api.gax.rpc.StubSettings<ApiKeysStubSettings>public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static String getDefaultMtlsEndpoint()
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 defaultGrpcApiClientHeaderProviderBuilder()
@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 defaultHttpJsonApiClientHeaderProviderBuilder()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static ApiKeysStubSettings.Builder newBuilder()
public static ApiKeysStubSettings.Builder newHttpJsonBuilder()
public static ApiKeysStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public ApiKeysStubSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.StubSettings<ApiKeysStubSettings>Copyright © 2024 Google LLC. All rights reserved.