public function setJavaPackage($var)
    {
        GPBUtil::checkString($var, True);
        $this->java_package = $var;
        $this->has_java_package = true;

        return $this;
    }
public function setJavaPackage($var)
    {
        GPBUtil::checkString($var, True);
        $this->java_package = $var;
        $this->has_java_package = true;

        return $this;
    }
public function setJavaPackage ( $ var ) { GPBUtil :: checkString ( $ var , True ) ; $ this -> java_package = $ var ; $ this -> has_java_package = true ; return $ this ; }
Sets the Java package where classes generated from this .proto will be
placed.  By default, the proto package is used, but this is often
inappropriate because proto packages do not normally start with backwards
domain names.

Generated from protobuf field <code>optional string java_package = 1;</code>
@param string $var
@return $this
Sets the Java package where classes generated from this . proto will be placed . By default the proto package is used but this is often inappropriate because proto packages do not normally start with backwards domain names .