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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The time when the repository was created.The user-provided description of the repository.The format of packages that are stored in the repository.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.The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".The time when the repository was last updated.booleancontainsLabels(String key) Labels with user-defined metadata.com.google.protobuf.TimestampThe time when the repository was created.com.google.protobuf.Timestamp.BuilderThe time when the repository was created.com.google.protobuf.TimestampOrBuilderThe time when the repository was created.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.DescriptorThe format of packages that are stored in the repository.intThe format of packages that are stored in the repository.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.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".com.google.protobuf.TimestampThe time when the repository was last updated.com.google.protobuf.Timestamp.BuilderThe time when the repository was last updated.com.google.protobuf.TimestampOrBuilderThe time when the repository was last updated.booleanThe time when the repository was created.booleanMaven repository config contains repository level configuration for the repositories of maven type.booleanThe time when the repository was last updated.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) The time when the repository was created.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.mergeUpdateTime(com.google.protobuf.Timestamp value) The time when the repository was last updated.putAllLabels(Map<String, String> values) Labels with user-defined metadata.Labels with user-defined metadata.removeLabels(String key) Labels with user-defined metadata.setCreateTime(com.google.protobuf.Timestamp value) The time when the repository was created.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the repository was created.setDescription(String value) The user-provided description of the repository.setDescriptionBytes(com.google.protobuf.ByteString value) The user-provided description of the repository.setFormat(Repository.Format value) The format of packages that are stored in the repository.setFormatValue(int value) The format of packages that are stored in the repository.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.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".setUpdateTime(com.google.protobuf.Timestamp value) The time when the repository was last updated.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the repository was last updated.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
-
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:
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.v1beta2.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.v1beta2.Repository.MavenRepositoryConfig maven_config = 9; -
setMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig maven_config = 9; -
mergeMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig maven_config = 9; -
clearMavenConfig
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig maven_config = 9; -
getMavenConfigBuilder
Maven repository config contains repository level configuration for the repositories of maven type.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig maven_config = 9; -
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:
getMavenConfigOrBuilderin interfaceRepositoryOrBuilder
-
getName
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".
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".
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".
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".
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
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:
getFormatValuein interfaceRepositoryOrBuilder- Returns:
- The enum numeric value on the wire for format.
-
setFormatValue
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
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;- Specified by:
getFormatin interfaceRepositoryOrBuilder- Returns:
- The format.
-
setFormat
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
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;- 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()The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;- Specified by:
hasCreateTimein interfaceRepositoryOrBuilder- 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:
getCreateTimein interfaceRepositoryOrBuilder- Returns:
- The createTime.
-
setCreateTime
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5; -
setCreateTime
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5; -
mergeCreateTime
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5; -
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:
getCreateTimeOrBuilderin interfaceRepositoryOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;- Specified by:
hasUpdateTimein interfaceRepositoryOrBuilder- 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:
getUpdateTimein interfaceRepositoryOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6; -
setUpdateTime
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6; -
mergeUpdateTime
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6; -
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:
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.
-