Class Repository.Builder (1.5.0)

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

A Repository for storing artifacts with a specific format.

Protobuf type google.devtools.artifactregistry.v1.Repository

Implements

RepositoryOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Repository.Builder
Overrides

build()

public Repository build()
Returns
TypeDescription
Repository

buildPartial()

public Repository buildPartial()
Returns
TypeDescription
Repository

clear()

public Repository.Builder clear()
Returns
TypeDescription
Repository.Builder
Overrides

clearCreateTime()

public Repository.Builder clearCreateTime()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Repository.Builder

clearDescription()

public Repository.Builder clearDescription()

The user-provided description of the repository.

string description = 3;

Returns
TypeDescription
Repository.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Repository.Builder
Overrides

clearFormat()

public Repository.Builder clearFormat()

The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2;

Returns
TypeDescription
Repository.Builder

This builder for chaining.

clearFormatConfig()

public Repository.Builder clearFormatConfig()
Returns
TypeDescription
Repository.Builder

clearKmsKeyName()

public Repository.Builder clearKmsKeyName()

The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

string kms_key_name = 8;

Returns
TypeDescription
Repository.Builder

This builder for chaining.

clearLabels()

public Repository.Builder clearLabels()
Returns
TypeDescription
Repository.Builder

clearMavenConfig()

public Repository.Builder clearMavenConfig()

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

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

Returns
TypeDescription
Repository.Builder

clearName()

public Repository.Builder clearName()

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

string name = 1;

Returns
TypeDescription
Repository.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Repository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Repository.Builder
Overrides

clearUpdateTime()

public Repository.Builder clearUpdateTime()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Repository.Builder

clone()

public Repository.Builder clone()
Returns
TypeDescription
Repository.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Repository getDefaultInstanceForType()
Returns
TypeDescription
Repository

getDescription()

public String getDescription()

The user-provided description of the repository.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The user-provided description of the repository.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormat()

public Repository.Format getFormat()

The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2;

Returns
TypeDescription
Repository.Format

The format.

getFormatConfigCase()

public Repository.FormatConfigCase getFormatConfigCase()
Returns
TypeDescription
Repository.FormatConfigCase

getFormatValue()

public int getFormatValue()

The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for format.

getKmsKeyName()

public String getKmsKeyName()

The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

string kms_key_name = 8;

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

string kms_key_name = 8;

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMavenConfig()

public Repository.MavenRepositoryConfig getMavenConfig()

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

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

Returns
TypeDescription
Repository.MavenRepositoryConfig

The mavenConfig.

getMavenConfigBuilder()

public Repository.MavenRepositoryConfig.Builder getMavenConfigBuilder()

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

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

Returns
TypeDescription
Repository.MavenRepositoryConfig.Builder

getMavenConfigOrBuilder()

public Repository.MavenRepositoryConfigOrBuilder getMavenConfigOrBuilder()

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

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

Returns
TypeDescription
Repository.MavenRepositoryConfigOrBuilder

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasMavenConfig()

public boolean hasMavenConfig()

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

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

Returns
TypeDescription
boolean

Whether the mavenConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Repository.Builder mergeCreateTime(Timestamp value)

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Repository.Builder

mergeFrom(Repository other)

public Repository.Builder mergeFrom(Repository other)
Parameter
NameDescription
otherRepository
Returns
TypeDescription
Repository.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Repository.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Repository.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Repository.Builder
Overrides

mergeMavenConfig(Repository.MavenRepositoryConfig value)

public Repository.Builder mergeMavenConfig(Repository.MavenRepositoryConfig value)

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

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

Parameter
NameDescription
valueRepository.MavenRepositoryConfig
Returns
TypeDescription
Repository.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Repository.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Repository.Builder mergeUpdateTime(Timestamp value)

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Repository.Builder

putAllLabels(Map<String,String> values)

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

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Repository.Builder

putLabels(String key, String value)

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

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Repository.Builder

removeLabels(String key)

public Repository.Builder removeLabels(String key)

Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
Repository.Builder

setCreateTime(Timestamp value)

public Repository.Builder setCreateTime(Timestamp value)

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Repository.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Repository.Builder setCreateTime(Timestamp.Builder builderForValue)

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Repository.Builder

setDescription(String value)

public Repository.Builder setDescription(String value)

The user-provided description of the repository.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Repository.Builder setDescriptionBytes(ByteString value)

The user-provided description of the repository.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Repository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Repository.Builder
Overrides

setFormat(Repository.Format value)

public Repository.Builder setFormat(Repository.Format value)

The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2;

Parameter
NameDescription
valueRepository.Format

The format to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setFormatValue(int value)

public Repository.Builder setFormatValue(int value)

The format of packages that are stored in the repository.

.google.devtools.artifactregistry.v1.Repository.Format format = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setKmsKeyName(String value)

public Repository.Builder setKmsKeyName(String value)

The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

string kms_key_name = 8;

Parameter
NameDescription
valueString

The kmsKeyName to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public Repository.Builder setKmsKeyNameBytes(ByteString value)

The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

string kms_key_name = 8;

Parameter
NameDescription
valueByteString

The bytes for kmsKeyName to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setMavenConfig(Repository.MavenRepositoryConfig value)

public Repository.Builder setMavenConfig(Repository.MavenRepositoryConfig value)

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

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

Parameter
NameDescription
valueRepository.MavenRepositoryConfig
Returns
TypeDescription
Repository.Builder

setMavenConfig(Repository.MavenRepositoryConfig.Builder builderForValue)

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

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

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

Parameter
NameDescription
builderForValueRepository.MavenRepositoryConfig.Builder
Returns
TypeDescription
Repository.Builder

setName(String value)

public Repository.Builder setName(String value)

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Repository.Builder setNameBytes(ByteString value)

The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Repository.Builder

This builder for chaining.

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

public Repository.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Repository.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Repository.Builder
Overrides

setUpdateTime(Timestamp value)

public Repository.Builder setUpdateTime(Timestamp value)

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Repository.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Repository.Builder setUpdateTime(Timestamp.Builder builderForValue)

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Repository.Builder