public class RegistryStubSettings extends StubSettings<RegistryStubSettings>
Settings class to configure an instance of RegistryStub.
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 for illustrative purposes only.
// It may require modifications to work in your environment.
RegistryStubSettings.Builder registrySettingsBuilder = RegistryStubSettings.newBuilder();
registrySettingsBuilder
.getApiSettings()
.setRetrySettings(
registrySettingsBuilder
.getApiSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
RegistryStubSettings registrySettings = registrySettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static RegistryStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static RegistryStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static RegistryStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
RegistryStubSettings(RegistryStubSettings.Builder settingsBuilder)
protected RegistryStubSettings(RegistryStubSettings.Builder settingsBuilder)
Parameter
Methods
createApiDeploymentSettings()
public UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentSettings()
Returns the object with the settings used for calls to createApiDeployment.
Returns
createApiSettings()
public UnaryCallSettings<CreateApiRequest,Api> createApiSettings()
Returns the object with the settings used for calls to createApi.
Returns
createApiSpecSettings()
public UnaryCallSettings<CreateApiSpecRequest,ApiSpec> createApiSpecSettings()
Returns the object with the settings used for calls to createApiSpec.
Returns
createApiVersionSettings()
public UnaryCallSettings<CreateApiVersionRequest,ApiVersion> createApiVersionSettings()
Returns the object with the settings used for calls to createApiVersion.
Returns
createArtifactSettings()
public UnaryCallSettings<CreateArtifactRequest,Artifact> createArtifactSettings()
Returns the object with the settings used for calls to createArtifact.
Returns
createStub()
public RegistryStub createStub()
Returns
Exceptions
deleteApiDeploymentRevisionSettings()
public UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to deleteApiDeploymentRevision.
Returns
deleteApiDeploymentSettings()
public UnaryCallSettings<DeleteApiDeploymentRequest,Empty> deleteApiDeploymentSettings()
Returns the object with the settings used for calls to deleteApiDeployment.
Returns
deleteApiSettings()
public UnaryCallSettings<DeleteApiRequest,Empty> deleteApiSettings()
Returns the object with the settings used for calls to deleteApi.
Returns
deleteApiSpecRevisionSettings()
public UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionSettings()
Returns the object with the settings used for calls to deleteApiSpecRevision.
Returns
deleteApiSpecSettings()
public UnaryCallSettings<DeleteApiSpecRequest,Empty> deleteApiSpecSettings()
Returns the object with the settings used for calls to deleteApiSpec.
Returns
deleteApiVersionSettings()
public UnaryCallSettings<DeleteApiVersionRequest,Empty> deleteApiVersionSettings()
Returns the object with the settings used for calls to deleteApiVersion.
Returns
deleteArtifactSettings()
public UnaryCallSettings<DeleteArtifactRequest,Empty> deleteArtifactSettings()
Returns the object with the settings used for calls to deleteArtifact.
Returns
getApiDeploymentSettings()
public UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentSettings()
Returns the object with the settings used for calls to getApiDeployment.
Returns
getApiSettings()
public UnaryCallSettings<GetApiRequest,Api> getApiSettings()
Returns the object with the settings used for calls to getApi.
Returns
getApiSpecContentsSettings()
public UnaryCallSettings<GetApiSpecContentsRequest,HttpBody> getApiSpecContentsSettings()
Returns the object with the settings used for calls to getApiSpecContents.
Returns
getApiSpecSettings()
public UnaryCallSettings<GetApiSpecRequest,ApiSpec> getApiSpecSettings()
Returns the object with the settings used for calls to getApiSpec.
Returns
getApiVersionSettings()
public UnaryCallSettings<GetApiVersionRequest,ApiVersion> getApiVersionSettings()
Returns the object with the settings used for calls to getApiVersion.
Returns
getArtifactContentsSettings()
public UnaryCallSettings<GetArtifactContentsRequest,HttpBody> getArtifactContentsSettings()
Returns the object with the settings used for calls to getArtifactContents.
Returns
getArtifactSettings()
public UnaryCallSettings<GetArtifactRequest,Artifact> getArtifactSettings()
Returns the object with the settings used for calls to getArtifact.
Returns
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
listApiDeploymentsSettings()
public PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsSettings()
Returns the object with the settings used for calls to listApiDeployments.
Returns
listApiSpecRevisionsSettings()
public PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsSettings()
Returns the object with the settings used for calls to listApiSpecRevisions.
Returns
listApiSpecsSettings()
public PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsSettings()
Returns the object with the settings used for calls to listApiSpecs.
Returns
listApiVersionsSettings()
public PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsSettings()
Returns the object with the settings used for calls to listApiVersions.
Returns
listApisSettings()
public PagedCallSettings<ListApisRequest,ListApisResponse,RegistryClient.ListApisPagedResponse> listApisSettings()
Returns the object with the settings used for calls to listApis.
Returns
listArtifactsSettings()
public PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,RegistryClient.ListArtifactsPagedResponse> listArtifactsSettings()
Returns the object with the settings used for calls to listArtifacts.
Returns
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,RegistryClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
Returns
replaceArtifactSettings()
public UnaryCallSettings<ReplaceArtifactRequest,Artifact> replaceArtifactSettings()
Returns the object with the settings used for calls to replaceArtifact.
Returns
rollbackApiDeploymentSettings()
public UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentSettings()
Returns the object with the settings used for calls to rollbackApiDeployment.
Returns
rollbackApiSpecSettings()
public UnaryCallSettings<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecSettings()
Returns the object with the settings used for calls to rollbackApiSpec.
Returns
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
tagApiSpecRevisionSettings()
public UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionSettings()
Returns the object with the settings used for calls to tagApiSpecRevision.
Returns
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 RegistryStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateApiDeploymentSettings()
public UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentSettings()
Returns the object with the settings used for calls to updateApiDeployment.
Returns
updateApiSettings()
public UnaryCallSettings<UpdateApiRequest,Api> updateApiSettings()
Returns the object with the settings used for calls to updateApi.
Returns
updateApiSpecSettings()
public UnaryCallSettings<UpdateApiSpecRequest,ApiSpec> updateApiSpecSettings()
Returns the object with the settings used for calls to updateApiSpec.
Returns
updateApiVersionSettings()
public UnaryCallSettings<UpdateApiVersionRequest,ApiVersion> updateApiVersionSettings()
Returns the object with the settings used for calls to updateApiVersion.
Returns