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 GoModule.

GoModule represents a Go module.

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

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The resource name of a Go module. |
| `↳ version` | `string` The version of the Go module. Must be a valid canonical version as defined in <https://go.dev/ref/mod#glos-canonical-version>. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. The time when the Go module is created. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. The time when the Go module is updated. |

### getName

The resource name of a Go module.

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

### setName

The resource name of a Go module.

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

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

### getVersion

The version of the Go module. Must be a valid canonical version as defined
in <https://go.dev/ref/mod#glos-canonical-version>.

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

### setVersion

The version of the Go module. Must be a valid canonical version as defined
in <https://go.dev/ref/mod#glos-canonical-version>.

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

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

### getCreateTime

Output only. The time when the Go module is created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the Go module is created.

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

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

### getUpdateTime

Output only. The time when the Go module is updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. The time when the Go module is updated.

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

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