Google Cloud Artifact Registry V1 Client - Class AptArtifact (1.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class AptArtifact.
A detailed representation of an Apt artifact. Information in the record
is derived from the archive's control file.
See https://www.debian.org/doc/debian-policy/ch-controlfields.html
Generated from protobuf message google.devtools.artifactregistry.v1.AptArtifact
Namespace
Google \ Cloud \ ArtifactRegistry \ V1
Methods
__construct
Parameters |
Name |
Description |
data |
array
Optional. Data for populating the Message object.
|
↳ name |
string
Output only. The Artifact Registry resource name of the artifact.
|
↳ package_name |
string
Output only. The Apt package name of the artifact.
|
↳ package_type |
int
Output only. An artifact is a binary or source package.
|
↳ architecture |
string
Output only. Operating system architecture of the artifact.
|
↳ component |
string
Output only. Repository component of the artifact.
|
↳ control_file |
string
Output only. Contents of the artifact's control metadata file.
|
getName
Output only. The Artifact Registry resource name of the artifact.
Returns |
Type |
Description |
string |
|
setName
Output only. The Artifact Registry resource name of the artifact.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getPackageName
Output only. The Apt package name of the artifact.
Returns |
Type |
Description |
string |
|
setPackageName
Output only. The Apt package name of the artifact.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getPackageType
Output only. An artifact is a binary or source package.
Returns |
Type |
Description |
int |
Enum of type PackageType. |
setPackageType
Output only. An artifact is a binary or source package.
Parameter |
Name |
Description |
var |
int
Enum of type PackageType.
|
Returns |
Type |
Description |
$this |
|
getArchitecture
Output only. Operating system architecture of the artifact.
Returns |
Type |
Description |
string |
|
setArchitecture
Output only. Operating system architecture of the artifact.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getComponent
Output only. Repository component of the artifact.
Returns |
Type |
Description |
string |
|
setComponent
Output only. Repository component of the artifact.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getControlFile
Output only. Contents of the artifact's control metadata file.
Returns |
Type |
Description |
string |
|
setControlFile
Output only. Contents of the artifact's control metadata file.
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-09 UTC.
[[["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-09 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-artifact-registry/latest/V1.AptArtifact)\n- [1.2.0](/php/docs/reference/cloud-artifact-registry/1.2.0/V1.AptArtifact)\n- [1.1.3](/php/docs/reference/cloud-artifact-registry/1.1.3/V1.AptArtifact)\n- [1.0.0](/php/docs/reference/cloud-artifact-registry/1.0.0/V1.AptArtifact)\n- [0.6.5](/php/docs/reference/cloud-artifact-registry/0.6.5/V1.AptArtifact)\n- [0.5.1](/php/docs/reference/cloud-artifact-registry/0.5.1/V1.AptArtifact)\n- [0.4.4](/php/docs/reference/cloud-artifact-registry/0.4.4/V1.AptArtifact)\n- [0.3.13](/php/docs/reference/cloud-artifact-registry/0.3.13/V1.AptArtifact) \nReference documentation and code samples for the Google Cloud Artifact Registry V1 Client class AptArtifact.\n\nA detailed representation of an Apt artifact. Information in the record\nis derived from the archive's control file.\n\nSee \u003chttps://www.debian.org/doc/debian-policy/ch-controlfields.html\u003e\n\nGenerated from protobuf message `google.devtools.artifactregistry.v1.AptArtifact`\n\nNamespace Google \\\\ Cloud \\\\ ArtifactRegistry \\\\ V1\n\nMethods\n\n__construct \nConstructor.\n\n| **Parameters** ||\n|------------------|----------------------------------------------------------------------------|\n| **Name** | **Description** |\n| `data` | `array` Optional. Data for populating the Message object. |\n| `↳ name` | `string` Output only. The Artifact Registry resource name of the artifact. |\n| `↳ package_name` | `string` Output only. The Apt package name of the artifact. |\n| `↳ package_type` | `int` Output only. An artifact is a binary or source package. |\n| `↳ architecture` | `string` Output only. Operating system architecture of the artifact. |\n| `↳ component` | `string` Output only. Repository component of the artifact. |\n| `↳ control_file` | `string` Output only. Contents of the artifact's control metadata file. |\n\ngetName \nOutput only. The Artifact Registry resource name of the artifact.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetName \nOutput only. The Artifact Registry resource name of the artifact.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetPackageName \nOutput only. The Apt package name of the artifact.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetPackageName \nOutput only. The Apt package name of the artifact.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetPackageType \nOutput only. An artifact is a binary or source package.\n\n| **Returns** ||\n|----------|---------------------------|\n| **Type** | **Description** |\n| `int` | Enum of type PackageType. |\n\nsetPackageType \nOutput only. An artifact is a binary or source package.\n\n| **Parameter** ||\n|----------|---------------------------------|\n| **Name** | **Description** |\n| `var` | `int` Enum of type PackageType. |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetArchitecture \nOutput only. Operating system architecture of the artifact.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetArchitecture \nOutput only. Operating system architecture of the artifact.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetComponent \nOutput only. Repository component of the artifact.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetComponent \nOutput only. Repository component of the artifact.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |\n\ngetControlFile \nOutput only. Contents of the artifact's control metadata file.\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `string` | |\n\nsetControlFile \nOutput only. Contents of the artifact's control metadata file.\n\n| **Parameter** ||\n|----------|-----------------|\n| **Name** | **Description** |\n| `var` | `string` |\n\n| **Returns** ||\n|----------|-----------------|\n| **Type** | **Description** |\n| `$this` | |"]]