Class Repository
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.devtools.artifactregistry.v1.Repository
-
- All Implemented Interfaces:
RepositoryOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Repository extends com.google.protobuf.GeneratedMessageV3 implements RepositoryOrBuilder
A Repository for storing artifacts with a specific format.
Protobuf typegoogle.devtools.artifactregistry.v1.Repository
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Repository.Builder
A Repository for storing artifacts with a specific format.static class
Repository.Format
A package format.static class
Repository.FormatConfigCase
static class
Repository.MavenRepositoryConfig
MavenRepositoryConfig is maven related repository details.static interface
Repository.MavenRepositoryConfigOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CREATE_TIME_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
FORMAT_FIELD_NUMBER
static int
KMS_KEY_NAME_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
MAVEN_CONFIG_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels with user-defined metadata.boolean
equals(Object obj)
com.google.protobuf.Timestamp
getCreateTime()
The time when the repository was created.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The time when the repository was created.static Repository
getDefaultInstance()
Repository
getDefaultInstanceForType()
String
getDescription()
The user-provided description of the repository.com.google.protobuf.ByteString
getDescriptionBytes()
The user-provided description of the repository.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Repository.Format
getFormat()
The format of packages that are stored in the repository.Repository.FormatConfigCase
getFormatConfigCase()
int
getFormatValue()
The format of packages that are stored in the repository.String
getKmsKeyName()
The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.com.google.protobuf.ByteString
getKmsKeyNameBytes()
The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels with user-defined metadata.Map<String,String>
getLabelsMap()
Labels with user-defined metadata.String
getLabelsOrDefault(String key, String defaultValue)
Labels with user-defined metadata.String
getLabelsOrThrow(String key)
Labels with user-defined metadata.Repository.MavenRepositoryConfig
getMavenConfig()
Maven repository config contains repository level configuration for the repositories of maven type.Repository.MavenRepositoryConfigOrBuilder
getMavenConfigOrBuilder()
Maven repository config contains repository level configuration for the repositories of maven type.String
getName()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".com.google.protobuf.ByteString
getNameBytes()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".com.google.protobuf.Parser<Repository>
getParserForType()
int
getSerializedSize()
com.google.protobuf.Timestamp
getUpdateTime()
The time when the repository was last updated.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
The time when the repository was last updated.boolean
hasCreateTime()
The time when the repository was created.int
hashCode()
boolean
hasMavenConfig()
Maven repository config contains repository level configuration for the repositories of maven type.boolean
hasUpdateTime()
The time when the repository was last updated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Repository.Builder
newBuilder()
static Repository.Builder
newBuilder(Repository prototype)
Repository.Builder
newBuilderForType()
protected Repository.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Repository
parseDelimitedFrom(InputStream input)
static Repository
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Repository
parseFrom(byte[] data)
static Repository
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Repository
parseFrom(com.google.protobuf.ByteString data)
static Repository
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Repository
parseFrom(com.google.protobuf.CodedInputStream input)
static Repository
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Repository
parseFrom(InputStream input)
static Repository
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Repository
parseFrom(ByteBuffer data)
static Repository
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Repository>
parser()
Repository.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MAVEN_CONFIG_FIELD_NUMBER
public static final int MAVEN_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORMAT_FIELD_NUMBER
public static final int FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getFormatConfigCase
public Repository.FormatConfigCase getFormatConfigCase()
- Specified by:
getFormatConfigCase
in interfaceRepositoryOrBuilder
-
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;
- Specified by:
hasMavenConfig
in interfaceRepositoryOrBuilder
- Returns:
- Whether the mavenConfig field is set.
-
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;
- Specified by:
getMavenConfig
in interfaceRepositoryOrBuilder
- Returns:
- The mavenConfig.
-
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;
- Specified by:
getMavenConfigOrBuilder
in interfaceRepositoryOrBuilder
-
getName
public String getName()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
- Specified by:
getName
in interfaceRepositoryOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".
string name = 1;
- Specified by:
getNameBytes
in interfaceRepositoryOrBuilder
- Returns:
- The bytes for name.
-
getFormatValue
public int getFormatValue()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
- Specified by:
getFormatValue
in interfaceRepositoryOrBuilder
- Returns:
- The enum numeric value on the wire for format.
-
getFormat
public Repository.Format getFormat()
The format of packages that are stored in the repository.
.google.devtools.artifactregistry.v1.Repository.Format format = 2;
- Specified by:
getFormat
in interfaceRepositoryOrBuilder
- Returns:
- The format.
-
getDescription
public String getDescription()
The user-provided description of the repository.
string description = 3;
- Specified by:
getDescription
in interfaceRepositoryOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The user-provided description of the repository.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceRepositoryOrBuilder
- Returns:
- The bytes for description.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:RepositoryOrBuilder
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;
- Specified by:
getLabelsCount
in interfaceRepositoryOrBuilder
-
containsLabels
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;
- Specified by:
containsLabels
in interfaceRepositoryOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceRepositoryOrBuilder
-
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;
- Specified by:
getLabelsMap
in interfaceRepositoryOrBuilder
-
getLabelsOrDefault
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;
- Specified by:
getLabelsOrDefault
in interfaceRepositoryOrBuilder
-
getLabelsOrThrow
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;
- Specified by:
getLabelsOrThrow
in interfaceRepositoryOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
- Specified by:
hasCreateTime
in interfaceRepositoryOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
- Specified by:
getCreateTime
in interfaceRepositoryOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The time when the repository was created.
.google.protobuf.Timestamp create_time = 5;
- Specified by:
getCreateTimeOrBuilder
in interfaceRepositoryOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
- Specified by:
hasUpdateTime
in interfaceRepositoryOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
- Specified by:
getUpdateTime
in interfaceRepositoryOrBuilder
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The time when the repository was last updated.
.google.protobuf.Timestamp update_time = 6;
- Specified by:
getUpdateTimeOrBuilder
in interfaceRepositoryOrBuilder
-
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;
- Specified by:
getKmsKeyName
in interfaceRepositoryOrBuilder
- Returns:
- The kmsKeyName.
-
getKmsKeyNameBytes
public com.google.protobuf.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;
- Specified by:
getKmsKeyNameBytes
in interfaceRepositoryOrBuilder
- Returns:
- The bytes for kmsKeyName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Repository parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Repository parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Repository parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Repository parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Repository parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Repository parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Repository parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Repository parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Repository parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Repository parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Repository parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Repository parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Repository.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Repository.Builder newBuilder()
-
newBuilder
public static Repository.Builder newBuilder(Repository prototype)
-
toBuilder
public Repository.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Repository.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Repository getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Repository> parser()
-
getParserForType
public com.google.protobuf.Parser<Repository> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Repository getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-