Class Repository.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
com.google.devtools.artifactregistry.v1.Repository.Builder
- All Implemented Interfaces:
RepositoryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Repository
public static final class Repository.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
implements RepositoryOrBuilder
A Repository for storing artifacts with a specific format.Protobuf type
google.devtools.artifactregistry.v1.Repository-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Output only.The user-provided description of the repository.Optional.Docker repository config contains repository level configuration for the repositories of docker type.Optional.The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.Maven repository config contains repository level configuration for the repositories of maven type.Optional.The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.Output only.Configuration specific for a Remote Repository.Output only.Output only.Output only.Output only.Configuration specific for a Virtual Repository.Optional.booleanOptional.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.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The user-provided description of the repository.com.google.protobuf.ByteStringThe user-provided description of the repository.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.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.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.Maven repository config contains repository level configuration for the repositories of maven type.getMode()Optional.intOptional.Deprecated.Deprecated.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.Configuration specific for a Remote Repository.booleanOutput only.booleanOutput only.longOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Configuration specific for a Virtual Repository.Configuration specific for a Virtual Repository.Configuration specific for a Virtual Repository.Optional.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.Docker repository config contains repository level configuration for the repositories of docker type.mergeFrom(Repository other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Maven repository config contains repository level configuration for the repositories of maven type.Configuration specific for a Remote Repository.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.Configuration specific for a Virtual Repository.Optional.putAllCleanupPolicies(Map<String, CleanupPolicy> values) Optional.putAllLabels(Map<String, String> values) Labels with user-defined metadata.putCleanupPolicies(String key, CleanupPolicy value) Optional.Optional.Labels with user-defined metadata.Optional.removeLabels(String key) Labels with user-defined metadata.setCleanupPolicyDryRun(boolean value) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) The user-provided description of the repository.setDescriptionBytes(com.google.protobuf.ByteString value) The user-provided description of the repository.setDisallowUnspecifiedMode(boolean value) Optional.Docker repository config contains repository level configuration for the repositories of docker type.setDockerConfig(Repository.DockerRepositoryConfig.Builder builderForValue) Docker repository config contains repository level configuration for the repositories of docker type.setFormat(Repository.Format value) Optional.setFormatValue(int value) Optional.setKmsKeyName(String value) The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.setKmsKeyNameBytes(com.google.protobuf.ByteString value) The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.Maven repository config contains repository level configuration for the repositories of maven type.setMavenConfig(Repository.MavenRepositoryConfig.Builder builderForValue) Maven repository config contains repository level configuration for the repositories of maven type.setMode(Repository.Mode value) Optional.setModeValue(int value) Optional.The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.setNameBytes(com.google.protobuf.ByteString value) The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.setRegistryUri(String value) Output only.setRegistryUriBytes(com.google.protobuf.ByteString value) Output only.Configuration specific for a Remote Repository.setRemoteRepositoryConfig(RemoteRepositoryConfig.Builder builderForValue) Configuration specific for a Remote Repository.setSatisfiesPzi(boolean value) Output only.setSatisfiesPzs(boolean value) Output only.setSizeBytes(long value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Configuration specific for a Virtual Repository.setVirtualRepositoryConfig(VirtualRepositoryConfig.Builder builderForValue) Configuration specific for a Virtual Repository.Optional.Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Repository.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
-
mergeFrom
public Repository.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Repository.Builder>- Throws:
IOException
-
getFormatConfigCase
- Specified by:
getFormatConfigCasein interfaceRepositoryOrBuilder
-
clearFormatConfig
-
getModeConfigCase
- Specified by:
getModeConfigCasein interfaceRepositoryOrBuilder
-
clearModeConfig
-
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;- Specified by:
hasMavenConfigin interfaceRepositoryOrBuilder- Returns:
- Whether the mavenConfig field is set.
-
getMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;- Specified by:
getMavenConfigin interfaceRepositoryOrBuilder- Returns:
- The mavenConfig.
-
setMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; -
setMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; -
mergeMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; -
clearMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; -
getMavenConfigBuilder
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; -
getMavenConfigOrBuilder
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9;- Specified by:
getMavenConfigOrBuilderin interfaceRepositoryOrBuilder
-
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;- Specified by:
hasDockerConfigin interfaceRepositoryOrBuilder- Returns:
- Whether the dockerConfig field is set.
-
getDockerConfig
Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;- Specified by:
getDockerConfigin interfaceRepositoryOrBuilder- Returns:
- The dockerConfig.
-
setDockerConfig
Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; -
setDockerConfig
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; -
mergeDockerConfig
Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; -
clearDockerConfig
Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; -
getDockerConfigBuilder
Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; -
getDockerConfigOrBuilder
Docker repository config contains repository level configuration for the repositories of docker type.
.google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17;- Specified by:
getDockerConfigOrBuilderin interfaceRepositoryOrBuilder
-
hasVirtualRepositoryConfig
public boolean hasVirtualRepositoryConfig()Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;- Specified by:
hasVirtualRepositoryConfigin interfaceRepositoryOrBuilder- Returns:
- Whether the virtualRepositoryConfig field is set.
-
getVirtualRepositoryConfig
Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;- Specified by:
getVirtualRepositoryConfigin interfaceRepositoryOrBuilder- Returns:
- The virtualRepositoryConfig.
-
setVirtualRepositoryConfig
Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; -
setVirtualRepositoryConfig
public Repository.Builder setVirtualRepositoryConfig(VirtualRepositoryConfig.Builder builderForValue) Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; -
mergeVirtualRepositoryConfig
Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; -
clearVirtualRepositoryConfig
Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; -
getVirtualRepositoryConfigBuilder
Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; -
getVirtualRepositoryConfigOrBuilder
Configuration specific for a Virtual Repository.
.google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;- Specified by:
getVirtualRepositoryConfigOrBuilderin interfaceRepositoryOrBuilder
-
hasRemoteRepositoryConfig
public boolean hasRemoteRepositoryConfig()Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;- Specified by:
hasRemoteRepositoryConfigin interfaceRepositoryOrBuilder- Returns:
- Whether the remoteRepositoryConfig field is set.
-
getRemoteRepositoryConfig
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;- Specified by:
getRemoteRepositoryConfigin interfaceRepositoryOrBuilder- Returns:
- The remoteRepositoryConfig.
-
setRemoteRepositoryConfig
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; -
setRemoteRepositoryConfig
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; -
mergeRemoteRepositoryConfig
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; -
clearRemoteRepositoryConfig
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; -
getRemoteRepositoryConfigBuilder
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; -
getRemoteRepositoryConfigOrBuilder
Configuration specific for a Remote Repository.
.google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;- Specified by:
getRemoteRepositoryConfigOrBuilderin interfaceRepositoryOrBuilder
-
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;- Specified by:
getNamein interfaceRepositoryOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceRepositoryOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFormatValuein interfaceRepositoryOrBuilder- Returns:
- The enum numeric value on the wire for format.
-
setFormatValue
Optional. The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for format to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFormatin interfaceRepositoryOrBuilder- Returns:
- The format.
-
setFormat
Optional. The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The format to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getDescription
The user-provided description of the repository.
string description = 3;- Specified by:
getDescriptionin interfaceRepositoryOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The user-provided description of the repository.
string description = 3;- Specified by:
getDescriptionBytesin interfaceRepositoryOrBuilder- Returns:
- The bytes for description.
-
setDescription
The user-provided description of the repository.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
The user-provided description of the repository.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
The user-provided description of the repository.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:RepositoryOrBuilderLabels 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;- Specified by:
getLabelsCountin interfaceRepositoryOrBuilder
-
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;- Specified by:
containsLabelsin interfaceRepositoryOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceRepositoryOrBuilder
-
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;- Specified by:
getLabelsMapin interfaceRepositoryOrBuilder
-
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;- Specified by:
getLabelsOrDefaultin interfaceRepositoryOrBuilder
-
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;- Specified by:
getLabelsOrThrowin interfaceRepositoryOrBuilder
-
clearLabels
-
removeLabels
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; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
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; -
putAllLabels
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
public boolean hasCreateTime()Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceRepositoryOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];- Specified by:
getCreateTimein interfaceRepositoryOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The time when the repository was created.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public 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];- Specified by:
getCreateTimeOrBuilderin interfaceRepositoryOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceRepositoryOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public 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];- Specified by:
getUpdateTimein interfaceRepositoryOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.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]; -
getUpdateTimeOrBuilder
public 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];- Specified by:
getUpdateTimeOrBuilderin interfaceRepositoryOrBuilder
-
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;- Specified by:
getKmsKeyNamein interfaceRepositoryOrBuilder- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public 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;- Specified by:
getKmsKeyNameBytesin interfaceRepositoryOrBuilder- Returns:
- The bytes for kmsKeyName.
-
setKmsKeyName
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;- Parameters:
value- The kmsKeyName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setKmsKeyNameBytes
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;- Parameters:
value- The bytes for kmsKeyName to set.- Returns:
- This builder for chaining.
-
getModeValue
public int getModeValue()Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModeValuein interfaceRepositoryOrBuilder- Returns:
- The enum numeric value on the wire for mode.
-
setModeValue
Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for mode to set.- Returns:
- This builder for chaining.
-
getMode
Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModein interfaceRepositoryOrBuilder- Returns:
- The mode.
-
setMode
Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
Optional. The mode of the repository.
.google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getCleanupPoliciesCount
public int getCleanupPoliciesCount()Description copied from interface:RepositoryOrBuilderOptional. 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];- Specified by:
getCleanupPoliciesCountin interfaceRepositoryOrBuilder
-
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];- Specified by:
containsCleanupPoliciesin interfaceRepositoryOrBuilder
-
getCleanupPolicies
Deprecated.UsegetCleanupPoliciesMap()instead.- Specified by:
getCleanupPoliciesin interfaceRepositoryOrBuilder
-
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];- Specified by:
getCleanupPoliciesMapin interfaceRepositoryOrBuilder
-
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];- Specified by:
getCleanupPoliciesOrDefaultin interfaceRepositoryOrBuilder
-
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];- Specified by:
getCleanupPoliciesOrThrowin interfaceRepositoryOrBuilder
-
clearCleanupPolicies
-
removeCleanupPolicies
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]; -
getMutableCleanupPolicies
Deprecated.Use alternate mutation accessors instead. -
putCleanupPolicies
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]; -
putAllCleanupPolicies
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]; -
putCleanupPoliciesBuilderIfAbsent
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
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];- Specified by:
getSizeBytesin interfaceRepositoryOrBuilder- Returns:
- The sizeBytes.
-
setSizeBytes
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];- Parameters:
value- The sizeBytes to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Output only. Whether or not this repository satisfies PZS.
bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPzsin interfaceRepositoryOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
Output only. Whether or not this repository satisfies PZS.
bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
Output only. Whether or not this repository satisfies PZS.
bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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];- Specified by:
getCleanupPolicyDryRunin interfaceRepositoryOrBuilder- Returns:
- The cleanupPolicyDryRun.
-
setCleanupPolicyDryRun
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];- Parameters:
value- The cleanupPolicyDryRun to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasVulnerabilityScanningConfigin interfaceRepositoryOrBuilder- Returns:
- Whether the vulnerabilityScanningConfig field is set.
-
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];- Specified by:
getVulnerabilityScanningConfigin interfaceRepositoryOrBuilder- Returns:
- The vulnerabilityScanningConfig.
-
setVulnerabilityScanningConfig
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]; -
setVulnerabilityScanningConfig
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]; -
mergeVulnerabilityScanningConfig
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]; -
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]; -
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]; -
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];- Specified by:
getVulnerabilityScanningConfigOrBuilderin interfaceRepositoryOrBuilder
-
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];- Specified by:
getDisallowUnspecifiedModein interfaceRepositoryOrBuilder- Returns:
- The disallowUnspecifiedMode.
-
setDisallowUnspecifiedMode
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];- Parameters:
value- The disallowUnspecifiedMode to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getSatisfiesPzi
public boolean getSatisfiesPzi()Output only. Whether or not this repository satisfies PZI.
bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPziin interfaceRepositoryOrBuilder- Returns:
- The satisfiesPzi.
-
setSatisfiesPzi
Output only. Whether or not this repository satisfies PZI.
bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The satisfiesPzi to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzi
Output only. Whether or not this repository satisfies PZI.
bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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];- Specified by:
getRegistryUriin interfaceRepositoryOrBuilder- Returns:
- The registryUri.
-
getRegistryUriBytes
public 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];- Specified by:
getRegistryUriBytesin interfaceRepositoryOrBuilder- Returns:
- The bytes for registryUri.
-
setRegistryUri
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];- Parameters:
value- The registryUri to set.- Returns:
- This builder for chaining.
-
clearRegistryUri
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:
- This builder for chaining.
-
setRegistryUriBytes
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];- Parameters:
value- The bytes for registryUri to set.- Returns:
- This builder for chaining.
-