- 0.51.0 (latest)
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.1
- 0.2.2
- 0.1.1
public class RegistrySettings extends ClientSettings<RegistrySettings>
Settings class to configure an instance of RegistryClient.
The default instance has everything set to sensible defaults:
- The default service address (apigeeregistry.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 total timeout of getApi 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
RegistrySettings.Builder registrySettingsBuilder = RegistrySettings.newBuilder();
registrySettingsBuilder
.getApiSettings()
.setRetrySettings(
registrySettingsBuilder
.getApiSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
RegistrySettings registrySettings = registrySettingsBuilder.build();
Static Methods
create(RegistryStubSettings stub)
public static final RegistrySettings create(RegistryStubSettings stub)
Parameter | |
---|---|
Name | Description |
stub |
RegistryStubSettings |
Returns | |
---|---|
Type | Description |
RegistrySettings |
Exceptions | |
---|---|
Type | Description |
IOException |
defaultApiClientHeaderProviderBuilder()
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns | |
---|---|
Type | Description |
Builder |
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns | |
---|---|
Type | Description |
TransportChannelProvider |
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns | |
---|---|
Type | Description |
String |
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns | |
---|---|
Type | Description |
List<String> |
newBuilder()
public static RegistrySettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns | |
---|---|
Type | Description |
RegistrySettings.Builder |
newBuilder(ClientContext clientContext)
public static RegistrySettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
RegistrySettings.Builder |
newHttpJsonBuilder()
public static RegistrySettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns | |
---|---|
Type | Description |
RegistrySettings.Builder |
Constructors
RegistrySettings(RegistrySettings.Builder settingsBuilder)
protected RegistrySettings(RegistrySettings.Builder settingsBuilder)
Parameter | |
---|---|
Name | Description |
settingsBuilder |
RegistrySettings.Builder |
Methods
createApiDeploymentSettings()
public UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentSettings()
Returns the object with the settings used for calls to createApiDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment> |
createApiSettings()
public UnaryCallSettings<CreateApiRequest,Api> createApiSettings()
Returns the object with the settings used for calls to createApi.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateApiRequest,Api> |
createApiSpecSettings()
public UnaryCallSettings<CreateApiSpecRequest,ApiSpec> createApiSpecSettings()
Returns the object with the settings used for calls to createApiSpec.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateApiSpecRequest,ApiSpec> |
createApiVersionSettings()
public UnaryCallSettings<CreateApiVersionRequest,ApiVersion> createApiVersionSettings()
Returns the object with the settings used for calls to createApiVersion.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateApiVersionRequest,ApiVersion> |
createArtifactSettings()
public UnaryCallSettings<CreateArtifactRequest,Artifact> createArtifactSettings()
Returns the object with the settings used for calls to createArtifact.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateArtifactRequest,Artifact> |
deleteApiDeploymentRevisionSettings()
public UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to deleteApiDeploymentRevision.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment> |
deleteApiDeploymentSettings()
public UnaryCallSettings<DeleteApiDeploymentRequest,Empty> deleteApiDeploymentSettings()
Returns the object with the settings used for calls to deleteApiDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteApiDeploymentRequest,Empty> |
deleteApiSettings()
public UnaryCallSettings<DeleteApiRequest,Empty> deleteApiSettings()
Returns the object with the settings used for calls to deleteApi.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteApiRequest,Empty> |
deleteApiSpecRevisionSettings()
public UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionSettings()
Returns the object with the settings used for calls to deleteApiSpecRevision.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec> |
deleteApiSpecSettings()
public UnaryCallSettings<DeleteApiSpecRequest,Empty> deleteApiSpecSettings()
Returns the object with the settings used for calls to deleteApiSpec.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteApiSpecRequest,Empty> |
deleteApiVersionSettings()
public UnaryCallSettings<DeleteApiVersionRequest,Empty> deleteApiVersionSettings()
Returns the object with the settings used for calls to deleteApiVersion.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteApiVersionRequest,Empty> |
deleteArtifactSettings()
public UnaryCallSettings<DeleteArtifactRequest,Empty> deleteArtifactSettings()
Returns the object with the settings used for calls to deleteArtifact.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteArtifactRequest,Empty> |
getApiDeploymentSettings()
public UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentSettings()
Returns the object with the settings used for calls to getApiDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment> |
getApiSettings()
public UnaryCallSettings<GetApiRequest,Api> getApiSettings()
Returns the object with the settings used for calls to getApi.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetApiRequest,Api> |
getApiSpecContentsSettings()
public UnaryCallSettings<GetApiSpecContentsRequest,HttpBody> getApiSpecContentsSettings()
Returns the object with the settings used for calls to getApiSpecContents.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetApiSpecContentsRequest,com.google.api.HttpBody> |
getApiSpecSettings()
public UnaryCallSettings<GetApiSpecRequest,ApiSpec> getApiSpecSettings()
Returns the object with the settings used for calls to getApiSpec.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetApiSpecRequest,ApiSpec> |
getApiVersionSettings()
public UnaryCallSettings<GetApiVersionRequest,ApiVersion> getApiVersionSettings()
Returns the object with the settings used for calls to getApiVersion.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetApiVersionRequest,ApiVersion> |
getArtifactContentsSettings()
public UnaryCallSettings<GetArtifactContentsRequest,HttpBody> getArtifactContentsSettings()
Returns the object with the settings used for calls to getArtifactContents.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetArtifactContentsRequest,com.google.api.HttpBody> |
getArtifactSettings()
public UnaryCallSettings<GetArtifactRequest,Artifact> getArtifactSettings()
Returns the object with the settings used for calls to getArtifact.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetArtifactRequest,Artifact> |
getIamPolicySettings()
public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
listApiDeploymentRevisionsSettings()
public PagedCallSettings<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsSettings()
Returns the object with the settings used for calls to listApiDeploymentRevisions.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse,ListApiDeploymentRevisionsPagedResponse> |
listApiDeploymentsSettings()
public PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsSettings()
Returns the object with the settings used for calls to listApiDeployments.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,ListApiDeploymentsPagedResponse> |
listApiSpecRevisionsSettings()
public PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsSettings()
Returns the object with the settings used for calls to listApiSpecRevisions.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,ListApiSpecRevisionsPagedResponse> |
listApiSpecsSettings()
public PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsSettings()
Returns the object with the settings used for calls to listApiSpecs.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,ListApiSpecsPagedResponse> |
listApiVersionsSettings()
public PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsSettings()
Returns the object with the settings used for calls to listApiVersions.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,ListApiVersionsPagedResponse> |
listApisSettings()
public PagedCallSettings<ListApisRequest,ListApisResponse,RegistryClient.ListApisPagedResponse> listApisSettings()
Returns the object with the settings used for calls to listApis.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListApisRequest,ListApisResponse,ListApisPagedResponse> |
listArtifactsSettings()
public PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,RegistryClient.ListArtifactsPagedResponse> listArtifactsSettings()
Returns the object with the settings used for calls to listArtifacts.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,ListArtifactsPagedResponse> |
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,RegistryClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
Returns | |
---|---|
Type | Description |
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse> |
replaceArtifactSettings()
public UnaryCallSettings<ReplaceArtifactRequest,Artifact> replaceArtifactSettings()
Returns the object with the settings used for calls to replaceArtifact.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ReplaceArtifactRequest,Artifact> |
rollbackApiDeploymentSettings()
public UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentSettings()
Returns the object with the settings used for calls to rollbackApiDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment> |
rollbackApiSpecSettings()
public UnaryCallSettings<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecSettings()
Returns the object with the settings used for calls to rollbackApiSpec.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<RollbackApiSpecRequest,ApiSpec> |
setIamPolicySettings()
public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
tagApiDeploymentRevisionSettings()
public UnaryCallSettings<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to tagApiDeploymentRevision.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<TagApiDeploymentRevisionRequest,ApiDeployment> |
tagApiSpecRevisionSettings()
public UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionSettings()
Returns the object with the settings used for calls to tagApiSpecRevision.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec> |
testIamPermissionsSettings()
public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
toBuilder()
public RegistrySettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns | |
---|---|
Type | Description |
RegistrySettings.Builder |
updateApiDeploymentSettings()
public UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentSettings()
Returns the object with the settings used for calls to updateApiDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment> |
updateApiSettings()
public UnaryCallSettings<UpdateApiRequest,Api> updateApiSettings()
Returns the object with the settings used for calls to updateApi.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateApiRequest,Api> |
updateApiSpecSettings()
public UnaryCallSettings<UpdateApiSpecRequest,ApiSpec> updateApiSpecSettings()
Returns the object with the settings used for calls to updateApiSpec.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateApiSpecRequest,ApiSpec> |
updateApiVersionSettings()
public UnaryCallSettings<UpdateApiVersionRequest,ApiVersion> updateApiVersionSettings()
Returns the object with the settings used for calls to updateApiVersion.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateApiVersionRequest,ApiVersion> |