Class RegistrySettings


  • @Generated("by gapic-generator-java")
    public class RegistrySettings
    extends com.google.api.gax.rpc.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();
     
    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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()
      • 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 class com.google.api.gax.rpc.ClientSettings<RegistrySettings>