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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
    • clear

      public Repository.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Repository.Builder>
    • getDefaultInstanceForType

      public Repository getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Repository build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Repository buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Repository.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Repository.Builder>
    • mergeFrom

      public Repository.Builder mergeFrom(Repository other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Repository.Builder>
      Throws:
      IOException
    • getFormatConfigCase

      public Repository.FormatConfigCase getFormatConfigCase()
      Specified by:
      getFormatConfigCase in interface RepositoryOrBuilder
    • clearFormatConfig

      public Repository.Builder clearFormatConfig()
    • getModeConfigCase

      public Repository.ModeConfigCase getModeConfigCase()
      Specified by:
      getModeConfigCase in interface RepositoryOrBuilder
    • clearModeConfig

      public Repository.Builder 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:
      hasMavenConfig in interface RepositoryOrBuilder
      Returns:
      Whether the mavenConfig field is set.
    • 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;
      Specified by:
      getMavenConfig in interface RepositoryOrBuilder
      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

      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;
    • mergeMavenConfig

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getMavenConfigOrBuilder in interface RepositoryOrBuilder
    • 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:
      hasDockerConfig in interface RepositoryOrBuilder
      Returns:
      Whether the dockerConfig field is set.
    • 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;
      Specified by:
      getDockerConfig in interface RepositoryOrBuilder
      Returns:
      The dockerConfig.
    • setDockerConfig

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

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getDockerConfigOrBuilder in interface RepositoryOrBuilder
    • hasVirtualRepositoryConfig

      public boolean hasVirtualRepositoryConfig()
       Configuration specific for a Virtual Repository.
       
      .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;
      Specified by:
      hasVirtualRepositoryConfig in interface RepositoryOrBuilder
      Returns:
      Whether the virtualRepositoryConfig field is set.
    • getVirtualRepositoryConfig

      public VirtualRepositoryConfig getVirtualRepositoryConfig()
       Configuration specific for a Virtual Repository.
       
      .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;
      Specified by:
      getVirtualRepositoryConfig in interface RepositoryOrBuilder
      Returns:
      The virtualRepositoryConfig.
    • setVirtualRepositoryConfig

      public Repository.Builder setVirtualRepositoryConfig(VirtualRepositoryConfig value)
       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

      public Repository.Builder mergeVirtualRepositoryConfig(VirtualRepositoryConfig value)
       Configuration specific for a Virtual Repository.
       
      .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;
    • clearVirtualRepositoryConfig

      public Repository.Builder clearVirtualRepositoryConfig()
       Configuration specific for a Virtual Repository.
       
      .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;
    • getVirtualRepositoryConfigBuilder

      public VirtualRepositoryConfig.Builder getVirtualRepositoryConfigBuilder()
       Configuration specific for a Virtual Repository.
       
      .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;
    • getVirtualRepositoryConfigOrBuilder

      public VirtualRepositoryConfigOrBuilder getVirtualRepositoryConfigOrBuilder()
       Configuration specific for a Virtual Repository.
       
      .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14;
      Specified by:
      getVirtualRepositoryConfigOrBuilder in interface RepositoryOrBuilder
    • hasRemoteRepositoryConfig

      public boolean hasRemoteRepositoryConfig()
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
      Specified by:
      hasRemoteRepositoryConfig in interface RepositoryOrBuilder
      Returns:
      Whether the remoteRepositoryConfig field is set.
    • getRemoteRepositoryConfig

      public RemoteRepositoryConfig getRemoteRepositoryConfig()
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
      Specified by:
      getRemoteRepositoryConfig in interface RepositoryOrBuilder
      Returns:
      The remoteRepositoryConfig.
    • setRemoteRepositoryConfig

      public Repository.Builder setRemoteRepositoryConfig(RemoteRepositoryConfig value)
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
    • setRemoteRepositoryConfig

      public Repository.Builder setRemoteRepositoryConfig(RemoteRepositoryConfig.Builder builderForValue)
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
    • mergeRemoteRepositoryConfig

      public Repository.Builder mergeRemoteRepositoryConfig(RemoteRepositoryConfig value)
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
    • clearRemoteRepositoryConfig

      public Repository.Builder clearRemoteRepositoryConfig()
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
    • getRemoteRepositoryConfigBuilder

      public RemoteRepositoryConfig.Builder getRemoteRepositoryConfigBuilder()
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
    • getRemoteRepositoryConfigOrBuilder

      public RemoteRepositoryConfigOrBuilder getRemoteRepositoryConfigOrBuilder()
       Configuration specific for a Remote Repository.
       
      .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15;
      Specified by:
      getRemoteRepositoryConfigOrBuilder in interface RepositoryOrBuilder
    • 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;
      Specified by:
      getName in interface RepositoryOrBuilder
      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:
      getNameBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for name.
    • setName

      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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public Repository.Builder setNameBytes(com.google.protobuf.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;
      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:
      getFormatValue in interface RepositoryOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      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];
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getFormat in interface RepositoryOrBuilder
      Returns:
      The format.
    • setFormat

      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];
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getDescription

      public String getDescription()
       The user-provided description of the repository.
       
      string description = 3;
      Specified by:
      getDescription in interface RepositoryOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The user-provided description of the repository.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Repository.Builder setDescription(String value)
       The user-provided description of the repository.
       
      string description = 3;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Repository.Builder clearDescription()
       The user-provided description of the repository.
       
      string description = 3;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Repository.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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: RepositoryOrBuilder
       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:
      getLabelsCount in interface RepositoryOrBuilder
    • containsLabels

      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;
      Specified by:
      containsLabels in interface RepositoryOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface RepositoryOrBuilder
    • 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;
      Specified by:
      getLabelsMap in interface RepositoryOrBuilder
    • getLabelsOrDefault

      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;
      Specified by:
      getLabelsOrDefault in interface RepositoryOrBuilder
    • getLabelsOrThrow

      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;
      Specified by:
      getLabelsOrThrow in interface RepositoryOrBuilder
    • clearLabels

      public Repository.Builder clearLabels()
    • removeLabels

      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;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      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;
    • putAllLabels

      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;
    • 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:
      hasCreateTime in interface RepositoryOrBuilder
      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:
      getCreateTime in interface RepositoryOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Repository.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Repository.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Repository.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface RepositoryOrBuilder
    • 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:
      hasUpdateTime in interface RepositoryOrBuilder
      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:
      getUpdateTime in interface RepositoryOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Repository.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Repository.Builder setUpdateTime(com.google.protobuf.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];
    • mergeUpdateTime

      public Repository.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getUpdateTimeOrBuilder in interface RepositoryOrBuilder
    • 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;
      Specified by:
      getKmsKeyName in interface RepositoryOrBuilder
      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:
      getKmsKeyNameBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for kmsKeyName.
    • setKmsKeyName

      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;
      Parameters:
      value - The kmsKeyName to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setKmsKeyNameBytes

      public Repository.Builder 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. 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:
      getModeValue in interface RepositoryOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • setModeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for mode to set.
      Returns:
      This builder for chaining.
    • getMode

      public Repository.Mode getMode()
       Optional. The mode of the repository.
       
      .google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMode in interface RepositoryOrBuilder
      Returns:
      The mode.
    • setMode

      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];
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getCleanupPoliciesCount

      public int getCleanupPoliciesCount()
      Description copied from interface: RepositoryOrBuilder
       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:
      getCleanupPoliciesCount in interface RepositoryOrBuilder
    • containsCleanupPolicies

      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];
      Specified by:
      containsCleanupPolicies in interface RepositoryOrBuilder
    • getCleanupPolicies

      @Deprecated public Map<String,CleanupPolicy> getCleanupPolicies()
      Deprecated.
      Specified by:
      getCleanupPolicies in interface RepositoryOrBuilder
    • 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];
      Specified by:
      getCleanupPoliciesMap in interface RepositoryOrBuilder
    • getCleanupPoliciesOrDefault

      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];
      Specified by:
      getCleanupPoliciesOrDefault in interface RepositoryOrBuilder
    • getCleanupPoliciesOrThrow

      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];
      Specified by:
      getCleanupPoliciesOrThrow in interface RepositoryOrBuilder
    • clearCleanupPolicies

      public Repository.Builder clearCleanupPolicies()
    • removeCleanupPolicies

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

      @Deprecated public Map<String,CleanupPolicy> getMutableCleanupPolicies()
      Deprecated.
      Use alternate mutation accessors instead.
    • putCleanupPolicies

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

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

      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];
    • 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:
      getSizeBytes in interface RepositoryOrBuilder
      Returns:
      The sizeBytes.
    • setSizeBytes

      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];
      Parameters:
      value - The sizeBytes to set.
      Returns:
      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:
      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:
      getSatisfiesPzs in interface RepositoryOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public Repository.Builder setSatisfiesPzs(boolean value)
       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

      public Repository.Builder 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:
      getCleanupPolicyDryRun in interface RepositoryOrBuilder
      Returns:
      The cleanupPolicyDryRun.
    • setCleanupPolicyDryRun

      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];
      Parameters:
      value - The cleanupPolicyDryRun to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasVulnerabilityScanningConfig in interface RepositoryOrBuilder
      Returns:
      Whether the vulnerabilityScanningConfig field is set.
    • 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];
      Specified by:
      getVulnerabilityScanningConfig in interface RepositoryOrBuilder
      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

      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];
    • 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];
    • 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];
      Specified by:
      getVulnerabilityScanningConfigOrBuilder in interface RepositoryOrBuilder
    • 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:
      getDisallowUnspecifiedMode in interface RepositoryOrBuilder
      Returns:
      The disallowUnspecifiedMode.
    • setDisallowUnspecifiedMode

      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];
      Parameters:
      value - The disallowUnspecifiedMode to set.
      Returns:
      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:
      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:
      getSatisfiesPzi in interface RepositoryOrBuilder
      Returns:
      The satisfiesPzi.
    • setSatisfiesPzi

      public Repository.Builder setSatisfiesPzi(boolean value)
       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

      public Repository.Builder 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

      public String getRegistryUri()
       Output only. The repository endpoint, for example:
       `us-docker.pkg.dev/my-proj/my-repo`.
       
      string registry_uri = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRegistryUri in interface RepositoryOrBuilder
      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:
      getRegistryUriBytes in interface RepositoryOrBuilder
      Returns:
      The bytes for registryUri.
    • setRegistryUri

      public Repository.Builder setRegistryUri(String value)
       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

      public Repository.Builder 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

      public Repository.Builder setRegistryUriBytes(com.google.protobuf.ByteString value)
       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.