Firestore/src/V1beta1/DocumentTransform/FieldTransform.php
public function setSetToServerValue($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1beta1\DocumentTransform_FieldTransform_ServerValue::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setSetToServerValue($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1beta1\DocumentTransform_FieldTransform_ServerValue::class);
        $this->writeOneof(2, $var);

        return $this;
    }
public function setSetToServerValue ( $ var ) { GPBUtil :: checkEnum ( $ var , \ Google \ Cloud \ Firestore \ V1beta1 \ DocumentTransform_FieldTransform_ServerValue :: class ) ; $ this -> writeOneof ( 2 , $ var ) ; return $ this ; }
Sets the field to the given server value.

Generated from protobuf field <code>.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;</code>
@param int $var
@return $this
Sets the field to the given server value .