Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class GenericArtifact.
GenericArtifact represents a generic artifact
Generated from protobuf messagegoogle.devtools.artifactregistry.v1.GenericArtifact
Namespace
Google \ Cloud \ ArtifactRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Resource name of the generic artifact. project, location, repository, package_id and version_id create a unique generic artifact. i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id"
Output only. The time when the Generic module is updated.
getName
Resource name of the generic artifact.
project, location, repository, package_id and version_id
create a unique generic artifact.
i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
genericArtifacts/package_id:version_id"
Returns
Type
Description
string
setName
Resource name of the generic artifact.
project, location, repository, package_id and version_id
create a unique generic artifact.
i.e. "projects/test-project/locations/us-west4/repositories/test-repo/
genericArtifacts/package_id:version_id"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getVersion
The version of the generic artifact.
Returns
Type
Description
string
setVersion
The version of the generic artifact.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCreateTime
Output only. The time when the Generic module is created.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Artifact Registry V1 Client - Class GenericArtifact (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-artifact-registry/latest/V1.GenericArtifact)\n- [1.2.0](/php/docs/reference/cloud-artifact-registry/1.2.0/V1.GenericArtifact)\n- [1.1.3](/php/docs/reference/cloud-artifact-registry/1.1.3/V1.GenericArtifact)\n- [1.0.0](/php/docs/reference/cloud-artifact-registry/1.0.0/V1.GenericArtifact)\n- [0.6.5](/php/docs/reference/cloud-artifact-registry/0.6.5/V1.GenericArtifact)\n- [0.5.1](/php/docs/reference/cloud-artifact-registry/0.5.1/V1.GenericArtifact)\n- [0.4.4](/php/docs/reference/cloud-artifact-registry/0.4.4/V1.GenericArtifact)\n- [0.3.13](/php/docs/reference/cloud-artifact-registry/0.3.13/V1.GenericArtifact) \nReference documentation and code samples for the Google Cloud Artifact Registry V1 Client class GenericArtifact.\n\nGenericArtifact represents a generic artifact\n\nGenerated from protobuf message `google.devtools.artifactregistry.v1.GenericArtifact`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ArtifactRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nResource name of the generic artifact.\n\nproject, location, repository, package_id and version_id\ncreate a unique generic artifact.\ni.e. \"projects/test-project/locations/us-west4/repositories/test-repo/\ngenericArtifacts/package_id:version_id\"\n\n### setName\n\nResource name of the generic artifact.\n\nproject, location, repository, package_id and version_id\ncreate a unique generic artifact.\ni.e. \"projects/test-project/locations/us-west4/repositories/test-repo/\ngenericArtifacts/package_id:version_id\"\n\n### getVersion\n\nThe version of the generic artifact.\n\n### setVersion\n\nThe version of the generic artifact.\n\n### getCreateTime\n\nOutput only. The time when the Generic module is created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time when the Generic module is created.\n\n### getUpdateTime\n\nOutput only. The time when the Generic module is updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time when the Generic module is updated."]]