Google Analytics Admin V1alpha Client - Class CreateCustomMetricRequest (0.20.0)

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

Request message for CreateCustomMetric RPC.

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

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Example format: properties/1234

↳ custom_metric Google\Analytics\Admin\V1alpha\CustomMetric

Required. The CustomMetric to create.

getParent

Required. Example format: properties/1234

Returns
TypeDescription
string

setParent

Required. Example format: properties/1234

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomMetric

Required. The CustomMetric to create.

Returns
TypeDescription
Google\Analytics\Admin\V1alpha\CustomMetric|null

hasCustomMetric

clearCustomMetric

setCustomMetric

Required. The CustomMetric to create.

Parameter
NameDescription
var Google\Analytics\Admin\V1alpha\CustomMetric
Returns
TypeDescription
$this