public function addMethod(\google\protobuf\MethodDescriptorProto $value)
    {
        if ($this->method === null) {
            $this->method = new \Protobuf\MessageCollection();
        }

        $this->method->add($value);
    }