Interface RepositoryOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Repository,Repository.Builder
@Generated
public interface RepositoryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.booleancontainsLabels(String key) Labels with user-defined metadata.Deprecated.intOptional.Optional.getCleanupPoliciesOrDefault(String key, CleanupPolicy defaultValue) Optional.Optional.booleanOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The user-provided description of the repository.com.google.protobuf.ByteStringThe user-provided description of the repository.booleanOptional.Docker repository config contains repository level configuration for the repositories of docker type.Docker repository config contains repository level configuration for the repositories of docker type.Optional.intOptional.The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.com.google.protobuf.ByteStringThe Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.Deprecated.intLabels with user-defined metadata.Labels with user-defined metadata.getLabelsOrDefault(String key, String defaultValue) Labels with user-defined metadata.getLabelsOrThrow(String key) Labels with user-defined metadata.Maven repository config contains repository level configuration for the repositories of maven type.Maven repository config contains repository level configuration for the repositories of maven type.getMode()Optional.intOptional.getName()The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.com.google.protobuf.ByteStringThe name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.Output only.com.google.protobuf.ByteStringOutput only.Configuration specific for a Remote Repository.Configuration specific for a Remote Repository.booleanOutput only.booleanOutput only.longOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Configuration specific for a Virtual Repository.Configuration specific for a Virtual Repository.Optional.Optional.booleanOutput only.booleanDocker repository config contains repository level configuration for the repositories of docker type.booleanMaven repository config contains repository level configuration for the repositories of maven type.booleanConfiguration specific for a Remote Repository.booleanOutput only.booleanConfiguration specific for a Virtual Repository.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasMavenConfig
boolean hasMavenConfig()Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;- Returns:
- Whether the mavenConfig field is set.
-
getMavenConfig
Repository.MavenRepositoryConfig getMavenConfig()Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;- Returns:
- The mavenConfig.
-
getMavenConfigOrBuilder
Repository.MavenRepositoryConfigOrBuilder getMavenConfigOrBuilder()Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; -
hasDockerConfig
boolean hasDockerConfig()Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;- Returns:
- Whether the dockerConfig field is set.
-
getDockerConfig
Repository.DockerRepositoryConfig getDockerConfig()Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;- Returns:
- The dockerConfig.
-
getDockerConfigOrBuilder
Repository.DockerRepositoryConfigOrBuilder getDockerConfigOrBuilder()Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; -
hasVirtualRepositoryConfig
boolean hasVirtualRepositoryConfig()Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;- Returns:
- Whether the virtualRepositoryConfig field is set.
-
getVirtualRepositoryConfig
VirtualRepositoryConfig getVirtualRepositoryConfig()Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;- Returns:
- The virtualRepositoryConfig.
-
getVirtualRepositoryConfigOrBuilder
VirtualRepositoryConfigOrBuilder getVirtualRepositoryConfigOrBuilder()Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; -
hasRemoteRepositoryConfig
boolean hasRemoteRepositoryConfig()Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;- Returns:
- Whether the remoteRepositoryConfig field is set.
-
getRemoteRepositoryConfig
RemoteRepositoryConfig getRemoteRepositoryConfig()Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;- Returns:
- The remoteRepositoryConfig.
-
getRemoteRepositoryConfigOrBuilder
RemoteRepositoryConfigOrBuilder getRemoteRepositoryConfigOrBuilder()Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; -
getName
String getName()The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For each location in a project, repository names must be unique.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For each location in a project, repository names must be unique.
string name = 1;- Returns:
- The bytes for name.
-
getFormatValue
int getFormatValue()Optional. The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for format.
-
getFormat
Repository.Format getFormat()Optional. The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The format.
-
getDescription
String getDescription()The user-provided description of the repository.
string description = 3;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()The user-provided description of the repository.
string description = 3;- Returns:
- The bytes for description.
-
getLabelsCount
int getLabelsCount()Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
map<string, string> labels = 4; -
containsLabels
Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
map<string, string> labels = 4; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
map<string, string> labels = 4; -
getLabelsOrDefault
Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
map<string, string> labels = 4; -
getLabelsOrThrow
Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
map<string, string> labels = 4; -
hasCreateTime
boolean hasCreateTime()Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getKmsKeyName
String getKmsKeyName()The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created.
string kms_key_name = 8;- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
com.google.protobuf.ByteString getKmsKeyNameBytes()The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created.
string kms_key_name = 8;- Returns:
- The bytes for kmsKeyName.
-
getModeValue
int getModeValue()Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for mode.
-
getMode
Repository.Mode getMode()Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The mode.
-
getCleanupPoliciesCount
int getCleanupPoliciesCount()Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
map<string, .google.devtools.artifactregistry.v1.CleanupPolicy> cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; -
containsCleanupPolicies
Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
map<string, .google.devtools.artifactregistry.v1.CleanupPolicy> cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getCleanupPolicies
Deprecated.UsegetCleanupPoliciesMap()instead. -
getCleanupPoliciesMap
Map<String,CleanupPolicy> getCleanupPoliciesMap()Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
map<string, .google.devtools.artifactregistry.v1.CleanupPolicy> cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getCleanupPoliciesOrDefault
Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
map<string, .google.devtools.artifactregistry.v1.CleanupPolicy> cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getCleanupPoliciesOrThrow
Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
map<string, .google.devtools.artifactregistry.v1.CleanupPolicy> cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getSizeBytes
long getSizeBytes()Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
int64 size_bytes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The sizeBytes.
-
getSatisfiesPzs
boolean getSatisfiesPzs()Output only. Whether or not this repository satisfies PZS.
bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The satisfiesPzs.
-
getCleanupPolicyDryRun
boolean getCleanupPolicyDryRun()Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
bool cleanup_policy_dry_run = 18 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The cleanupPolicyDryRun.
-
hasVulnerabilityScanningConfig
boolean hasVulnerabilityScanningConfig()Optional. Config and state for vulnerability scanning of resources within this Repository.
.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the vulnerabilityScanningConfig field is set.
-
getVulnerabilityScanningConfig
Repository.VulnerabilityScanningConfig getVulnerabilityScanningConfig()Optional. Config and state for vulnerability scanning of resources within this Repository.
.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The vulnerabilityScanningConfig.
-
getVulnerabilityScanningConfigOrBuilder
Repository.VulnerabilityScanningConfigOrBuilder getVulnerabilityScanningConfigOrBuilder()Optional. Config and state for vulnerability scanning of resources within this Repository.
.google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getDisallowUnspecifiedMode
boolean getDisallowUnspecifiedMode()Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The disallowUnspecifiedMode.
-
getSatisfiesPzi
boolean getSatisfiesPzi()Output only. Whether or not this repository satisfies PZI.
bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The satisfiesPzi.
-
getRegistryUri
String getRegistryUri()Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.
string registry_uri = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The registryUri.
-
getRegistryUriBytes
com.google.protobuf.ByteString getRegistryUriBytes()Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.
string registry_uri = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for registryUri.
-
getFormatConfigCase
Repository.FormatConfigCase getFormatConfigCase() -
getModeConfigCase
Repository.ModeConfigCase getModeConfigCase()
-