Language/src/V1/AnnotateTextRequest.php
public function setEncodingType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1\EncodingType::class);
        $this->encoding_type = $var;

        return $this;
    }
public function setEncodingType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1\EncodingType::class);
        $this->encoding_type = $var;

        return $this;
    }
public function setEncodingType ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Language \ V1 \ EncodingType :: class ) ; $ this -> encoding_type = $ var ; return $ this ; }
The encoding type used by the API to calculate offsets.

Generated from protobuf field <code>.google.cloud.language.v1.EncodingType encoding_type = 3;</code>
@param int $var
@return $this
The encoding type used by the API to calculate offsets .