Package com.google.api.apikeys.v2
Class ApiKeysSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<ApiKeysSettings,ApiKeysSettings.Builder>
-
- com.google.api.apikeys.v2.ApiKeysSettings.Builder
-
- Enclosing class:
- ApiKeysSettings
public static class ApiKeysSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<ApiKeysSettings,ApiKeysSettings.Builder>
Builder for ApiKeysSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(ApiKeysSettings settings)
protected
Builder(ApiKeysStubSettings.Builder stubSettings)
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiKeysSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.ApiKeysSettings
build()
com.google.api.gax.rpc.OperationCallSettings.Builder<CreateKeyRequest,Key,com.google.protobuf.Empty>
createKeyOperationSettings()
Returns the builder for the settings used for calls to createKey.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateKeyRequest,com.google.longrunning.Operation>
createKeySettings()
Returns the builder for the settings used for calls to createKey.com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteKeyRequest,Key,com.google.protobuf.Empty>
deleteKeyOperationSettings()
Returns the builder for the settings used for calls to deleteKey.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteKeyRequest,com.google.longrunning.Operation>
deleteKeySettings()
Returns the builder for the settings used for calls to deleteKey.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetKeyRequest,Key>
getKeySettings()
Returns the builder for the settings used for calls to getKey.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetKeyStringRequest,GetKeyStringResponse>
getKeyStringSettings()
Returns the builder for the settings used for calls to getKeyString.ApiKeysStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.PagedCallSettings.Builder<ListKeysRequest,ListKeysResponse,ApiKeysClient.ListKeysPagedResponse>
listKeysSettings()
Returns the builder for the settings used for calls to listKeys.com.google.api.gax.rpc.UnaryCallSettings.Builder<LookupKeyRequest,LookupKeyResponse>
lookupKeySettings()
Returns the builder for the settings used for calls to lookupKey.com.google.api.gax.rpc.OperationCallSettings.Builder<UndeleteKeyRequest,Key,com.google.protobuf.Empty>
undeleteKeyOperationSettings()
Returns the builder for the settings used for calls to undeleteKey.com.google.api.gax.rpc.UnaryCallSettings.Builder<UndeleteKeyRequest,com.google.longrunning.Operation>
undeleteKeySettings()
Returns the builder for the settings used for calls to undeleteKey.com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateKeyRequest,Key,com.google.protobuf.Empty>
updateKeyOperationSettings()
Returns the builder for the settings used for calls to updateKey.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateKeyRequest,com.google.longrunning.Operation>
updateKeySettings()
Returns the builder for the settings used for calls to updateKey.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(ApiKeysSettings settings)
-
Builder
protected Builder(ApiKeysStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public ApiKeysStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public ApiKeysSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
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.
-
createKeySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateKeyRequest,com.google.longrunning.Operation> createKeySettings()
Returns the builder for the settings used for calls to createKey.
-
createKeyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateKeyRequest,Key,com.google.protobuf.Empty> createKeyOperationSettings()
Returns the builder for the settings used for calls to createKey.
-
listKeysSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListKeysRequest,ListKeysResponse,ApiKeysClient.ListKeysPagedResponse> listKeysSettings()
Returns the builder for the settings used for calls to listKeys.
-
getKeySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetKeyRequest,Key> getKeySettings()
Returns the builder for the settings used for calls to getKey.
-
getKeyStringSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetKeyStringRequest,GetKeyStringResponse> getKeyStringSettings()
Returns the builder for the settings used for calls to getKeyString.
-
updateKeySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateKeyRequest,com.google.longrunning.Operation> updateKeySettings()
Returns the builder for the settings used for calls to updateKey.
-
updateKeyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateKeyRequest,Key,com.google.protobuf.Empty> updateKeyOperationSettings()
Returns the builder for the settings used for calls to updateKey.
-
deleteKeySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteKeyRequest,com.google.longrunning.Operation> deleteKeySettings()
Returns the builder for the settings used for calls to deleteKey.
-
deleteKeyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteKeyRequest,Key,com.google.protobuf.Empty> deleteKeyOperationSettings()
Returns the builder for the settings used for calls to deleteKey.
-
undeleteKeySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UndeleteKeyRequest,com.google.longrunning.Operation> undeleteKeySettings()
Returns the builder for the settings used for calls to undeleteKey.
-
undeleteKeyOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<UndeleteKeyRequest,Key,com.google.protobuf.Empty> undeleteKeyOperationSettings()
Returns the builder for the settings used for calls to undeleteKey.
-
lookupKeySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<LookupKeyRequest,LookupKeyResponse> lookupKeySettings()
Returns the builder for the settings used for calls to lookupKey.
-
build
public ApiKeysSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<ApiKeysSettings,ApiKeysSettings.Builder>
- Throws:
IOException
-
-