Class 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 type google.devtools.artifactregistry.v1beta2.Repository
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasMavenConfig

        public boolean hasMavenConfig()
         Maven repository config contains repository level configuration
         for the repositories of maven type.
         
        .google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig maven_config = 9;
        Specified by:
        hasMavenConfig in interface RepositoryOrBuilder
        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.v1beta2.Repository.MavenRepositoryConfig maven_config = 9;
        Specified by:
        getMavenConfig in interface RepositoryOrBuilder
        Returns:
        The mavenConfig.
      • 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 interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
        Returns:
        The bytes for name.
      • getFormatValue

        public int getFormatValue()
         The format of packages that are stored in the repository.
         
        .google.devtools.artifactregistry.v1beta2.Repository.Format format = 2;
        Specified by:
        getFormatValue in interface RepositoryOrBuilder
        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.v1beta2.Repository.Format format = 2;
        Specified by:
        getFormat in interface RepositoryOrBuilder
        Returns:
        The format.
      • getDescription

        public String getDescription()
         The user-provided description of the repository.
         
        string description = 3;
        Specified by:
        getDescription in interface RepositoryOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The user-provided description of the repository.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
      • 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 interface RepositoryOrBuilder
      • 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 interface RepositoryOrBuilder
      • 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 interface RepositoryOrBuilder
      • 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 interface RepositoryOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         The time when the repository was created.
         
        .google.protobuf.Timestamp create_time = 5;
        Specified by:
        hasCreateTime in interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         The time when the repository was last updated.
         
        .google.protobuf.Timestamp update_time = 6;
        Specified by:
        hasUpdateTime in interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
      • 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 interface RepositoryOrBuilder
        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 interface RepositoryOrBuilder
        Returns:
        The bytes for kmsKeyName.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Repository.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Repository.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Repository.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Repository getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder