Google Analytics Admin V1alpha Client - Class UpdateCustomMetricRequest (0.28.1)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class UpdateCustomMetricRequest.

Request message for UpdateCustomMetric RPC.

Generated from protobuf message google.analytics.admin.v1alpha.UpdateCustomMetricRequest

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ custom_metricCustomMetric

The CustomMetric to update

↳ update_maskGoogle\Protobuf\FieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

getCustomMetric

The CustomMetric to update

Returns
TypeDescription
CustomMetric|null

hasCustomMetric

clearCustomMetric

setCustomMetric

The CustomMetric to update

Parameter
NameDescription
varCustomMetric
Returns
TypeDescription
$this

getUpdateMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Parameter
NameDescription
varGoogle\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
customMetricCustomMetric

The CustomMetric to update

updateMaskGoogle\Protobuf\FieldMask

Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Returns
TypeDescription
UpdateCustomMetricRequest