public class ArtifactRegistryStubSettings extends StubSettings<ArtifactRegistryStubSettings>
Settings class to configure an instance of ArtifactRegistryStub .
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 getDockerImage 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
ArtifactRegistryStubSettings . Builder artifactRegistrySettingsBuilder =
ArtifactRegistryStubSettings . newBuilder ();
artifactRegistrySettingsBuilder
. getDockerImageSettings ()
. setRetrySettings (
artifactRegistrySettingsBuilder
. getDockerImageSettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
ArtifactRegistryStubSettings artifactRegistrySettings = artifactRegistrySettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
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.
public static TransportChannelProvider defaultTransportChannelProvider ()
public static String getDefaultEndpoint ()
Returns the default service endpoint.
Returns
Type
Description
String
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
public static ArtifactRegistryStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static ArtifactRegistryStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
public static ArtifactRegistryStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
protected ArtifactRegistryStubSettings ( ArtifactRegistryStubSettings . Builder settingsBuilder )
Methods
public OperationCallSettings<BatchDeleteVersionsRequest , Empty , BatchDeleteVersionsMetadata > batchDeleteVersionsOperationSettings ()
Returns the object with the settings used for calls to batchDeleteVersions.
public UnaryCallSettings<BatchDeleteVersionsRequest , Operation > batchDeleteVersionsSettings ()
Returns the object with the settings used for calls to batchDeleteVersions.
public OperationCallSettings<CreateRepositoryRequest , Repository , OperationMetadata > createRepositoryOperationSettings ()
Returns the object with the settings used for calls to createRepository.
public UnaryCallSettings<CreateRepositoryRequest , Operation > createRepositorySettings ()
Returns the object with the settings used for calls to createRepository.
public ArtifactRegistryStub createStub ()
public UnaryCallSettings<CreateTagRequest , Tag > createTagSettings ()
Returns the object with the settings used for calls to createTag.
public OperationCallSettings<DeletePackageRequest , Empty , OperationMetadata > deletePackageOperationSettings ()
Returns the object with the settings used for calls to deletePackage.
public UnaryCallSettings<DeletePackageRequest , Operation > deletePackageSettings ()
Returns the object with the settings used for calls to deletePackage.
public OperationCallSettings<DeleteRepositoryRequest , Empty , OperationMetadata > deleteRepositoryOperationSettings ()
Returns the object with the settings used for calls to deleteRepository.
public UnaryCallSettings<DeleteRepositoryRequest , Operation > deleteRepositorySettings ()
Returns the object with the settings used for calls to deleteRepository.
public UnaryCallSettings<DeleteTagRequest , Empty > deleteTagSettings ()
Returns the object with the settings used for calls to deleteTag.
public OperationCallSettings<DeleteVersionRequest , Empty , OperationMetadata > deleteVersionOperationSettings ()
Returns the object with the settings used for calls to deleteVersion.
public UnaryCallSettings<DeleteVersionRequest , Operation > deleteVersionSettings ()
Returns the object with the settings used for calls to deleteVersion.
public UnaryCallSettings<GetDockerImageRequest , DockerImage > getDockerImageSettings ()
Returns the object with the settings used for calls to getDockerImage.
public UnaryCallSettings<GetFileRequest , File > getFileSettings ()
Returns the object with the settings used for calls to getFile.
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 >
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 >
public UnaryCallSettings<GetMavenArtifactRequest , MavenArtifact > getMavenArtifactSettings ()
Returns the object with the settings used for calls to getMavenArtifact.
public UnaryCallSettings<GetNpmPackageRequest , NpmPackage > getNpmPackageSettings ()
Returns the object with the settings used for calls to getNpmPackage.
public UnaryCallSettings<GetPackageRequest , Package > getPackageSettings ()
Returns the object with the settings used for calls to getPackage.
public UnaryCallSettings<GetProjectSettingsRequest , ProjectSettings > getProjectSettingsSettings ()
Returns the object with the settings used for calls to getProjectSettings.
public UnaryCallSettings<GetPythonPackageRequest , PythonPackage > getPythonPackageSettings ()
Returns the object with the settings used for calls to getPythonPackage.
public UnaryCallSettings<GetRepositoryRequest , Repository > getRepositorySettings ()
Returns the object with the settings used for calls to getRepository.
public String getServiceName ()
Returns the default service name.
Returns
Type
Description
String
Overrides
public UnaryCallSettings<GetTagRequest , Tag > getTagSettings ()
Returns the object with the settings used for calls to getTag.
public UnaryCallSettings<GetVPCSCConfigRequest , VPCSCConfig > getVPCSCConfigSettings ()
Returns the object with the settings used for calls to getVPCSCConfig.
public UnaryCallSettings<GetVersionRequest , Version > getVersionSettings ()
Returns the object with the settings used for calls to getVersion.
public OperationCallSettings<ImportAptArtifactsRequest , ImportAptArtifactsResponse , ImportAptArtifactsMetadata > importAptArtifactsOperationSettings ()
Returns the object with the settings used for calls to importAptArtifacts.
public UnaryCallSettings<ImportAptArtifactsRequest , Operation > importAptArtifactsSettings ()
Returns the object with the settings used for calls to importAptArtifacts.
public OperationCallSettings<ImportYumArtifactsRequest , ImportYumArtifactsResponse , ImportYumArtifactsMetadata > importYumArtifactsOperationSettings ()
Returns the object with the settings used for calls to importYumArtifacts.
public UnaryCallSettings<ImportYumArtifactsRequest , Operation > importYumArtifactsSettings ()
Returns the object with the settings used for calls to importYumArtifacts.
public PagedCallSettings<ListDockerImagesRequest , ListDockerImagesResponse , ArtifactRegistryClient . ListDockerImagesPagedResponse > listDockerImagesSettings ()
Returns the object with the settings used for calls to listDockerImages.
public PagedCallSettings<ListFilesRequest , ListFilesResponse , ArtifactRegistryClient . ListFilesPagedResponse > listFilesSettings ()
Returns the object with the settings used for calls to listFiles.
public PagedCallSettings<ListLocationsRequest , ListLocationsResponse , ArtifactRegistryClient . ListLocationsPagedResponse > listLocationsSettings ()
Returns the object with the settings used for calls to listLocations.
public PagedCallSettings<ListMavenArtifactsRequest , ListMavenArtifactsResponse , ArtifactRegistryClient . ListMavenArtifactsPagedResponse > listMavenArtifactsSettings ()
Returns the object with the settings used for calls to listMavenArtifacts.
public PagedCallSettings<ListNpmPackagesRequest , ListNpmPackagesResponse , ArtifactRegistryClient . ListNpmPackagesPagedResponse > listNpmPackagesSettings ()
Returns the object with the settings used for calls to listNpmPackages.
public PagedCallSettings<ListPackagesRequest , ListPackagesResponse , ArtifactRegistryClient . ListPackagesPagedResponse > listPackagesSettings ()
Returns the object with the settings used for calls to listPackages.
public PagedCallSettings<ListPythonPackagesRequest , ListPythonPackagesResponse , ArtifactRegistryClient . ListPythonPackagesPagedResponse > listPythonPackagesSettings ()
Returns the object with the settings used for calls to listPythonPackages.
public PagedCallSettings<ListRepositoriesRequest , ListRepositoriesResponse , ArtifactRegistryClient . ListRepositoriesPagedResponse > listRepositoriesSettings ()
Returns the object with the settings used for calls to listRepositories.
public PagedCallSettings<ListTagsRequest , ListTagsResponse , ArtifactRegistryClient . ListTagsPagedResponse > listTagsSettings ()
Returns the object with the settings used for calls to listTags.
public PagedCallSettings<ListVersionsRequest , ListVersionsResponse , ArtifactRegistryClient . ListVersionsPagedResponse > listVersionsSettings ()
Returns the object with the settings used for calls to listVersions.
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 >
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 >
public ArtifactRegistryStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
public UnaryCallSettings<UpdateProjectSettingsRequest , ProjectSettings > updateProjectSettingsSettings ()
Returns the object with the settings used for calls to updateProjectSettings.
public UnaryCallSettings<UpdateRepositoryRequest , Repository > updateRepositorySettings ()
Returns the object with the settings used for calls to updateRepository.
public UnaryCallSettings<UpdateTagRequest , Tag > updateTagSettings ()
Returns the object with the settings used for calls to updateTag.
public UnaryCallSettings<UpdateVPCSCConfigRequest , VPCSCConfig > updateVPCSCConfigSettings ()
Returns the object with the settings used for calls to updateVPCSCConfig.