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.v1beta2.Repository
Methods
public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Repository build()
Returns
public Repository buildPartial()
Returns
public Repository.Builder clear()
Returns
Overrides
public Repository.Builder clearCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Repository.Builder clearDescription()
The user-provided description of the repository.
string description = 3;
Returns
public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Repository.Builder clearFormat()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Returns
public Repository.Builder clearKmsKeyName()
The Cloud KMS resource name of the customer managed encryption key that\u2019s
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
public Repository.Builder clearLabels()
Returns
public Repository.Builder clearName()
The name of the repository, for example:
"projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Returns
public Repository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Repository.Builder clearUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public Repository.Builder clone()
Returns
Overrides
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
Returns
public Timestamp getCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Timestamp.Builder getCreateTimeBuilder()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Returns
public Repository getDefaultInstanceForType()
Returns
public String getDescription()
The user-provided description of the repository.
string description = 3;
Returns
Type | Description |
String | The description.
|
public ByteString getDescriptionBytes()
The user-provided description of the repository.
string description = 3;
Returns
Type | Description |
ByteString | The bytes for description.
|
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Repository.Format getFormat()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Returns
public int getFormatValue()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for format.
|
public String getKmsKeyName()
The Cloud KMS resource name of the customer managed encryption key that\u2019s
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
Type | Description |
String | The kmsKeyName.
|
public ByteString getKmsKeyNameBytes()
The Cloud KMS resource name of the customer managed encryption key that\u2019s
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
Type | Description |
ByteString | The bytes for kmsKeyName.
|
public Map<String,String> getLabels()
Returns
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
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
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
Returns
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
Returns
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
The name of the repository, for example:
"projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
The name of the repository, for example:
"projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Returns
public Timestamp getUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public Timestamp.Builder getUpdateTimeBuilder()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
public boolean hasCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Repository.Builder mergeCreateTime(Timestamp value)
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public Repository.Builder mergeFrom(Repository other)
Parameter
Returns
public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Repository.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Repository.Builder mergeUpdateTime(Timestamp value)
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Returns
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
Returns
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
Returns
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
Returns
public Repository.Builder setCreateTime(Timestamp value)
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Returns
public Repository.Builder setCreateTime(Timestamp.Builder builderForValue)
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public Repository.Builder setDescription(String value)
The user-provided description of the repository.
string description = 3;
Parameter
Name | Description |
value | String
The description to set.
|
Returns
public Repository.Builder setDescriptionBytes(ByteString value)
The user-provided description of the repository.
string description = 3;
Parameter
Name | Description |
value | ByteString
The bytes for description to set.
|
Returns
public Repository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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;
Parameter
Returns
public Repository.Builder setFormatValue(int value)
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for format to set.
|
Returns
public Repository.Builder setKmsKeyName(String value)
The Cloud KMS resource name of the customer managed encryption key that\u2019s
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
Name | Description |
value | String
The kmsKeyName to set.
|
Returns
public Repository.Builder setKmsKeyNameBytes(ByteString value)
The Cloud KMS resource name of the customer managed encryption key that\u2019s
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
Name | Description |
value | ByteString
The bytes for kmsKeyName to set.
|
Returns
public Repository.Builder setName(String value)
The name of the repository, for example:
"projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public Repository.Builder setNameBytes(ByteString value)
The name of the repository, for example:
"projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public Repository.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Repository.Builder setUpdateTime(Timestamp value)
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Returns
public Repository.Builder setUpdateTime(Timestamp.Builder builderForValue)
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Parameter
Name | Description |
builderForValue | Builder
|
Returns