Google Analytics Admin V1beta Client - Class CreateMeasurementProtocolSecretRequest (0.18.1)

Reference documentation and code samples for the Google Analytics Admin V1beta Client class CreateMeasurementProtocolSecretRequest.

Request message for CreateMeasurementProtocolSecret RPC

Generated from protobuf message google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest

Namespace

Google \ Analytics \ Admin \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}

↳ measurement_protocol_secret Google\Analytics\Admin\V1beta\MeasurementProtocolSecret

Required. The measurement protocol secret to create.

getParent

Required. The parent resource where this secret will be created.

Format: properties/{property}/dataStreams/{dataStream}

Returns
TypeDescription
string

setParent

Required. The parent resource where this secret will be created.

Format: properties/{property}/dataStreams/{dataStream}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMeasurementProtocolSecret

Required. The measurement protocol secret to create.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\MeasurementProtocolSecret|null

hasMeasurementProtocolSecret

clearMeasurementProtocolSecret

setMeasurementProtocolSecret

Required. The measurement protocol secret to create.

Parameter
NameDescription
var Google\Analytics\Admin\V1beta\MeasurementProtocolSecret
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream} Please see Google\Analytics\Admin\V1beta\AnalyticsAdminServiceClient::dataStreamName() for help formatting this field.

measurementProtocolSecret Google\Analytics\Admin\V1beta\MeasurementProtocolSecret

Required. The measurement protocol secret to create.

Returns
TypeDescription
Google\Analytics\Admin\V1beta\CreateMeasurementProtocolSecretRequest