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.v1beta2.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.v1beta2.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()
    • hasMavenConfig

      public boolean hasMavenConfig()
       Maven repository config contains repository level configuration
       for the repositories of maven type.
       
      .google.devtools.artifactregistry.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.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.v1beta2.Repository.MavenRepositoryConfig maven_config = 9;
      Specified by:
      getMavenConfigOrBuilder in interface RepositoryOrBuilder
    • getName

      public String getName()
       The name of the repository, for example:
       "projects/p1/locations/us-central1/repositories/repo1".
       
      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".
       
      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".
       
      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".
       
      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".
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFormatValue

      public int getFormatValue()
       The format of packages that are stored in the repository.
       
      .google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
      Specified by:
      getFormatValue in interface RepositoryOrBuilder
      Returns:
      The enum numeric value on the wire for format.
    • setFormatValue

      public Repository.Builder setFormatValue(int value)
       The format of packages that are stored in the repository.
       
      .google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
      Parameters:
      value - The enum numeric value on the wire for format to set.
      Returns:
      This builder for chaining.
    • getFormat

      public Repository.Format getFormat()
       The format of packages that are stored in the repository.
       
      .google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
      Specified by:
      getFormat in interface RepositoryOrBuilder
      Returns:
      The format.
    • setFormat

      public Repository.Builder setFormat(Repository.Format value)
       The format of packages that are stored in the repository.
       
      .google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public Repository.Builder clearFormat()
       The format of packages that are stored in the repository.
       
      .google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
      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()
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      hasCreateTime in interface RepositoryOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      getCreateTime in interface RepositoryOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Repository.Builder setCreateTime(com.google.protobuf.Timestamp value)
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • setCreateTime

      public Repository.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • mergeCreateTime

      public Repository.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • clearCreateTime

      public Repository.Builder clearCreateTime()
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       The time when the repository was created.
       
      .google.protobuf.Timestamp create_time = 5;
      Specified by:
      getCreateTimeOrBuilder in interface RepositoryOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
      Specified by:
      hasUpdateTime in interface RepositoryOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
      Specified by:
      getUpdateTime in interface RepositoryOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Repository.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • setUpdateTime

      public Repository.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • mergeUpdateTime

      public Repository.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • clearUpdateTime

      public Repository.Builder clearUpdateTime()
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The time when the repository was last updated.
       
      .google.protobuf.Timestamp update_time = 6;
      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.