Google Cloud Artifact Registry V1 Client - Class UpdateFileRequest (1.1.1)

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

The request to update a file.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ file Google\Cloud\ArtifactRegistry\V1\File

Required. The File that replaces the resource on the server.

↳ update_mask Google\Protobuf\FieldMask

Required. The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

getFile

Required. The File that replaces the resource on the server.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\File|null

hasFile

clearFile

setFile

Required. The File that replaces the resource on the server.

Parameter
Name Description
var Google\Cloud\ArtifactRegistry\V1\File
Returns
Type Description
$this

getUpdateMask

Required. The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
file Google\Cloud\ArtifactRegistry\V1\File

Required. The File that replaces the resource on the server.

updateMask Google\Protobuf\FieldMask

Required. The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\UpdateFileRequest