Google Cloud Artifact Registry V1 Client - Class GoModule (1.2.1)

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

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

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

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: