Class Repository.Builder (1.53.0)

public static final class Repository.Builder extends GeneratedMessageV3.Builder<Repository.Builder> implements RepositoryOrBuilder

A Repository for storing artifacts with a specific format.

Protobuf type google.devtools.artifactregistry.v1.Repository

Implements

RepositoryOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Repository.Builder
Overrides

build()

public Repository build()
Returns
Type Description
Repository

buildPartial()

public Repository buildPartial()
Returns
Type Description
Repository

clear()

public Repository.Builder clear()
Returns
Type Description
Repository.Builder
Overrides

clearCleanupPolicies()

public Repository.Builder clearCleanupPolicies()
Returns
Type Description
Repository.Builder

clearCleanupPolicyDryRun()

public Repository.Builder clearCleanupPolicyDryRun()

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
Type Description
Repository.Builder

This builder for chaining.

clearCreateTime()

public Repository.Builder clearCreateTime()

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

clearDescription()

public Repository.Builder clearDescription()

The user-provided description of the repository.

string description = 3;

Returns
Type Description
Repository.Builder

This builder for chaining.

clearDisallowUnspecifiedMode()

public Repository.Builder clearDisallowUnspecifiedMode()

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
Type Description
Repository.Builder

This builder for chaining.

clearDockerConfig()

public Repository.Builder clearDockerConfig()

Docker repository config contains repository level configuration for the repositories of docker type.

.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;

Returns
Type Description
Repository.Builder

clearField(Descriptors.FieldDescriptor field)

public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Repository.Builder
Overrides

clearFormat()

public Repository.Builder clearFormat()

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
Type Description
Repository.Builder

This builder for chaining.

clearFormatConfig()

public Repository.Builder clearFormatConfig()
Returns
Type Description
Repository.Builder

clearKmsKeyName()

public Repository.Builder clearKmsKeyName()

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
Type Description
Repository.Builder

This builder for chaining.

clearLabels()

public Repository.Builder clearLabels()
Returns
Type Description
Repository.Builder

clearMavenConfig()

public Repository.Builder clearMavenConfig()

Maven repository config contains repository level configuration for the repositories of maven type.

.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;

Returns
Type Description
Repository.Builder

clearMode()

public Repository.Builder clearMode()

Optional. The mode of the repository.

.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearModeConfig()

public Repository.Builder clearModeConfig()
Returns
Type Description
Repository.Builder

clearName()

public Repository.Builder clearName()

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
Type Description
Repository.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Repository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Repository.Builder
Overrides

clearRemoteRepositoryConfig()

public Repository.Builder clearRemoteRepositoryConfig()

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Returns
Type Description
Repository.Builder

clearSatisfiesPzi()

public Repository.Builder clearSatisfiesPzi()

Output only. If set, the repository satisfies physical zone isolation.

bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearSatisfiesPzs()

public Repository.Builder clearSatisfiesPzs()

Output only. If set, the repository satisfies physical zone separation.

bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

This builder for chaining.

clearSizeBytes()

public Repository.Builder clearSizeBytes()

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
Type Description
Repository.Builder

This builder for chaining.

clearUpdateTime()

public Repository.Builder clearUpdateTime()

Output only. The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Repository.Builder

clearVirtualRepositoryConfig()

public Repository.Builder clearVirtualRepositoryConfig()

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Returns
Type Description
Repository.Builder

clearVulnerabilityScanningConfig()

public Repository.Builder clearVulnerabilityScanningConfig()

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
Type Description
Repository.Builder

clone()

public Repository.Builder clone()
Returns
Type Description
Repository.Builder
Overrides

containsCleanupPolicies(String key)

public boolean containsCleanupPolicies(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCleanupPolicies() (deprecated)

public Map<String,CleanupPolicy> getCleanupPolicies()
Returns
Type Description
Map<String,CleanupPolicy>

getCleanupPoliciesCount()

public 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];

Returns
Type Description
int

getCleanupPoliciesMap()

public 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];

Returns
Type Description
Map<String,CleanupPolicy>

getCleanupPoliciesOrDefault(String key, CleanupPolicy defaultValue)

public CleanupPolicy getCleanupPoliciesOrDefault(String key, CleanupPolicy defaultValue)

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];

Parameters
Name Description
key String
defaultValue CleanupPolicy
Returns
Type Description
CleanupPolicy

getCleanupPoliciesOrThrow(String key)

