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()
Returnspublic static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returnspublic static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returnspublic static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returnspublic static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returnspublic static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returnspublic static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returnspublic static TransportChannelProvider defaultTransportChannelProvider()
Returnspublic static String getDefaultEndpoint()
Returns the default service endpoint.
Returnspublic static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returnspublic static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returnspublic static ArtifactRegistryStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
ReturnsnewBuilder(ClientContext clientContext)
public static ArtifactRegistryStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
ParameterReturnspublic static ArtifactRegistryStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
ReturnsConstructors
protected ArtifactRegistryStubSettings(ArtifactRegistryStubSettings.Builder settingsBuilder)
ParameterMethods
public OperationCallSettings<CreateRepositoryRequest,Repository,OperationMetadata> createRepositoryOperationSettings()
Returns the object with the settings used for calls to createRepository.
Returnspublic UnaryCallSettings<CreateRepositoryRequest,Operation> createRepositorySettings()
Returns the object with the settings used for calls to createRepository.
Returnspublic ArtifactRegistryStub createStub()
ReturnsExceptionspublic UnaryCallSettings<CreateTagRequest,Tag> createTagSettings()
Returns the object with the settings used for calls to createTag.
Returnspublic OperationCallSettings<DeletePackageRequest,Empty,OperationMetadata> deletePackageOperationSettings()
Returns the object with the settings used for calls to deletePackage.
Returnspublic UnaryCallSettings<DeletePackageRequest,Operation> deletePackageSettings()
Returns the object with the settings used for calls to deletePackage.
Returnspublic OperationCallSettings<DeleteRepositoryRequest,Empty,OperationMetadata> deleteRepositoryOperationSettings()
Returns the object with the settings used for calls to deleteRepository.
Returnspublic UnaryCallSettings<DeleteRepositoryRequest,Operation> deleteRepositorySettings()
Returns the object with the settings used for calls to deleteRepository.
Returnspublic UnaryCallSettings<DeleteTagRequest,Empty> deleteTagSettings()
Returns the object with the settings used for calls to deleteTag.
Returnspublic OperationCallSettings<DeleteVersionRequest,Empty,OperationMetadata> deleteVersionOperationSettings()
Returns the object with the settings used for calls to deleteVersion.
Returnspublic UnaryCallSettings<DeleteVersionRequest,Operation> deleteVersionSettings()
Returns the object with the settings used for calls to deleteVersion.
Returnspublic UnaryCallSettings<GetDockerImageRequest,DockerImage> getDockerImageSettings()
Returns the object with the settings used for calls to getDockerImage.
Returnspublic UnaryCallSettings<GetFileRequest,File> getFileSettings()
Returns the object with the settings used for calls to getFile.
Returnspublic UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
ReturnsType | Description |
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> | |
public UnaryCallSettings<GetPackageRequest,Package> getPackageSettings()
Returns the object with the settings used for calls to getPackage.
Returnspublic UnaryCallSettings<GetProjectSettingsRequest,ProjectSettings> getProjectSettingsSettings()
Returns the object with the settings used for calls to getProjectSettings.
Returnspublic UnaryCallSettings<GetRepositoryRequest,Repository> getRepositorySettings()
Returns the object with the settings used for calls to getRepository.
Returnspublic UnaryCallSettings<GetTagRequest,Tag> getTagSettings()
Returns the object with the settings used for calls to getTag.
Returnspublic UnaryCallSettings<GetVersionRequest,Version> getVersionSettings()
Returns the object with the settings used for calls to getVersion.
Returnspublic OperationCallSettings<ImportAptArtifactsRequest,ImportAptArtifactsResponse,ImportAptArtifactsMetadata> importAptArtifactsOperationSettings()
Returns the object with the settings used for calls to importAptArtifacts.
Returnspublic UnaryCallSettings<ImportAptArtifactsRequest,Operation> importAptArtifactsSettings()
Returns the object with the settings used for calls to importAptArtifacts.
Returnspublic OperationCallSettings<ImportYumArtifactsRequest,ImportYumArtifactsResponse,ImportYumArtifactsMetadata> importYumArtifactsOperationSettings()
Returns the object with the settings used for calls to importYumArtifacts.
Returnspublic UnaryCallSettings<ImportYumArtifactsRequest,Operation> importYumArtifactsSettings()
Returns the object with the settings used for calls to importYumArtifacts.
Returnspublic PagedCallSettings<ListDockerImagesRequest,ListDockerImagesResponse,ArtifactRegistryClient.ListDockerImagesPagedResponse> listDockerImagesSettings()
Returns the object with the settings used for calls to listDockerImages.
Returnspublic PagedCallSettings<ListFilesRequest,ListFilesResponse,ArtifactRegistryClient.ListFilesPagedResponse> listFilesSettings()
Returns the object with the settings used for calls to listFiles.
Returnspublic PagedCallSettings<ListPackagesRequest,ListPackagesResponse,ArtifactRegistryClient.ListPackagesPagedResponse> listPackagesSettings()
Returns the object with the settings used for calls to listPackages.
Returnspublic PagedCallSettings<ListRepositoriesRequest,ListRepositoriesResponse,ArtifactRegistryClient.ListRepositoriesPagedResponse> listRepositoriesSettings()
Returns the object with the settings used for calls to listRepositories.
Returnspublic PagedCallSettings<ListTagsRequest,ListTagsResponse,ArtifactRegistryClient.ListTagsPagedResponse> listTagsSettings()
Returns the object with the settings used for calls to listTags.
Returnspublic PagedCallSettings<ListVersionsRequest,ListVersionsResponse,ArtifactRegistryClient.ListVersionsPagedResponse> listVersionsSettings()
Returns the object with the settings used for calls to listVersions.
Returnspublic UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
ReturnsType | 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.
ReturnsType | 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.
ReturnsOverridespublic UnaryCallSettings<UpdateProjectSettingsRequest,ProjectSettings> updateProjectSettingsSettings()
Returns the object with the settings used for calls to updateProjectSettings.
Returnspublic UnaryCallSettings<UpdateRepositoryRequest,Repository> updateRepositorySettings()
Returns the object with the settings used for calls to updateRepository.
Returnspublic UnaryCallSettings<UpdateTagRequest,Tag> updateTagSettings()
Returns the object with the settings used for calls to updateTag.
Returns