Interface RepositoryOrBuilder (1.11.0)

public interface RepositoryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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 abstract Timestamp getCreateTime()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

The time when the repository was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDescription()

public abstract String getDescription()

The user-provided description of the repository.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

The user-provided description of the repository.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getFormat()

public abstract 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 abstract Repository.FormatConfigCase getFormatConfigCase()
Returns
TypeDescription
Repository.FormatConfigCase

getFormatValue()

public abstract 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 abstract 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 abstract 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 abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getMavenConfigOrBuilder()

public abstract 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

getName()

public abstract 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 abstract 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 abstract Timestamp getUpdateTime()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

The time when the repository was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public abstract 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 abstract 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 abstract 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.