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 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
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()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
public static RegistryStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static RegistryStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static RegistryStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
RegistryStubSettings(RegistryStubSettings.Builder settingsBuilder)
protected RegistryStubSettings(RegistryStubSettings.Builder settingsBuilder)
Methods
createApiDeploymentSettings()
public UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentSettings()
Returns the object with the settings used for calls to createApiDeployment.
createApiSettings()
public UnaryCallSettings<CreateApiRequest,Api> createApiSettings()
Returns the object with the settings used for calls to createApi.
createApiSpecSettings()
public UnaryCallSettings<CreateApiSpecRequest,ApiSpec> createApiSpecSettings()
Returns the object with the settings used for calls to createApiSpec.
createApiVersionSettings()
public UnaryCallSettings<CreateApiVersionRequest,ApiVersion> createApiVersionSettings()
Returns the object with the settings used for calls to createApiVersion.
createArtifactSettings()
public UnaryCallSettings<CreateArtifactRequest,Artifact> createArtifactSettings()
Returns the object with the settings used for calls to createArtifact.
createStub()
public RegistryStub createStub()
deleteApiDeploymentRevisionSettings()
public UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to deleteApiDeploymentRevision.
deleteApiDeploymentSettings()
public UnaryCallSettings<DeleteApiDeploymentRequest,Empty> deleteApiDeploymentSettings()
Returns the object with the settings used for calls to deleteApiDeployment.
deleteApiSettings()
public UnaryCallSettings<DeleteApiRequest,Empty> deleteApiSettings()
Returns the object with the settings used for calls to deleteApi.
deleteApiSpecRevisionSettings()
public UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionSettings()
Returns the object with the settings used for calls to deleteApiSpecRevision.
deleteApiSpecSettings()
public UnaryCallSettings<DeleteApiSpecRequest,Empty> deleteApiSpecSettings()
Returns the object with the settings used for calls to deleteApiSpec.
deleteApiVersionSettings()
public UnaryCallSettings<DeleteApiVersionRequest,Empty> deleteApiVersionSettings()
Returns the object with the settings used for calls to deleteApiVersion.
deleteArtifactSettings()
public UnaryCallSettings<DeleteArtifactRequest,Empty> deleteArtifactSettings()
Returns the object with the settings used for calls to deleteArtifact.
getApiDeploymentSettings()
public UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentSettings()
Returns the object with the settings used for calls to getApiDeployment.
getApiSettings()
public UnaryCallSettings<GetApiRequest,Api> getApiSettings()
Returns the object with the settings used for calls to getApi.
getApiSpecContentsSettings()
public UnaryCallSettings<GetApiSpecContentsRequest,HttpBody> getApiSpecContentsSettings()
Returns the object with the settings used for calls to getApiSpecContents.
getApiSpecSettings()
public UnaryCallSettings<GetApiSpecRequest,ApiSpec> getApiSpecSettings()
Returns the object with the settings used for calls to getApiSpec.
getApiVersionSettings()
public UnaryCallSettings<GetApiVersionRequest,ApiVersion> getApiVersionSettings()
Returns the object with the settings used for calls to getApiVersion.
getArtifactContentsSettings()
public UnaryCallSettings<GetArtifactContentsRequest,HttpBody> getArtifactContentsSettings()
Returns the object with the settings used for calls to getArtifactContents.
getArtifactSettings()
public UnaryCallSettings<GetArtifactRequest,Artifact> getArtifactSettings()
Returns the object with the settings used for calls to getArtifact.
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.
listApiDeploymentsSettings()
public PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsSettings()
Returns the object with the settings used for calls to listApiDeployments.
listApiSpecRevisionsSettings()
public PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsSettings()
Returns the object with the settings used for calls to listApiSpecRevisions.
listApiSpecsSettings()
public PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsSettings()
Returns the object with the settings used for calls to listApiSpecs.
listApiVersionsSettings()
public PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsSettings()
Returns the object with the settings used for calls to listApiVersions.
listApisSettings()
public PagedCallSettings<ListApisRequest,ListApisResponse,RegistryClient.ListApisPagedResponse> listApisSettings()
Returns the object with the settings used for calls to listApis.
listArtifactsSettings()
public PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,RegistryClient.ListArtifactsPagedResponse> listArtifactsSettings()
Returns the object with the settings used for calls to listArtifacts.
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,RegistryClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
replaceArtifactSettings()
public UnaryCallSettings<ReplaceArtifactRequest,Artifact> replaceArtifactSettings()
Returns the object with the settings used for calls to replaceArtifact.
rollbackApiDeploymentSettings()
public UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentSettings()
Returns the object with the settings used for calls to rollbackApiDeployment.
rollbackApiSpecSettings()
public UnaryCallSettings<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecSettings()
Returns the object with the settings used for calls to rollbackApiSpec.
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.
tagApiSpecRevisionSettings()
public UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionSettings()
Returns the object with the settings used for calls to tagApiSpecRevision.
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.
Overrides
updateApiDeploymentSettings()
public UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentSettings()
Returns the object with the settings used for calls to updateApiDeployment.
updateApiSettings()
public UnaryCallSettings<UpdateApiRequest,Api> updateApiSettings()
Returns the object with the settings used for calls to updateApi.
updateApiSpecSettings()
public UnaryCallSettings<UpdateApiSpecRequest,ApiSpec> updateApiSpecSettings()
Returns the object with the settings used for calls to updateApiSpec.
updateApiVersionSettings()
public UnaryCallSettings<UpdateApiVersionRequest,ApiVersion> updateApiVersionSettings()
Returns the object with the settings used for calls to updateApiVersion.