AutoMl/src/V1beta1/ExamplePayload.php
public function setTextSnippet($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TextSnippet::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setTextSnippet($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TextSnippet::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setTextSnippet ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ AutoMl \ V1beta1 \ TextSnippet :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
Example text.

Generated from protobuf field <code>.google.cloud.automl.v1beta1.TextSnippet text_snippet = 2;</code>
@param \Google\Cloud\AutoMl\V1beta1\TextSnippet $var
@return $this
Example text .