1.8.4 (latest) 1.7.2 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class PythonPackage.

PythonPackage represents a python artifact.

Generated from protobuf message `google.devtools.artifactregistry.v1.PythonPackage`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. registry_location, project_id, repository_name and python_package forms a unique package name:`projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>`. For example, "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ python_package:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and python_package:1.0.0" is the python package. |
| `↳ uri` | `string` Required. URL to access the package. Example: us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz |
| `↳ package_name` | `string` Package for the artifact. |
| `↳ version` | `string` Version of this package. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Time the package was created. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Time the package was updated. |

### getName

Required. registry_location, project_id, repository_name and python_package
forms a unique package
name:`projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>`.

For example,
"projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/
python_package:1.0.0",
where "us-west4" is the registry_location, "test-project" is the
project_id, "test-repo" is the repository_name and
python_package:1.0.0" is the python package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. registry_location, project_id, repository_name and python_package
forms a unique package
name:`projects/<project_id>/locations/<location>/repository/<repository_name>/pythonPackages/<python_package>`.

For example,
"projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/
python_package:1.0.0",
where "us-west4" is the registry_location, "test-project" is the
project_id, "test-repo" is the repository_name and
python_package:1.0.0" is the python package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUri

Required. URL to access the package.

Example:
us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUri

Required. URL to access the package.

Example:
us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPackageName

Package for the artifact.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPackageName

Package for the artifact.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVersion

Version of this package.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVersion

Version of this package.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. Time the package was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time the package was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateTime

Output only. Time the package was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time the package was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |