Google Cloud Artifact Registry V1 Client - Class ListNpmPackagesResponse (0.4.4)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class ListNpmPackagesResponse.

The response from listing npm packages.

Generated from protobuf message google.devtools.artifactregistry.v1.ListNpmPackagesResponse

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ npm_packages array<Google\Cloud\ArtifactRegistry\V1\NpmPackage>

The npm packages returned.

↳ next_page_token string

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

getNpmPackages

The npm packages returned.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNpmPackages

The npm packages returned.

Parameter
NameDescription
var array<Google\Cloud\ArtifactRegistry\V1\NpmPackage>
Returns
TypeDescription
$this

getNextPageToken

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

Returns
TypeDescription
string

setNextPageToken

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

Parameter
NameDescription
var string
Returns
TypeDescription
$this