public CleanupPolicy getCleanupPoliciesOrThrow(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
CleanupPolicy

getCleanupPolicyDryRun()

public 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
Type Description
boolean

The cleanupPolicyDryRun.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
Type Description
Repository

getDescription()

public String getDescription()

The user-provided description of the repository.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The user-provided description of the repository.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisallowUnspecifiedMode()

public 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
Type Description
boolean

The disallowUnspecifiedMode.

getDockerConfig()

public 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
Type Description
Repository.DockerRepositoryConfig

The dockerConfig.

getDockerConfigBuilder()

public Repository.DockerRepositoryConfig.Builder getDockerConfigBuilder()

Docker repository config contains repository level configuration for the repositories of docker type.

.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;

Returns
Type Description
Repository.DockerRepositoryConfig.Builder

getDockerConfigOrBuilder()

public 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;

Returns
Type Description
Repository.DockerRepositoryConfigOrBuilder

getFormat()

public 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
Type Description
Repository.Format

The format.

getFormatConfigCase()

public Repository.FormatConfigCase getFormatConfigCase()
Returns
Type Description
Repository.FormatConfigCase

getFormatValue()

public 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
Type Description
int

The enum numeric value on the wire for format.

getKmsKeyName()

public 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
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public 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
Type Description
ByteString

The bytes for kmsKeyName.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public 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;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> 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;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
String

getMavenConfig()

public 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
Type Description
Repository.MavenRepositoryConfig

The mavenConfig.

getMavenConfigBuilder()

public Repository.MavenRepositoryConfig.Builder getMavenConfigBuilder()

Maven repository config contains repository level configuration for the repositories of maven type.

.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;

Returns
Type Description
Repository.MavenRepositoryConfig.Builder

getMavenConfigOrBuilder()

public 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;

Returns
Type Description
Repository.MavenRepositoryConfigOrBuilder

getMode()

public Repository.Mode getMode()

Optional. The mode of the repository.

.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Repository.Mode

The mode.

getModeConfigCase()

public Repository.ModeConfigCase getModeConfigCase()
Returns
Type Description
Repository.ModeConfigCase

getModeValue()

public int getModeValue()

Optional. The mode of the repository.

.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getMutableCleanupPolicies() (deprecated)

public Map<String,CleanupPolicy> getMutableCleanupPolicies()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,CleanupPolicy>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public 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
Type Description
String

The name.

getNameBytes()

public 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
Type Description
ByteString

The bytes for name.

getRemoteRepositoryConfig()

public RemoteRepositoryConfig getRemoteRepositoryConfig()

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Returns
Type Description
RemoteRepositoryConfig

The remoteRepositoryConfig.

getRemoteRepositoryConfigBuilder()

public RemoteRepositoryConfig.Builder getRemoteRepositoryConfigBuilder()

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Returns
Type Description
RemoteRepositoryConfig.Builder

getRemoteRepositoryConfigOrBuilder()

public RemoteRepositoryConfigOrBuilder getRemoteRepositoryConfigOrBuilder()

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Returns
Type Description
RemoteRepositoryConfigOrBuilder

getSatisfiesPzi()

public boolean getSatisfiesPzi()

Output only. If set, the repository satisfies physical zone isolation.

bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzi.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

Output only. If set, the repository satisfies physical zone separation.

bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The satisfiesPzs.

getSizeBytes()

public 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
Type Description
long

The sizeBytes.

getUpdateTime()

public 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
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVirtualRepositoryConfig()

public VirtualRepositoryConfig getVirtualRepositoryConfig()

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Returns
Type Description
VirtualRepositoryConfig

The virtualRepositoryConfig.

getVirtualRepositoryConfigBuilder()

public VirtualRepositoryConfig.Builder getVirtualRepositoryConfigBuilder()

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Returns
Type Description
VirtualRepositoryConfig.Builder

getVirtualRepositoryConfigOrBuilder()

public VirtualRepositoryConfigOrBuilder getVirtualRepositoryConfigOrBuilder()

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Returns
Type Description
VirtualRepositoryConfigOrBuilder

getVulnerabilityScanningConfig()

public 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
Type Description
Repository.VulnerabilityScanningConfig

The vulnerabilityScanningConfig.

getVulnerabilityScanningConfigBuilder()

public Repository.VulnerabilityScanningConfig.Builder getVulnerabilityScanningConfigBuilder()

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
Type Description
Repository.VulnerabilityScanningConfig.Builder

getVulnerabilityScanningConfigOrBuilder()

public 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];

Returns
Type Description
Repository.VulnerabilityScanningConfigOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDockerConfig()

public 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
Type Description
boolean

Whether the dockerConfig field is set.

hasMavenConfig()

public 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
Type Description
boolean

Whether the mavenConfig field is set.

hasRemoteRepositoryConfig()

public boolean hasRemoteRepositoryConfig()

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Returns
Type Description
boolean

Whether the remoteRepositoryConfig field is set.

hasUpdateTime()

public 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
Type Description
boolean

Whether the updateTime field is set.

hasVirtualRepositoryConfig()

public boolean hasVirtualRepositoryConfig()

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Returns
Type Description
boolean

Whether the virtualRepositoryConfig field is set.

hasVulnerabilityScanningConfig()

public 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
Type Description
boolean

Whether the vulnerabilityScanningConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Repository.Builder mergeCreateTime(Timestamp value)

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

mergeDockerConfig(Repository.DockerRepositoryConfig value)

public Repository.Builder mergeDockerConfig(Repository.DockerRepositoryConfig value)

Docker repository config contains repository level configuration for the repositories of docker type.

.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;

Parameter
Name Description
value Repository.DockerRepositoryConfig
Returns
Type Description
Repository.Builder

mergeFrom(Repository other)

public Repository.Builder mergeFrom(Repository other)
Parameter
Name Description
other Repository
Returns
Type Description
Repository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Repository.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Repository.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Repository.Builder
Overrides

mergeMavenConfig(Repository.MavenRepositoryConfig value)

public Repository.Builder mergeMavenConfig(Repository.MavenRepositoryConfig value)

Maven repository config contains repository level configuration for the repositories of maven type.

.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;

Parameter
Name Description
value Repository.MavenRepositoryConfig
Returns
Type Description
Repository.Builder

mergeRemoteRepositoryConfig(RemoteRepositoryConfig value)

public Repository.Builder mergeRemoteRepositoryConfig(RemoteRepositoryConfig value)

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Parameter
Name Description
value RemoteRepositoryConfig
Returns
Type Description
Repository.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Repository.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Repository.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

mergeVirtualRepositoryConfig(VirtualRepositoryConfig value)

public Repository.Builder mergeVirtualRepositoryConfig(VirtualRepositoryConfig value)

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Parameter
Name Description
value VirtualRepositoryConfig
Returns
Type Description
Repository.Builder

mergeVulnerabilityScanningConfig(Repository.VulnerabilityScanningConfig value)

public Repository.Builder mergeVulnerabilityScanningConfig(Repository.VulnerabilityScanningConfig value)

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];

Parameter
Name Description
value Repository.VulnerabilityScanningConfig
Returns
Type Description
Repository.Builder

putAllCleanupPolicies(Map<String,CleanupPolicy> values)

public Repository.Builder putAllCleanupPolicies(Map<String,CleanupPolicy> values)

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];

Parameter
Name Description
values Map<String,CleanupPolicy>
Returns
Type Description
Repository.Builder

putAllLabels(Map<String,String> values)

public Repository.Builder putAllLabels(Map<String,String> values)

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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Repository.Builder

putCleanupPolicies(String key, CleanupPolicy value)

public Repository.Builder putCleanupPolicies(String key, CleanupPolicy value)

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];

Parameters
Name Description
key String
value CleanupPolicy
Returns
Type Description
Repository.Builder

putCleanupPoliciesBuilderIfAbsent(String key)

