- 1.54.0 (latest)
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.9
- 1.1.1
- 0.5.0
- 0.4.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.v1beta2.Repository
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Repository.BuilderImplements
RepositoryOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Repository.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Repository.Builder |
build()
public Repository build()
Type | Description |
Repository |
buildPartial()
public Repository buildPartial()
Type | Description |
Repository |
clear()
public Repository.Builder clear()
Type | Description |
Repository.Builder |
clearCreateTime()
public Repository.Builder clearCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
Repository.Builder |
clearDescription()
public Repository.Builder clearDescription()
The user-provided description of the repository.
string description = 3;
Type | Description |
Repository.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Repository.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Repository.Builder |
clearFormat()
public Repository.Builder clearFormat()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Type | Description |
Repository.Builder | This builder for chaining. |
clearKmsKeyName()
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;
Type | Description |
Repository.Builder | This builder for chaining. |
clearLabels()
public Repository.Builder clearLabels()
Type | Description |
Repository.Builder |
clearName()
public Repository.Builder clearName()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Type | Description |
Repository.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Repository.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Repository.Builder |
clearUpdateTime()
public Repository.Builder clearUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
Repository.Builder |
clone()
public Repository.Builder clone()
Type | Description |
Repository.Builder |
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;
Name | Description |
key | String |
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Repository getDefaultInstanceForType()
Type | Description |
Repository |
getDescription()
public String getDescription()
The user-provided description of the repository.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
The user-provided description of the repository.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getFormat()
public Repository.Format getFormat()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Type | Description |
Repository.Format | The format. |
getFormatValue()
public int getFormatValue()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
Type | Description |
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\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;
Type | Description |
String | The kmsKeyName. |
getKmsKeyNameBytes()
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;
Type | Description |
ByteString | The bytes for kmsKeyName. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
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;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Type | Description |
boolean | Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Repository.Builder mergeCreateTime(Timestamp value)
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
Repository.Builder |
mergeFrom(Repository other)
public Repository.Builder mergeFrom(Repository other)
Name | Description |
other | Repository |
Type | Description |
Repository.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Repository.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Repository.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Repository.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Repository.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Repository.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Repository.Builder |
mergeUpdateTime(Timestamp value)
public Repository.Builder mergeUpdateTime(Timestamp value)
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
values | Map<String,String> |
Type | Description |
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;
Name | Description |
key | String |
value | String |
Type | Description |
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;
Name | Description |
key | String |
Type | Description |
Repository.Builder |
setCreateTime(Timestamp value)
public Repository.Builder setCreateTime(Timestamp value)
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Repository.Builder |
setDescription(String value)
public Repository.Builder setDescription(String value)
The user-provided description of the repository.
string description = 3;
Name | Description |
value | String The description to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
Repository.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Repository.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Repository.Builder |
setFormat(Repository.Format value)
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;
Name | Description |
value | Repository.Format The format to set. |
Type | Description |
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.v1beta2.Repository.Format format = 2;
Name | Description |
value | int The enum numeric value on the wire for format to set. |
Type | Description |
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\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;
Name | Description |
value | String The kmsKeyName to set. |
Type | Description |
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\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;
Name | Description |
value | ByteString The bytes for kmsKeyName to set. |
Type | Description |
Repository.Builder | This builder for chaining. |
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;
Name | Description |
value | String The name to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Repository.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Repository.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Repository.Builder |
setUpdateTime(Timestamp value)
public Repository.Builder setUpdateTime(Timestamp value)
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Repository.Builder |