Class RegistrySettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<RegistrySettings>
-
- com.google.cloud.apigeeregistry.v1.RegistrySettings
-
@Generated("by gapic-generator-java") public class RegistrySettings extends com.google.api.gax.rpc.ClientSettings<RegistrySettings>
Settings class to configure an instance ofRegistryClient
.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();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegistrySettings.Builder
Builder for RegistrySettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
RegistrySettings(RegistrySettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegistrySettings
create(RegistryStubSettings stub)
com.google.api.gax.rpc.UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment>
createApiDeploymentSettings()
Returns the object with the settings used for calls to createApiDeployment.com.google.api.gax.rpc.UnaryCallSettings<CreateApiRequest,Api>
createApiSettings()
Returns the object with the settings used for calls to createApi.com.google.api.gax.rpc.UnaryCallSettings<CreateApiSpecRequest,ApiSpec>
createApiSpecSettings()
Returns the object with the settings used for calls to createApiSpec.com.google.api.gax.rpc.UnaryCallSettings<CreateApiVersionRequest,ApiVersion>
createApiVersionSettings()
Returns the object with the settings used for calls to createApiVersion.com.google.api.gax.rpc.UnaryCallSettings<CreateArtifactRequest,Artifact>
createArtifactSettings()
Returns the object with the settings used for calls to createArtifact.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.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.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.UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment>
deleteApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to deleteApiDeploymentRevision.com.google.api.gax.rpc.UnaryCallSettings<DeleteApiDeploymentRequest,com.google.protobuf.Empty>
deleteApiDeploymentSettings()
Returns the object with the settings used for calls to deleteApiDeployment.com.google.api.gax.rpc.UnaryCallSettings<DeleteApiRequest,com.google.protobuf.Empty>
deleteApiSettings()
Returns the object with the settings used for calls to deleteApi.com.google.api.gax.rpc.UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec>
deleteApiSpecRevisionSettings()
Returns the object with the settings used for calls to deleteApiSpecRevision.com.google.api.gax.rpc.UnaryCallSettings<DeleteApiSpecRequest,com.google.protobuf.Empty>
deleteApiSpecSettings()
Returns the object with the settings used for calls to deleteApiSpec.com.google.api.gax.rpc.UnaryCallSettings<DeleteApiVersionRequest,com.google.protobuf.Empty>
deleteApiVersionSettings()
Returns the object with the settings used for calls to deleteApiVersion.com.google.api.gax.rpc.UnaryCallSettings<DeleteArtifactRequest,com.google.protobuf.Empty>
deleteArtifactSettings()
Returns the object with the settings used for calls to deleteArtifact.com.google.api.gax.rpc.UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment>
getApiDeploymentSettings()
Returns the object with the settings used for calls to getApiDeployment.com.google.api.gax.rpc.UnaryCallSettings<GetApiRequest,Api>
getApiSettings()
Returns the object with the settings used for calls to getApi.com.google.api.gax.rpc.UnaryCallSettings<GetApiSpecContentsRequest,com.google.api.HttpBody>
getApiSpecContentsSettings()
Returns the object with the settings used for calls to getApiSpecContents.com.google.api.gax.rpc.UnaryCallSettings<GetApiSpecRequest,ApiSpec>
getApiSpecSettings()
Returns the object with the settings used for calls to getApiSpec.com.google.api.gax.rpc.UnaryCallSettings<GetApiVersionRequest,ApiVersion>
getApiVersionSettings()
Returns the object with the settings used for calls to getApiVersion.com.google.api.gax.rpc.UnaryCallSettings<GetArtifactContentsRequest,com.google.api.HttpBody>
getArtifactContentsSettings()
Returns the object with the settings used for calls to getArtifactContents.com.google.api.gax.rpc.UnaryCallSettings<GetArtifactRequest,Artifact>
getArtifactSettings()
Returns the object with the settings used for calls to getArtifact.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationSettings()
Returns the object with the settings used for calls to getLocation.com.google.api.gax.rpc.PagedCallSettings<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse,RegistryClient.ListApiDeploymentRevisionsPagedResponse>
listApiDeploymentRevisionsSettings()
Returns the object with the settings used for calls to listApiDeploymentRevisions.com.google.api.gax.rpc.PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,RegistryClient.ListApiDeploymentsPagedResponse>
listApiDeploymentsSettings()
Returns the object with the settings used for calls to listApiDeployments.com.google.api.gax.rpc.PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,RegistryClient.ListApiSpecRevisionsPagedResponse>
listApiSpecRevisionsSettings()
Returns the object with the settings used for calls to listApiSpecRevisions.com.google.api.gax.rpc.PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,RegistryClient.ListApiSpecsPagedResponse>
listApiSpecsSettings()
Returns the object with the settings used for calls to listApiSpecs.com.google.api.gax.rpc.PagedCallSettings<ListApisRequest,ListApisResponse,RegistryClient.ListApisPagedResponse>
listApisSettings()
Returns the object with the settings used for calls to listApis.com.google.api.gax.rpc.PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,RegistryClient.ListApiVersionsPagedResponse>
listApiVersionsSettings()
Returns the object with the settings used for calls to listApiVersions.com.google.api.gax.rpc.PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,RegistryClient.ListArtifactsPagedResponse>
listArtifactsSettings()
Returns the object with the settings used for calls to listArtifacts.com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,RegistryClient.ListLocationsPagedResponse>
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.static RegistrySettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static RegistrySettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static RegistrySettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<ReplaceArtifactRequest,Artifact>
replaceArtifactSettings()
Returns the object with the settings used for calls to replaceArtifact.com.google.api.gax.rpc.UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment>
rollbackApiDeploymentSettings()
Returns the object with the settings used for calls to rollbackApiDeployment.com.google.api.gax.rpc.UnaryCallSettings<RollbackApiSpecRequest,ApiSpec>
rollbackApiSpecSettings()
Returns the object with the settings used for calls to rollbackApiSpec.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings<TagApiDeploymentRevisionRequest,ApiDeployment>
tagApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to tagApiDeploymentRevision.com.google.api.gax.rpc.UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec>
tagApiSpecRevisionSettings()
Returns the object with the settings used for calls to tagApiSpecRevision.com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.RegistrySettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment>
updateApiDeploymentSettings()
Returns the object with the settings used for calls to updateApiDeployment.com.google.api.gax.rpc.UnaryCallSettings<UpdateApiRequest,Api>
updateApiSettings()
Returns the object with the settings used for calls to updateApi.com.google.api.gax.rpc.UnaryCallSettings<UpdateApiSpecRequest,ApiSpec>
updateApiSpecSettings()
Returns the object with the settings used for calls to updateApiSpec.com.google.api.gax.rpc.UnaryCallSettings<UpdateApiVersionRequest,ApiVersion>
updateApiVersionSettings()
Returns the object with the settings used for calls to updateApiVersion.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
RegistrySettings
protected RegistrySettings(RegistrySettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
listApisSettings
public com.google.api.gax.rpc.PagedCallSettings<ListApisRequest,ListApisResponse,RegistryClient.ListApisPagedResponse> listApisSettings()
Returns the object with the settings used for calls to listApis.
-
getApiSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetApiRequest,Api> getApiSettings()
Returns the object with the settings used for calls to getApi.
-
createApiSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateApiRequest,Api> createApiSettings()
Returns the object with the settings used for calls to createApi.
-
updateApiSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateApiRequest,Api> updateApiSettings()
Returns the object with the settings used for calls to updateApi.
-
deleteApiSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiRequest,com.google.protobuf.Empty> deleteApiSettings()
Returns the object with the settings used for calls to deleteApi.
-
listApiVersionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListApiVersionsRequest,ListApiVersionsResponse,RegistryClient.ListApiVersionsPagedResponse> listApiVersionsSettings()
Returns the object with the settings used for calls to listApiVersions.
-
getApiVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetApiVersionRequest,ApiVersion> getApiVersionSettings()
Returns the object with the settings used for calls to getApiVersion.
-
createApiVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateApiVersionRequest,ApiVersion> createApiVersionSettings()
Returns the object with the settings used for calls to createApiVersion.
-
updateApiVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateApiVersionRequest,ApiVersion> updateApiVersionSettings()
Returns the object with the settings used for calls to updateApiVersion.
-
deleteApiVersionSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiVersionRequest,com.google.protobuf.Empty> deleteApiVersionSettings()
Returns the object with the settings used for calls to deleteApiVersion.
-
listApiSpecsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListApiSpecsRequest,ListApiSpecsResponse,RegistryClient.ListApiSpecsPagedResponse> listApiSpecsSettings()
Returns the object with the settings used for calls to listApiSpecs.
-
getApiSpecSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetApiSpecRequest,ApiSpec> getApiSpecSettings()
Returns the object with the settings used for calls to getApiSpec.
-
getApiSpecContentsSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetApiSpecContentsRequest,com.google.api.HttpBody> getApiSpecContentsSettings()
Returns the object with the settings used for calls to getApiSpecContents.
-
createApiSpecSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateApiSpecRequest,ApiSpec> createApiSpecSettings()
Returns the object with the settings used for calls to createApiSpec.
-
updateApiSpecSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateApiSpecRequest,ApiSpec> updateApiSpecSettings()
Returns the object with the settings used for calls to updateApiSpec.
-
deleteApiSpecSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiSpecRequest,com.google.protobuf.Empty> deleteApiSpecSettings()
Returns the object with the settings used for calls to deleteApiSpec.
-
tagApiSpecRevisionSettings
public com.google.api.gax.rpc.UnaryCallSettings<TagApiSpecRevisionRequest,ApiSpec> tagApiSpecRevisionSettings()
Returns the object with the settings used for calls to tagApiSpecRevision.
-
listApiSpecRevisionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListApiSpecRevisionsRequest,ListApiSpecRevisionsResponse,RegistryClient.ListApiSpecRevisionsPagedResponse> listApiSpecRevisionsSettings()
Returns the object with the settings used for calls to listApiSpecRevisions.
-
rollbackApiSpecSettings
public com.google.api.gax.rpc.UnaryCallSettings<RollbackApiSpecRequest,ApiSpec> rollbackApiSpecSettings()
Returns the object with the settings used for calls to rollbackApiSpec.
-
deleteApiSpecRevisionSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiSpecRevisionRequest,ApiSpec> deleteApiSpecRevisionSettings()
Returns the object with the settings used for calls to deleteApiSpecRevision.
-
listApiDeploymentsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListApiDeploymentsRequest,ListApiDeploymentsResponse,RegistryClient.ListApiDeploymentsPagedResponse> listApiDeploymentsSettings()
Returns the object with the settings used for calls to listApiDeployments.
-
getApiDeploymentSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetApiDeploymentRequest,ApiDeployment> getApiDeploymentSettings()
Returns the object with the settings used for calls to getApiDeployment.
-
createApiDeploymentSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateApiDeploymentRequest,ApiDeployment> createApiDeploymentSettings()
Returns the object with the settings used for calls to createApiDeployment.
-
updateApiDeploymentSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateApiDeploymentRequest,ApiDeployment> updateApiDeploymentSettings()
Returns the object with the settings used for calls to updateApiDeployment.
-
deleteApiDeploymentSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiDeploymentRequest,com.google.protobuf.Empty> deleteApiDeploymentSettings()
Returns the object with the settings used for calls to deleteApiDeployment.
-
tagApiDeploymentRevisionSettings
public com.google.api.gax.rpc.UnaryCallSettings<TagApiDeploymentRevisionRequest,ApiDeployment> tagApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to tagApiDeploymentRevision.
-
listApiDeploymentRevisionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListApiDeploymentRevisionsRequest,ListApiDeploymentRevisionsResponse,RegistryClient.ListApiDeploymentRevisionsPagedResponse> listApiDeploymentRevisionsSettings()
Returns the object with the settings used for calls to listApiDeploymentRevisions.
-
rollbackApiDeploymentSettings
public com.google.api.gax.rpc.UnaryCallSettings<RollbackApiDeploymentRequest,ApiDeployment> rollbackApiDeploymentSettings()
Returns the object with the settings used for calls to rollbackApiDeployment.
-
deleteApiDeploymentRevisionSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteApiDeploymentRevisionRequest,ApiDeployment> deleteApiDeploymentRevisionSettings()
Returns the object with the settings used for calls to deleteApiDeploymentRevision.
-
listArtifactsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListArtifactsRequest,ListArtifactsResponse,RegistryClient.ListArtifactsPagedResponse> listArtifactsSettings()
Returns the object with the settings used for calls to listArtifacts.
-
getArtifactSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetArtifactRequest,Artifact> getArtifactSettings()
Returns the object with the settings used for calls to getArtifact.
-
getArtifactContentsSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetArtifactContentsRequest,com.google.api.HttpBody> getArtifactContentsSettings()
Returns the object with the settings used for calls to getArtifactContents.
-
createArtifactSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateArtifactRequest,Artifact> createArtifactSettings()
Returns the object with the settings used for calls to createArtifact.
-
replaceArtifactSettings
public com.google.api.gax.rpc.UnaryCallSettings<ReplaceArtifactRequest,Artifact> replaceArtifactSettings()
Returns the object with the settings used for calls to replaceArtifact.
-
deleteArtifactSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteArtifactRequest,com.google.protobuf.Empty> deleteArtifactSettings()
Returns the object with the settings used for calls to deleteArtifact.
-
listLocationsSettings
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,RegistryClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
-
getLocationSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
-
create
public static final RegistrySettings create(RegistryStubSettings stub) throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static RegistrySettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static RegistrySettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static RegistrySettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public RegistrySettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<RegistrySettings>
-
-