Logging/src/V2/LogMetric.php
public function setLabelExtractors($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->label_extractors = $arr;

        return $this;
    }
public function setLabelExtractors($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->label_extractors = $arr;

        return $this;
    }
public function setLabelExtractors ( $ var ) { $ arr = GPBUtil :: checkMapField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: STRING , \ Google \ Protobuf \ Internal \ GPBType :: STRING ) ; $ this -> label_extractors = $ arr ; return $ this ; }
Optional. A map from a label key string to an extractor expression which is
used to extract data from a log entry field and assign as the label value.
Each label key specified in the LabelDescriptor must have an associated
extractor expression in this map. The syntax of the extractor expression
is the same as for the `value_extractor` field.
The extracted value is converted to the type defined in the label
descriptor. If the either the extraction or the type conversion fails,
the label will have a default value. The default value for a string
label is an empty string, for an integer label its 0, and for a boolean
label its `false`.
Note that there are upper bounds on the maximum number of labels and the
number of active time series that are allowed in a project.

Generated from protobuf field <code>map<string, string> label_extractors = 7;</code>
@param array|\Google\Protobuf\Internal\MapField $var
@return $this
Optional . A map from a label key string to an extractor expression which is used to extract data from a log entry field and assign as the label value . Each label key specified in the LabelDescriptor must have an associated extractor expression in this map . The syntax of the extractor expression is the same as for the value_extractor field . The extracted value is converted to the type defined in the label descriptor . If the either the extraction or the type conversion fails the label will have a default value . The default value for a string label is an empty string for an integer label its 0 and for a boolean label its false . Note that there are upper bounds on the maximum number of labels and the number of active time series that are allowed in a project .