public CleanupPolicy.Builder putCleanupPoliciesBuilderIfAbsent(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
CleanupPolicy.Builder

putLabels(String key, String value)

public Repository.Builder putLabels(String key, String value)

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;

Parameters
Name Description
key String
value String
Returns
Type Description
Repository.Builder

removeCleanupPolicies(String key)

public Repository.Builder removeCleanupPolicies(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
Repository.Builder

removeLabels(String key)

public Repository.Builder removeLabels(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
Repository.Builder

setCleanupPolicyDryRun(boolean value)

public Repository.Builder setCleanupPolicyDryRun(boolean value)

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];

Parameter
Name Description
value boolean

The cleanupPolicyDryRun to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Repository.Builder setCreateTime(Timestamp value)

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Repository.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the repository was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.Builder

setDescription(String value)

public Repository.Builder setDescription(String value)

The user-provided description of the repository.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Repository.Builder setDescriptionBytes(ByteString value)

The user-provided description of the repository.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setDisallowUnspecifiedMode(boolean value)

public Repository.Builder setDisallowUnspecifiedMode(boolean value)

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];

Parameter
Name Description
value boolean

The disallowUnspecifiedMode to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setDockerConfig(Repository.DockerRepositoryConfig value)

public Repository.Builder setDockerConfig(Repository.DockerRepositoryConfig value)

Docker repository config contains repository level configuration for the repositories of docker type.

.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;

Parameter
Name Description
value Repository.DockerRepositoryConfig
Returns
Type Description
Repository.Builder

setDockerConfig(Repository.DockerRepositoryConfig.Builder builderForValue)

public Repository.Builder setDockerConfig(Repository.DockerRepositoryConfig.Builder builderForValue)

Docker repository config contains repository level configuration for the repositories of docker type.

.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;

Parameter
Name Description
builderForValue Repository.DockerRepositoryConfig.Builder
Returns
Type Description
Repository.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Repository.Builder
Overrides

setFormat(Repository.Format value)

public Repository.Builder setFormat(Repository.Format value)

Optional. The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.Format

The format to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setFormatValue(int value)

public Repository.Builder setFormatValue(int value)

Optional. The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for format to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setKmsKeyName(String value)

public Repository.Builder setKmsKeyName(String value)

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;

Parameter
Name Description
value String

The kmsKeyName to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public Repository.Builder setKmsKeyNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for kmsKeyName to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setMavenConfig(Repository.MavenRepositoryConfig value)

public Repository.Builder setMavenConfig(Repository.MavenRepositoryConfig value)

Maven repository config contains repository level configuration for the repositories of maven type.

.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;

Parameter
Name Description
value Repository.MavenRepositoryConfig
Returns
Type Description
Repository.Builder

setMavenConfig(Repository.MavenRepositoryConfig.Builder builderForValue)

public Repository.Builder setMavenConfig(Repository.MavenRepositoryConfig.Builder builderForValue)

Maven repository config contains repository level configuration for the repositories of maven type.

.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;

Parameter
Name Description
builderForValue Repository.MavenRepositoryConfig.Builder
Returns
Type Description
Repository.Builder

setMode(Repository.Mode value)

public Repository.Builder setMode(Repository.Mode value)

Optional. The mode of the repository.

.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Repository.Mode

The mode to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setModeValue(int value)

public Repository.Builder setModeValue(int value)

Optional. The mode of the repository.

.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setName(String value)

public Repository.Builder setName(String value)

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Repository.Builder setNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setRemoteRepositoryConfig(RemoteRepositoryConfig value)

public Repository.Builder setRemoteRepositoryConfig(RemoteRepositoryConfig value)

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Parameter
Name Description
value RemoteRepositoryConfig
Returns
Type Description
Repository.Builder

setRemoteRepositoryConfig(RemoteRepositoryConfig.Builder builderForValue)

public Repository.Builder setRemoteRepositoryConfig(RemoteRepositoryConfig.Builder builderForValue)

Configuration specific for a Remote Repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;

Parameter
Name Description
builderForValue RemoteRepositoryConfig.Builder
Returns
Type Description
Repository.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Repository.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Repository.Builder
Overrides

setSatisfiesPzi(boolean value)

public Repository.Builder setSatisfiesPzi(boolean value)

Output only. If set, the repository satisfies physical zone isolation.

bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The satisfiesPzi to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setSatisfiesPzs(boolean value)

public Repository.Builder setSatisfiesPzs(boolean value)

Output only. If set, the repository satisfies physical zone separation.

bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The satisfiesPzs to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setSizeBytes(long value)

public Repository.Builder setSizeBytes(long value)

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];

Parameter
Name Description
value long

The sizeBytes to set.

Returns
Type Description
Repository.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Repository.Builder
Overrides

setUpdateTime(Timestamp value)

public Repository.Builder setUpdateTime(Timestamp value)

Output only. The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Repository.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Repository.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Repository.Builder

setVirtualRepositoryConfig(VirtualRepositoryConfig value)

public Repository.Builder setVirtualRepositoryConfig(VirtualRepositoryConfig value)

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Parameter
Name Description
value VirtualRepositoryConfig
Returns
Type Description
Repository.Builder

setVirtualRepositoryConfig(VirtualRepositoryConfig.Builder builderForValue)

public Repository.Builder setVirtualRepositoryConfig(VirtualRepositoryConfig.Builder builderForValue)

Configuration specific for a Virtual Repository.

.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;

Parameter
Name Description
builderForValue VirtualRepositoryConfig.Builder
Returns
Type Description
Repository.Builder

setVulnerabilityScanningConfig(Repository.VulnerabilityScanningConfig value)

public Repository.Builder setVulnerabilityScanningConfig(Repository.VulnerabilityScanningConfig value)

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];

Parameter
Name Description
value Repository.VulnerabilityScanningConfig
Returns
Type Description
Repository.Builder

setVulnerabilityScanningConfig(Repository.VulnerabilityScanningConfig.Builder builderForValue)

public Repository.Builder setVulnerabilityScanningConfig(Repository.VulnerabilityScanningConfig.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Repository.VulnerabilityScanningConfig.Builder
Returns
Type Description
Repository.Builder