Class ArtifactRegistrySettings


  • @BetaApi
    @Generated("by gapic-generator-java")
    public class ArtifactRegistrySettings
    extends com.google.api.gax.rpc.ClientSettings<ArtifactRegistrySettings>
    Settings class to configure an instance of ArtifactRegistryClient.

    The default instance has everything set to sensible defaults:

    • The default service address (artifactregistry.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 getRepository 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
     ArtifactRegistrySettings.Builder artifactRegistrySettingsBuilder =
         ArtifactRegistrySettings.newBuilder();
     artifactRegistrySettingsBuilder
         .getRepositorySettings()
         .setRetrySettings(
             artifactRegistrySettingsBuilder
                 .getRepositorySettings()
                 .getRetrySettings()
                 .toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     ArtifactRegistrySettings artifactRegistrySettings = artifactRegistrySettingsBuilder.build();
     
    • Method Detail

      • importAptArtifactsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ImportAptArtifactsRequest,​com.google.longrunning.Operation> importAptArtifactsSettings()
        Returns the object with the settings used for calls to importAptArtifacts.
      • importYumArtifactsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<ImportYumArtifactsRequest,​com.google.longrunning.Operation> importYumArtifactsSettings()
        Returns the object with the settings used for calls to importYumArtifacts.
      • getRepositorySettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetRepositoryRequest,​Repository> getRepositorySettings()
        Returns the object with the settings used for calls to getRepository.
      • createRepositorySettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateRepositoryRequest,​com.google.longrunning.Operation> createRepositorySettings()
        Returns the object with the settings used for calls to createRepository.
      • createRepositoryOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<CreateRepositoryRequest,​Repository,​OperationMetadata> createRepositoryOperationSettings()
        Returns the object with the settings used for calls to createRepository.
      • updateRepositorySettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateRepositoryRequest,​Repository> updateRepositorySettings()
        Returns the object with the settings used for calls to updateRepository.
      • deleteRepositorySettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteRepositoryRequest,​com.google.longrunning.Operation> deleteRepositorySettings()
        Returns the object with the settings used for calls to deleteRepository.
      • deleteRepositoryOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteRepositoryRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteRepositoryOperationSettings()
        Returns the object with the settings used for calls to deleteRepository.
      • getPackageSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetPackageRequest,​Package> getPackageSettings()
        Returns the object with the settings used for calls to getPackage.
      • deletePackageSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeletePackageRequest,​com.google.longrunning.Operation> deletePackageSettings()
        Returns the object with the settings used for calls to deletePackage.
      • deletePackageOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeletePackageRequest,​com.google.protobuf.Empty,​OperationMetadata> deletePackageOperationSettings()
        Returns the object with the settings used for calls to deletePackage.
      • getVersionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetVersionRequest,​Version> getVersionSettings()
        Returns the object with the settings used for calls to getVersion.
      • deleteVersionSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteVersionRequest,​com.google.longrunning.Operation> deleteVersionSettings()
        Returns the object with the settings used for calls to deleteVersion.
      • deleteVersionOperationSettings

        public com.google.api.gax.rpc.OperationCallSettings<DeleteVersionRequest,​com.google.protobuf.Empty,​OperationMetadata> deleteVersionOperationSettings()
        Returns the object with the settings used for calls to deleteVersion.
      • getFileSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetFileRequest,​File> getFileSettings()
        Returns the object with the settings used for calls to getFile.
      • getTagSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetTagRequest,​Tag> getTagSettings()
        Returns the object with the settings used for calls to getTag.
      • createTagSettings

        public com.google.api.gax.rpc.UnaryCallSettings<CreateTagRequest,​Tag> createTagSettings()
        Returns the object with the settings used for calls to createTag.
      • updateTagSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateTagRequest,​Tag> updateTagSettings()
        Returns the object with the settings used for calls to updateTag.
      • deleteTagSettings

        public com.google.api.gax.rpc.UnaryCallSettings<DeleteTagRequest,​com.google.protobuf.Empty> deleteTagSettings()
        Returns the object with the settings used for calls to deleteTag.
      • 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.
      • getProjectSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<GetProjectSettingsRequest,​ProjectSettings> getProjectSettingsSettings()
        Returns the object with the settings used for calls to getProjectSettings.
      • updateProjectSettingsSettings

        public com.google.api.gax.rpc.UnaryCallSettings<UpdateProjectSettingsRequest,​ProjectSettings> updateProjectSettingsSettings()
        Returns the object with the settings used for calls to updateProjectSettings.
      • listLocationsSettings

        public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,​com.google.cloud.location.ListLocationsResponse,​ArtifactRegistryClient.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.
      • 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 ArtifactRegistrySettings.Builder newBuilder​(com.google.api.gax.rpc.ClientContext clientContext)
        Returns a new builder for this class.