public final class Repository extends GeneratedMessageV3 implements RepositoryOrBuilder
A Repository for storing artifacts with a specific format.
Protobuf type google.devtools.artifactregistry.v1beta2.Repository
Fields
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
public static final int FORMAT_FIELD_NUMBER
Field Value
public static final int KMS_KEY_NAME_FIELD_NUMBER
Field Value
public static final int LABELS_FIELD_NUMBER
Field Value
public static final int NAME_FIELD_NUMBER
Field Value
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Methods
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 boolean equals(Object obj)
Parameter
Returns
Overrides
public Timestamp getCreateTime()
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 static Repository getDefaultInstance()
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 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
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 Parser<Repository> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUpdateTime()
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static Repository.Builder newBuilder()
Returns
public static Repository.Builder newBuilder(Repository prototype)
Parameter
Returns
public Repository.Builder newBuilderForType()
Returns
protected Repository.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static Repository parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Repository parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Repository parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Repository parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Repository parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Repository parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Repository parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Repository parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Repository parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Repository parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Repository parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Repository parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Repository> parser()
Returns
public Repository.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions