Class ArtifactRegistrySettings
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings<ArtifactRegistrySettings>
-
- com.google.devtools.artifactregistry.v1beta2.ArtifactRegistrySettings
-
@BetaApi @Generated("by gapic-generator-java") public class ArtifactRegistrySettings extends com.google.api.gax.rpc.ClientSettings<ArtifactRegistrySettings>
Settings class to configure an instance ofArtifactRegistryClient
.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();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArtifactRegistrySettings.Builder
Builder for ArtifactRegistrySettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArtifactRegistrySettings(ArtifactRegistrySettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArtifactRegistrySettings
create(ArtifactRegistryStubSettings stub)
com.google.api.gax.rpc.OperationCallSettings<CreateRepositoryRequest,Repository,OperationMetadata>
createRepositoryOperationSettings()
Returns the object with the settings used for calls to createRepository.com.google.api.gax.rpc.UnaryCallSettings<CreateRepositoryRequest,com.google.longrunning.Operation>
createRepositorySettings()
Returns the object with the settings used for calls to createRepository.com.google.api.gax.rpc.UnaryCallSettings<CreateTagRequest,Tag>
createTagSettings()
Returns the object with the settings used for calls to createTag.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.OperationCallSettings<DeletePackageRequest,com.google.protobuf.Empty,OperationMetadata>
deletePackageOperationSettings()
Returns the object with the settings used for calls to deletePackage.com.google.api.gax.rpc.UnaryCallSettings<DeletePackageRequest,com.google.longrunning.Operation>
deletePackageSettings()
Returns the object with the settings used for calls to deletePackage.com.google.api.gax.rpc.OperationCallSettings<DeleteRepositoryRequest,com.google.protobuf.Empty,OperationMetadata>
deleteRepositoryOperationSettings()
Returns the object with the settings used for calls to deleteRepository.com.google.api.gax.rpc.UnaryCallSettings<DeleteRepositoryRequest,com.google.longrunning.Operation>
deleteRepositorySettings()
Returns the object with the settings used for calls to deleteRepository.com.google.api.gax.rpc.UnaryCallSettings<DeleteTagRequest,com.google.protobuf.Empty>
deleteTagSettings()
Returns the object with the settings used for calls to deleteTag.com.google.api.gax.rpc.OperationCallSettings<DeleteVersionRequest,com.google.protobuf.Empty,OperationMetadata>
deleteVersionOperationSettings()
Returns the object with the settings used for calls to deleteVersion.com.google.api.gax.rpc.UnaryCallSettings<DeleteVersionRequest,com.google.longrunning.Operation>
deleteVersionSettings()
Returns the object with the settings used for calls to deleteVersion.static String
getDefaultEndpoint()
Returns the default service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetFileRequest,File>
getFileSettings()
Returns the object with the settings used for calls to getFile.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.UnaryCallSettings<GetPackageRequest,Package>
getPackageSettings()
Returns the object with the settings used for calls to getPackage.com.google.api.gax.rpc.UnaryCallSettings<GetProjectSettingsRequest,ProjectSettings>
getProjectSettingsSettings()
Returns the object with the settings used for calls to getProjectSettings.com.google.api.gax.rpc.UnaryCallSettings<GetRepositoryRequest,Repository>
getRepositorySettings()
Returns the object with the settings used for calls to getRepository.com.google.api.gax.rpc.UnaryCallSettings<GetTagRequest,Tag>
getTagSettings()
Returns the object with the settings used for calls to getTag.com.google.api.gax.rpc.UnaryCallSettings<GetVersionRequest,Version>
getVersionSettings()
Returns the object with the settings used for calls to getVersion.com.google.api.gax.rpc.OperationCallSettings<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata>
importAptArtifactsOperationSettings()
Returns the object with the settings used for calls to importAptArtifacts.com.google.api.gax.rpc.UnaryCallSettings<ImportAptArtifactsRequest,com.google.longrunning.Operation>
importAptArtifactsSettings()
Returns the object with the settings used for calls to importAptArtifacts.com.google.api.gax.rpc.OperationCallSettings<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata>
importYumArtifactsOperationSettings()
Returns the object with the settings used for calls to importYumArtifacts.com.google.api.gax.rpc.UnaryCallSettings<ImportYumArtifactsRequest,com.google.longrunning.Operation>
importYumArtifactsSettings()
Returns the object with the settings used for calls to importYumArtifacts.com.google.api.gax.rpc.PagedCallSettings<ListFilesRequest,ListFilesResponse,ArtifactRegistryClient.ListFilesPagedResponse>
listFilesSettings()
Returns the object with the settings used for calls to listFiles.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.com.google.api.gax.rpc.PagedCallSettings<ListPackagesRequest,ListPackagesResponse,ArtifactRegistryClient.ListPackagesPagedResponse>
listPackagesSettings()
Returns the object with the settings used for calls to listPackages.com.google.api.gax.rpc.PagedCallSettings<ListRepositoriesRequest,ListRepositoriesResponse,ArtifactRegistryClient.ListRepositoriesPagedResponse>
listRepositoriesSettings()
Returns the object with the settings used for calls to listRepositories.com.google.api.gax.rpc.PagedCallSettings<ListTagsRequest,ListTagsResponse,ArtifactRegistryClient.ListTagsPagedResponse>
listTagsSettings()
Returns the object with the settings used for calls to listTags.com.google.api.gax.rpc.PagedCallSettings<ListVersionsRequest,ListVersionsResponse,ArtifactRegistryClient.ListVersionsPagedResponse>
listVersionsSettings()
Returns the object with the settings used for calls to listVersions.static ArtifactRegistrySettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static ArtifactRegistrySettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static ArtifactRegistrySettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.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<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.ArtifactRegistrySettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateProjectSettingsRequest,ProjectSettings>
updateProjectSettingsSettings()
Returns the object with the settings used for calls to updateProjectSettings.com.google.api.gax.rpc.UnaryCallSettings<UpdateRepositoryRequest,Repository>
updateRepositorySettings()
Returns the object with the settings used for calls to updateRepository.com.google.api.gax.rpc.UnaryCallSettings<UpdateTagRequest,Tag>
updateTagSettings()
Returns the object with the settings used for calls to updateTag.-
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
-
ArtifactRegistrySettings
protected ArtifactRegistrySettings(ArtifactRegistrySettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
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.
-
importAptArtifactsOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata> importAptArtifactsOperationSettings()
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.
-
importYumArtifactsOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata> importYumArtifactsOperationSettings()
Returns the object with the settings used for calls to importYumArtifacts.
-
listRepositoriesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListRepositoriesRequest,ListRepositoriesResponse,ArtifactRegistryClient.ListRepositoriesPagedResponse> listRepositoriesSettings()
Returns the object with the settings used for calls to listRepositories.
-
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.
-
listPackagesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListPackagesRequest,ListPackagesResponse,ArtifactRegistryClient.ListPackagesPagedResponse> listPackagesSettings()
Returns the object with the settings used for calls to listPackages.
-
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.
-
listVersionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListVersionsRequest,ListVersionsResponse,ArtifactRegistryClient.ListVersionsPagedResponse> listVersionsSettings()
Returns the object with the settings used for calls to listVersions.
-
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.
-
listFilesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListFilesRequest,ListFilesResponse,ArtifactRegistryClient.ListFilesPagedResponse> listFilesSettings()
Returns the object with the settings used for calls to listFiles.
-
getFileSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetFileRequest,File> getFileSettings()
Returns the object with the settings used for calls to getFile.
-
listTagsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListTagsRequest,ListTagsResponse,ArtifactRegistryClient.ListTagsPagedResponse> listTagsSettings()
Returns the object with the settings used for calls to listTags.
-
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.
-
create
public static final ArtifactRegistrySettings create(ArtifactRegistryStubSettings 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 ArtifactRegistrySettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
@BetaApi public static ArtifactRegistrySettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static ArtifactRegistrySettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public ArtifactRegistrySettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.ClientSettings<ArtifactRegistrySettings>
-
-